/* ═══════════════════════════════════════════════════════
   FESTIVALIDEA.COM — Design Tokens
   ═══════════════════════════════════════════════════════ */

:root {
  /* Palette — sandstone, sindoor, marigold */
  --sand:        #F7F2EB;
  --sand-warm:   #EDE5D8;
  --sindoor:     #BE3A1D;
  --sindoor-deep:#8B1A04;
  --marigold:    #D99A1E;
  --marigold-lt: #F2C94C;
  --turmeric:    #F0D78C;
  --ink:         #2A1A10;
  --ink-soft:    #5C4A3D;
  --ink-muted:   #9B8B7D;
  --white:       #FFFCF7;
  --border:      #E0D5C7;

  /* Type */
  --font-display: 'Noto Serif Devanagari', Georgia, serif;
  --font-body:    'Source Sans 3', system-ui, sans-serif;

  /* Spacing */
  --content-max: 1200px;
  --gap: 1.5rem;
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--sand);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

.container {
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* ═══════════════════════════════════════════════════════
   HEADER
   ═══════════════════════════════════════════════════════ */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.logo {
  display: flex;
  align-items: baseline;
  gap: 0.35rem;
}

.logo-icon {
  width: 28px;
  height: 28px;
  background: var(--sindoor);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 14px;
  font-weight: 700;
  align-self: center;
}

.logo-text {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.01em;
}

.logo-text span { color: var(--sindoor); }

nav { display: flex; align-items: center; gap: 0.25rem; }

nav a {
  font-size: 0.9rem;
  font-weight: 500;
  padding: 0.4rem 0.85rem;
  border-radius: 6px;
  transition: background 0.2s, color 0.2s;
  color: var(--ink-soft);
}

nav a:hover, nav a.active {
  background: var(--sand);
  color: var(--sindoor);
}

.nav-search {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  background: none;
  color: var(--ink-muted);
  transition: border-color 0.2s;
  margin-left: 0.5rem;
}
.nav-search:hover { border-color: var(--sindoor); color: var(--sindoor); }

/* ═══════════════════════════════════════════════════════
   TICKER — upcoming festivals
   ═══════════════════════════════════════════════════════ */

.ticker {
  background: var(--sindoor);
  color: var(--white);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  overflow: hidden;
  height: 32px;
  display: flex;
  align-items: center;
}

.ticker-label {
  background: var(--sindoor-deep);
  padding: 0 0.75rem;
  height: 100%;
  display: flex;
  align-items: center;
  font-weight: 600;
  white-space: nowrap;
  font-size: 0.7rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.ticker-track {
  display: flex;
  gap: 2rem;
  padding-left: 1rem;
  animation: scroll-ticker 30s linear infinite;
  white-space: nowrap;
}

.ticker-track span::before {
  content: '🪷';
  margin-right: 0.4rem;
}

@keyframes scroll-ticker {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ═══════════════════════════════════════════════════════
   HERO — Featured Post (magazine cover style)
   ═══════════════════════════════════════════════════════ */

.hero {
  padding: 2.5rem 0 2rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.75rem;
  align-items: stretch;
}

.hero-main {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  min-height: 440px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  cursor: pointer;
}

.hero-main-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}
.hero-main:hover .hero-main-img { transform: scale(1.03); }

.hero-main-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(30,12,5,0.88) 0%, rgba(30,12,5,0.3) 50%, transparent 100%);
}

.hero-main-content {
  position: relative;
  z-index: 2;
  padding: 2rem;
  color: var(--white);
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.25rem 0.65rem;
  border-radius: 4px;
  margin-bottom: 0.75rem;
}

.badge-festival { background: var(--sindoor); color: var(--white); }
.badge-temple   { background: var(--marigold); color: var(--ink); }

.hero-main-content h2 {
  font-family: var(--font-display);
  font-size: 1.85rem;
  font-weight: 700;
  line-height: 1.25;
  margin-bottom: 0.5rem;
}

