/* Reset and base styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --bg-primary: #0a0a0a;
  --bg-secondary: #1a1a1a;
  --bg-card: #2a2a2a;
  --text-primary: #ffffff;
  --text-secondary: #b0b0b0;
  --text-muted: #888888;
  --accent: #11998E;
  --accent-hover: #11998e;
  --border: #333333;
  --shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
  --gradient: linear-gradient(135deg, #ff0080 0%, #2c5364 50%, #0F2027 100%);
  --gradient2: linear-gradient(135deg, #aa4b6b 0%, #6b6b83 50%, #6b6b83 100%);
  --gradient3: linear-gradient(135deg, #373B44 0%, #4286f4 100%);
  --gradient4: linear-gradient(135deg, #ff6a00 0%, #ee0979 50%, #8e2de2 100%);
  --gradient5: linear-gradient(135deg, #f8b195 0%, #c06c84 50%, #6c5b7b 100%);
  --gradient6: linear-gradient(135deg, #4286f4 0%, #373B44 100%);
}

/* Typography */
body {
  font-family: "Comic Neue", serif;
  line-height: 1.6;
  color: var(--text-primary);
  background: var(--bg-primary);
  overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: "Lugrasimo", serif;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1rem;
}

.devanagiri {
  font-family: "Amita", "Martel", system-ui, -apple-system;
}

/* Layout */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* Navigation */
.navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  backdrop-filter: blur(8px);
  background: rgba(0, 0, 0, 0.6);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-logo-container {
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0));
  padding: 0.5rem 1rem;
  border-radius: 12px;
  transition: background 0.3s ease;
}

.nav-logo-container:hover {
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.02));
}

.nav-logo {
  font-family: 'Cinzel', serif;
  font-size: 1.8rem;
  font-weight: 700;
  text-decoration: none;
  background: var(--gradient6);
  /* 🌈 replace with your colors */
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}




.nav-menu {
  display: flex;
  list-style: none;
  gap: 2rem;
}

.nav-link {
  font-family: 'Cinzel', serif;
  color: var(--text-secondary);
  font-size: 1.5em;
  text-decoration: none;
  font-weight: 900;
  transition: color 0.3s ease;
}

.nav-link:hover {
  color: var(--text-primary);
}

/* Hero Section */
.hero {
  background: var(--gradient2);
  padding: 1.5rem 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 1000"><polygon fill="rgba(255,255,255,0.05)" points="0,1000 1000,0 1000,1000"/></svg>');
  background-size: cover;
}

.hero-content {
  position: relative;
  z-index: 2;
}

.hero h1 {
  font-size: 4rem;
  margin-bottom: 1rem;
  color: white;
  text-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.hero-description {
  font-family: 'Lugrasimo', serif;
  font-size: 1.3rem;
  color: #F9F1F1;
  /*rgba(255, 255, 255, 0.9);*/
  max-width: 70%;
  margin: 0 auto;
}

.description {
  text-indent: 1.3em;
  font-size: 1.35rem;
  color: rgba(255, 255, 255, 0.9);
  max-width: 80%;
  margin: 0 auto;
}


/* Gallery Grid */
.gallery-section {
  padding: 4rem 0;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 2rem;
  padding: 2rem 0;
}

/* Cards */
.card {
  background: var(--bg-card);
  border-radius: 16px;
  overflow: hidden;
  transition: all 0.3s ease;
  border: 1px solid var(--border);
  position: relative;
}

.card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow);
  border-color: var(--accent);
}

.card-link {
  text-decoration: none;
  color: inherit;
  display: block;
}

.card-image-container {
  position: relative;
  overflow: hidden;
  background: var(--bg-secondary);
  aspect-ratio: 4/4;
}

.card-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
  -webkit-user-drag: none;
  pointer-events: none;
}

.card:hover .card-image {
  transform: scale(1.05);
}

.card-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.card:hover .card-overlay {
  opacity: 0.8;
}

.view-text {
  color: white;
  font-weight: 600;
  font-size: 1.1rem;
}

.card-content {
  padding: 1.5rem;
}

.card-title {
  font-family: 'Lugrasimo', serif;
  font-size: 1.4rem;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
}

.card-author {
  color: var(--accent);
  font-weight: 500;
  margin-bottom: 0.5rem;
}

.card-date {
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* Protection Overlay */
.protection-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: transparent;
  z-index: 2;
  pointer-events: none;
}

.image-container {
  position: relative;
  display: inline-block;
}

.image-container::before {
  content: "";
  position: absolute;
  inset: -4px;
  background: linear-gradient(135deg, #ff9a9e, #fad0c4, #a18cd1);
  border-radius: 24px;
  filter: blur(6px);
  z-index: -1;
}

figcaption {
  margin: 20px;
}

/* Post Page Styles */
.post {
  min-height: 100vh;
}

.post-header {
  background: var(--bg-secondary);
  padding: 4rem 0 2rem;
  border-bottom: 1px solid var(--border);
}

.breadcrumb {
  color: var(--text-muted);
  margin-bottom: 2rem;
  font-size: 0.9rem;
}

.breadcrumb a {
  color: var(--text-secondary);
  text-decoration: none;
}

.breadcrumb a:hover {
  color: var(--text-primary);
}

.post-title {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.post-meta {
  display: flex;
  gap: 2rem;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.post-content {
  padding: 4rem 0;
}

.post-image {
  margin: 0 0 3rem 0;
  text-align: center;
}

.post-image img {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: var(--shadow);
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
  -webkit-user-drag: none;
}

.post-image figcaption {
  margin-top: 1rem;
  color: var(--text-muted);
  font-style: italic;
}

.post-body {
  max-width: 800px;
  margin: 0 auto;
  font-size: 1.1rem;
  line-height: 1.8;
  color: var(--text-secondary);
}

.post-body h1,
.post-body h2,
.post-body h3 {
  color: var(--text-primary);
  margin-top: 2rem;
}

.post-body p {
  margin-bottom: 1.5rem;
  font-size: 22px;
  font-family: "Comic Neue", serif;
}

.post-footer {
  background: var(--bg-secondary);
  padding: 2rem 0;
  border-top: 1px solid var(--border);
}

.back-link {
  color: var(--accent);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
}

.back-link:hover {
  color: var(--accent-hover);
}

/* No Posts State */
.no-posts {
  text-align: center;
  padding: 4rem 0;
  color: var(--text-muted);
}

/* Footer */
.footer {
  background: var(--bg-secondary);
  padding: 2rem 0;
  border-top: 1px solid var(--border);
  text-align: center;
  color: var(--text-muted);
}

/* Responsive Design */
@media (max-width: 768px) {
  .hero h1 {
    font-size: 2.5rem;
  }

  .grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    padding: 1rem;
  }

  .nav-container {
    flex-direction: column;
    gap: 1rem;
  }

  .post-title {
    font-size: 2rem;
  }

  .container {
    padding: 0 1rem;
  }
}

/* Loading animation */
.card-image.loaded {
  animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

/* Selection styles */
::selection {
  background: var(--accent);
  color: white;
}

::-moz-selection {
  background: var(--accent);
  color: white;
}