.hero-main-content p {
  font-size: 0.92rem;
  opacity: 0.85;
  line-height: 1.5;
  max-width: 480px;
}

.hero-meta {
  margin-top: 0.75rem;
  font-size: 0.78rem;
  opacity: 0.6;
  display: flex;
  gap: 1rem;
}

.hero-side {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.hero-side-card {
  flex: 1;
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  background: var(--white);
  border: 1px solid var(--border);
  cursor: pointer;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.hero-side-card:hover {
  border-color: var(--sindoor);
  box-shadow: 0 4px 20px rgba(190,58,29,0.08);
}

.hero-side-card img {
  width: 160px;
  min-height: 100%;
  object-fit: cover;
  flex-shrink: 0;
}

.hero-side-card-body {
  padding: 1rem 1.15rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hero-side-card-body h3 {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
  line-height: 1.3;
  margin-top: 0.4rem;
}

.hero-side-card-body .meta {
  margin-top: auto;
  padding-top: 0.5rem;
  font-size: 0.75rem;
  color: var(--ink-muted);
}

/* ═══════════════════════════════════════════════════════
   SECTION DIVIDER — ornamental
   ═══════════════════════════════════════════════════════ */

.divider {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.5rem 0;
}
.divider::before, .divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}
.divider-icon {
  color: var(--marigold);
  font-size: 1.1rem;
}

/* ═══════════════════════════════════════════════════════
   SECTION HEADER
   ═══════════════════════════════════════════════════════ */

.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 1.5rem;
}

.section-head h2 {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--ink);
}

.section-head h2 em {
  font-style: normal;
  color: var(--sindoor);
}

.see-all {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--sindoor);
  display: flex;
  align-items: center;
  gap: 0.3rem;
  transition: gap 0.2s;
}
.see-all:hover { gap: 0.55rem; }

/* ═══════════════════════════════════════════════════════
   POST CARDS — Blog Grid
   ═══════════════════════════════════════════════════════ */

.posts-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.post-card {
  background: var(--white);
  border-radius: 12px;
  border: 1px solid var(--border);
  overflow: hidden;
  cursor: pointer;
  transition: border-color 0.2s, box-shadow 0.25s, transform 0.25s;
}
.post-card:hover {
  border-color: var(--marigold);
  box-shadow: 0 8px 30px rgba(0,0,0,0.06);
  transform: translateY(-3px);
}

.post-card-img {
  aspect-ratio: 16/10;
  overflow: hidden;
  position: relative;
}

.post-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.post-card:hover .post-card-img img { transform: scale(1.04); }

.post-card-body {
  padding: 1.15rem 1.25rem 1.35rem;
}

.post-card-body h3 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
  line-height: 1.35;
  margin: 0.5rem 0 0.4rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.post-card-body p {
  font-size: 0.88rem;
  color: var(--ink-soft);
  line-height: 1.55;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.post-card-meta {
  margin-top: 0.85rem;
  display: flex;
  align-items: center;
  gap: 0.85rem;
  font-size: 0.76rem;
  color: var(--ink-muted);
}

.post-card-meta svg {
  width: 14px;
  height: 14px;
  opacity: 0.5;
  vertical-align: -2px;
  margin-right: 2px;
}

/* ═══════════════════════════════════════════════════════
   UPCOMING FESTIVALS — horizontal scrolling strip
   ═══════════════════════════════════════════════════════ */

.upcoming-section { padding: 2rem 0 1rem; }

.upcoming-strip {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  padding-bottom: 0.5rem;
  scroll-snap-type: x mandatory;
  -ms-overflow-style: none;
  scrollbar-width: none;
}
.upcoming-strip::-webkit-scrollbar { display: none; }

.upcoming-card {
  flex: 0 0 220px;
  scroll-snap-align: start;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.15rem;
  text-align: center;
  transition: border-color 0.2s;
}
.upcoming-card:hover { border-color: var(--sindoor); }

.upcoming-card .date-circle {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--sindoor), #D44D2D);
  color: var(--white);
  margin: 0 auto 0.75rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  line-height: 1.1;
}

.upcoming-card .date-circle .day {
  font-size: 1.2rem;
  font-weight: 700;
}

.upcoming-card .date-circle .month {
  font-size: 0.6rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.upcoming-card h4 {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.3;
  margin-bottom: 0.25rem;
}

.upcoming-card .region {
  font-size: 0.78rem;
  color: var(--ink-muted);
}

/* ═══════════════════════════════════════════════════════
   TEMPLE SPOTLIGHT — full-width image band
   ═══════════════════════════════════════════════════════ */

.temple-spotlight {
  margin: 2rem 0;
  border-radius: 14px;
  overflow: hidden;
  position: relative;
  min-height: 320px;
  display: flex;
  align-items: flex-end;
  background: linear-gradient(135deg, #1A0C08, #2E1810);
}

.temple-spotlight-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.55;
}

.temple-spotlight-content {
  position: relative;
  z-index: 2;
  padding: 2.5rem;
  color: var(--white);
  max-width: 560px;
}

.temple-spotlight-content .kicker {
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--marigold-lt);
  margin-bottom: 0.5rem;
}

.temple-spotlight-content h2 {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 700;
  line-height: 1.25;
  margin-bottom: 0.6rem;
}

.temple-spotlight-content p {
  font-size: 0.92rem;
  line-height: 1.6;
  opacity: 0.8;
  margin-bottom: 1rem;
}

.btn-read {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.55rem 1.25rem;
  background: var(--marigold);
  color: var(--ink);
  font-size: 0.85rem;
  font-weight: 600;
  border-radius: 6px;
  border: none;
  cursor: pointer;
  transition: background 0.2s;
}
.btn-read:hover { background: var(--marigold-lt); }

/* ═══════════════════════════════════════════════════════
   NEWSLETTER
   ═══════════════════════════════════════════════════════ */

.newsletter {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 2.5rem;
  text-align: center;
  margin: 2rem 0;
}

.newsletter h2 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.35rem;
}

.newsletter p {
  color: var(--ink-soft);
  font-size: 0.92rem;
  margin-bottom: 1.25rem;
}

.newsletter-form {
  display: flex;
  gap: 0.5rem;
  max-width: 420px;
  margin: 0 auto;
}

.newsletter-form input {
  flex: 1;
  padding: 0.6rem 1rem;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 0.9rem;
  font-family: var(--font-body);
  background: var(--sand);
  color: var(--ink);
  outline: none;
  transition: border-color 0.2s;
}
.newsletter-form input:focus { border-color: var(--sindoor); }
.newsletter-form input::placeholder { color: var(--ink-muted); }

.newsletter-form button {
  padding: 0.6rem 1.5rem;
  background: var(--sindoor);
  color: var(--white);
  border: none;
  border-radius: 6px;
  font-size: 0.88rem;
  font-weight: 600;
  font-family: var(--font-body);
  cursor: pointer;
  transition: background 0.2s;
}
.newsletter-form button:hover { background: var(--sindoor-deep); }

/* ═══════════════════════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════════════════════ */

.site-footer {
  background: var(--ink);
  color: rgba(255,252,247,0.65);
  margin-top: 2rem;
  padding: 3rem 0 1.5rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.footer-about .logo-text {
  color: var(--white);
  margin-bottom: 0.5rem;
}

.footer-about p {
  font-size: 0.85rem;
  line-height: 1.6;
  max-width: 300px;
}

.footer-col h4 {
  font-family: var(--font-display);
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 0.75rem;
}

.footer-col a {
  display: block;
  font-size: 0.84rem;
  padding: 0.2rem 0;
  transition: color 0.2s;
}
.footer-col a:hover { color: var(--marigold-lt); }

.footer-bottom {
  padding-top: 1.25rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.78rem;
}

.footer-bottom a { color: var(--marigold); }
.footer-bottom a:hover { text-decoration: underline; }

/* ═══════════════════════════════════════════════════════
   BLOG POST PAGE (single article preview)
   ═══════════════════════════════════════════════════════ */

.article-page { padding: 2rem 0 3rem; }

.article-page .breadcrumb {
  font-size: 0.82rem;
  color: var(--ink-muted);
  margin-bottom: 1.5rem;
}
.article-page .breadcrumb a { color: var(--sindoor); }

.article-header { max-width: 720px; margin: 0 auto 1.5rem; }

.article-header h1 {
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 0.75rem;
}

.article-header .excerpt {
  font-size: 1.1rem;
  color: var(--ink-soft);
  line-height: 1.55;
  margin-bottom: 0.75rem;
}

.article-header .article-meta {
  display: flex;
  gap: 1.25rem;
  font-size: 0.82rem;
  color: var(--ink-muted);
  align-items: center;
}

.article-cover {
  border-radius: 14px;
  overflow: hidden;
  margin-bottom: 2rem;
  max-width: 860px;
  margin-left: auto;
  margin-right: auto;
}

.article-cover img {
  width: 100%;
  aspect-ratio: 2/1;
  object-fit: cover;
}

.article-body {
  max-width: 680px;
  margin: 0 auto;
  font-size: 1.05rem;
  line-height: 1.75;
  color: var(--ink);
}

.article-body h2 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--sindoor-deep);
  margin: 2.5rem 0 0.75rem;
}

.article-body p { margin-bottom: 1.25rem; }

.article-body p:first-of-type::first-letter {
  font-family: var(--font-display);
  float: left;
  font-size: 3.5rem;
  line-height: 0.82;
  padding-right: 0.5rem;
  padding-top: 0.15rem;
  color: var(--sindoor);
  font-weight: 700;
}

.article-body ul {
  margin: 1rem 0 1.25rem 1.5rem;
  list-style: disc;
}
.article-body li { margin-bottom: 0.4rem; }

.article-body blockquote {
  border-left: 3px solid var(--marigold);
  padding: 0.75rem 1.25rem;
  margin: 1.5rem 0;
  font-style: italic;
  color: var(--ink-soft);
  background: var(--sand-warm);
  border-radius: 0 8px 8px 0;
}

.article-tags {
  max-width: 680px;
  margin: 2rem auto 0;
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}
.article-tags span {
  font-size: 0.78rem;
  padding: 0.25rem 0.7rem;
  background: var(--sand-warm);
  border-radius: 100px;
  color: var(--ink-soft);
  border: 1px solid var(--border);
}

/* ═══════════════════════════════════════════════════════
   PAGE SECTIONS (tabs for Blog listing)
   ═══════════════════════════════════════════════════════ */

.category-tabs {
  display: flex;
  gap: 0.35rem;
  margin-bottom: 1.5rem;
  border-bottom: 2px solid var(--border);
  padding-bottom: 0;
}

.cat-tab {
  padding: 0.65rem 1.15rem;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--ink-muted);
  border: none;
  background: none;
  cursor: pointer;
  position: relative;
  font-family: var(--font-body);
  transition: color 0.2s;
}

.cat-tab.active {
  color: var(--sindoor);
  font-weight: 600;
}

.cat-tab.active::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--sindoor);
  border-radius: 2px 2px 0 0;
}

/* ═══════════════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════════════ */

@media (max-width: 900px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }
  .hero-main { min-height: 320px; }
  .hero-side { flex-direction: row; }
  .hero-side-card img { width: 120px; }
  .posts-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 1.5rem; }
}

@media (max-width: 600px) {
  .header-inner { height: 56px; }
  .logo-text { font-size: 1.15rem; }
  nav a { font-size: 0.82rem; padding: 0.35rem 0.5rem; }
  .hero-main-content h2 { font-size: 1.35rem; }
  .hero-side { flex-direction: column; }
  .hero-side-card img { width: 110px; }
  .posts-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 0.5rem; }
  .article-header h1 { font-size: 1.65rem; }
  .newsletter { padding: 1.5rem; }
  .newsletter-form { flex-direction: column; }
  .temple-spotlight-content { padding: 1.5rem; }
  .temple-spotlight-content h2 { font-size: 1.35rem; }
}

/* ═══════════════════════════════════════════════════════
   REDUCED MOTION
   ═══════════════════════════════════════════════════════ */
@media (prefers-reduced-motion: reduce) {
  .ticker-track { animation: none; }
  .post-card, .hero-main-img, .post-card-img img { transition: none !important; }
}
/* ═══════════════════════════════════════════════════════
   PAGINATION
   ═══════════════════════════════════════════════════════ */

.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.35rem;
  margin: 2.5rem 0 1rem;
}
.pagination a, .pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 38px;
  height: 38px;
  padding: 0 0.5rem;
  border-radius: 8px;
  font-size: 0.88rem;
  font-weight: 500;
  border: 1px solid var(--border);
  background: var(--white);
  color: var(--ink-soft);
  transition: all 0.2s;
}
.pagination a:hover { border-color: var(--sindoor); color: var(--sindoor); }
.pagination .current {
  background: var(--sindoor);
  color: var(--white);
  border-color: var(--sindoor);
}
.pagination .disabled { opacity: 0.35; pointer-events: none; }

/* ═══════════════════════════════════════════════════════
   SEARCH BAR (blog page)
   ═══════════════════════════════════════════════════════ */

.search-bar {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
  max-width: 400px;
}
.search-bar input {
  flex: 1;
  padding: 0.55rem 1rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 0.9rem;
  font-family: var(--font-body);
  background: var(--white);
  color: var(--ink);
  outline: none;
  transition: border-color 0.2s;
}
.search-bar input:focus { border-color: var(--sindoor); }
.search-bar button {
  padding: 0.55rem 1rem;
  background: var(--sindoor);
  color: var(--white);
  border: none;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
}
.search-bar button:hover { background: var(--sindoor-deep); }

/* ═══════════════════════════════════════════════════════
   ADMIN PANEL
   ═══════════════════════════════════════════════════════ */

.admin-wrap {
  max-width: 960px;
  margin: 0 auto;
  padding: 2rem 1.25rem;
}
.admin-wrap h1 {
  font-family: var(--font-display);
  font-size: 1.6rem;
  margin-bottom: 1.5rem;
}

.admin-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.5rem;
  margin-bottom: 1.25rem;
}
.admin-card h2 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  margin-bottom: 1rem;
  color: var(--sindoor-deep);
}

.admin-card label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--ink-soft);
  margin-bottom: 0.25rem;
  margin-top: 0.75rem;
}
.admin-card label:first-of-type { margin-top: 0; }

.admin-card input[type="text"],
.admin-card input[type="password"],
.admin-card input[type="email"],
.admin-card select,
.admin-card textarea {
  width: 100%;
  padding: 0.55rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 0.9rem;
  font-family: var(--font-body);
  background: var(--sand);
  color: var(--ink);
  outline: none;
}
.admin-card textarea { min-height: 80px; resize: vertical; }
.admin-card input:focus, .admin-card select:focus, .admin-card textarea:focus { border-color: var(--sindoor); }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.55rem 1.25rem;
  border-radius: 8px;
  font-size: 0.88rem;
  font-weight: 600;
  font-family: var(--font-body);
  border: none;
  cursor: pointer;
  transition: background 0.2s;
}
.btn-primary { background: var(--sindoor); color: var(--white); }
.btn-primary:hover { background: var(--sindoor-deep); }
.btn-secondary { background: var(--sand-warm); color: var(--ink); border: 1px solid var(--border); }
.btn-secondary:hover { background: var(--border); }
.btn-danger { background: #dc2626; color: #fff; }
.btn-danger:hover { background: #b91c1c; }
.btn-sm { padding: 0.35rem 0.75rem; font-size: 0.8rem; }

.admin-actions { display: flex; gap: 0.5rem; margin-top: 1rem; }

.alert {
  padding: 0.75rem 1rem;
  border-radius: 8px;
  font-size: 0.88rem;
  margin-bottom: 1rem;
}
.alert-success { background: #dcfce7; color: #166534; border: 1px solid #bbf7d0; }
.alert-error   { background: #fef2f2; color: #991b1b; border: 1px solid #fecaca; }
.alert-info    { background: #eff6ff; color: #1e40af; border: 1px solid #bfdbfe; }

.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
}
.admin-table th {
  text-align: left;
  font-weight: 600;
  color: var(--ink-soft);
  border-bottom: 2px solid var(--border);
  padding: 0.6rem 0.5rem;
}
.admin-table td {
  padding: 0.6rem 0.5rem;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}
.admin-table tr:hover td { background: var(--sand); }

.status-badge {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 600;
  padding: 0.15rem 0.5rem;
  border-radius: 100px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.status-published { background: #dcfce7; color: #166534; }
.status-draft     { background: #fef3c7; color: #92400e; }
.status-success   { background: #dcfce7; color: #166534; }
.status-failed    { background: #fef2f2; color: #991b1b; }

/* Login form */
.login-wrap {
  max-width: 380px;
  margin: 4rem auto;
  padding: 0 1.25rem;
}
.login-wrap h1 {
  font-family: var(--font-display);
  text-align: center;
  margin-bottom: 1.5rem;
}

/* About page */
.about-page { padding: 2rem 0 3rem; }
.about-page .about-content {
  max-width: 680px;
  margin: 0 auto;
  font-size: 1.05rem;
  line-height: 1.75;
}
.about-page h1 {
  font-family: var(--font-display);
  font-size: 2rem;
  text-align: center;
  margin-bottom: 0.5rem;
}
.about-page .subtitle {
  text-align: center;
  color: var(--ink-muted);
  margin-bottom: 2rem;
}
.about-page h2 {
  font-family: var(--font-display);
  font-size: 1.4rem;
  color: var(--sindoor-deep);
  margin: 2rem 0 0.75rem;
}

/* ═══════════════════════════════════════════════════════
   MOBILE NAVIGATION
   ═══════════════════════════════════════════════════════ */

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  z-index: 110;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}

.nav-mobile {
  display: none;
  flex-direction: column;
  background: var(--white);
  border-top: 1px solid var(--border);
  padding: 0.5rem 1.25rem 1rem;
}
.nav-mobile a {
  padding: 0.65rem 0;
  font-size: 1rem;
  font-weight: 500;
  color: var(--ink-soft);
  border-bottom: 1px solid var(--border);
}
.nav-mobile a:last-child { border-bottom: none; }
.nav-mobile a.active { color: var(--sindoor); }

@media (max-width: 768px) {
  .nav-desktop { display: none; }
  .nav-toggle  { display: flex; }

  body.nav-open .nav-mobile { display: flex; }
  body.nav-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  body.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
  body.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}

@media (min-width: 769px) {
  .nav-mobile { display: none !important; }
}

/* ═══════════════════════════════════════════════════════
   SHARE BUTTONS (post page)
   ═══════════════════════════════════════════════════════ */

.share-row {
  max-width: 680px;
  margin: 1.5rem auto 0;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.share-row .label {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--ink-muted);
  margin-right: 0.25rem;
}
.share-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--white);
  color: var(--ink-soft);
  font-size: 0.85rem;
  text-decoration: none;
  transition: all 0.2s;
}
.share-btn:hover {
  border-color: var(--sindoor);
  color: var(--sindoor);
  background: var(--sand);
}
.share-btn svg { width: 16px; height: 16px; }
