/* ═══════════════════════════════════════════════
   PHULKARI THEME — Pure Joy Pages
   Punjabi Poetry · Variant B — Phulkari Warmth
   ═══════════════════════════════════════════════ */

/* ── TOKENS ─────────────────────────────────── */
:root {
  --maroon:      #6B1B3E;
  --maroon-dk:   #4A1028;
  --maroon-lt:   #8B2A52;
  --gold:        #C8872A;
  --gold-lt:     #E8A840;
  --gold-pale:   #F5E6C8;
  --ivory:       #F8F1E4;
  --cream:       #EDE4D2;
  --ink:         #2A1A0E;
  --ink-muted:   #7A6050;
  --border:      #D8C0A0;
  --border-lt:   #E8D8BC;
  --white:       #FFFFFF;
  --font-serif:  'Playfair Display', Georgia, 'Times New Roman', serif;
  --font-body:   'Lora', Georgia, serif;
  --font-ui:     'Inter', -apple-system, sans-serif;
  --radius:      3px;
  --shadow:      0 4px 24px rgba(42,26,14,0.1);
}

/* ── RESET ───────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button, input { font-family: var(--font-ui); }

/* ── BASE ────────────────────────────────────── */
body {
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.7;
  color: var(--ink);
  background: var(--ivory);
}

/* ── PHULKARI STRIPE ─────────────────────────── */
.phulkari-stripe {
  height: 10px;
  background:
    repeating-linear-gradient(
      90deg,
      var(--maroon)    0px,  var(--maroon)    10px,
      var(--gold)      10px, var(--gold)       20px,
      var(--maroon-dk) 20px, var(--maroon-dk)  30px,
      var(--gold-lt)   30px, var(--gold-lt)    40px,
      var(--maroon-lt) 40px, var(--maroon-lt)  50px,
      var(--gold)      50px, var(--gold)       60px,
      var(--maroon)    60px, var(--maroon)     70px,
      var(--gold-pale) 70px, var(--gold-pale)  80px
    );
}

/* ── NAVIGATION ──────────────────────────────── */
.site-nav {
  background: var(--maroon);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 20px rgba(74,16,40,0.4);
}
.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px;
  height: 68px;
  display: flex;
  align-items: center;
  gap: 40px;
}
.site-logo {
  display: flex;
  flex-direction: row;
  gap: 0;
  text-decoration: none;
  flex-shrink: 0;
  align-items: center;
}
.logo-img {
  height: 52px;
  width: auto;
  max-width: 400px;
  object-fit: contain;
  display: block;
}
.logo-main {
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 700;
  color: var(--gold-lt);
  letter-spacing: -0.01em;
  line-height: 1;
}
.logo-punjabi {
  font-family: var(--font-serif);
  font-size: 14px;
  font-style: italic;
  color: rgba(255,255,255,0.45);
  font-weight: 400;
  line-height: 1;
}
.logo-flower {
  height: 52px;
  width: auto;
  display: block;
}
.logo-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  margin-left: 12px;
  gap: 2px;
  line-height: 1;
}
.logo-main {
  color: #C8872A;
}
.footer-logo-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  margin-left: 8px;
}
.footer-logo-text .logo-main,
.footer-logo-text .logo-punjabi {
  display: block;
}
.logo-text .logo-main {
  color: #C8872A;
}
.logo-text .logo-punjabi {
  color: #C8872A;
}
.nav-links {
  display: flex;
  list-style: none;
  gap: 4px;
  flex: 1;
}
.nav-links a {
  font-family: var(--font-ui);
  font-size: 13px;
  color: rgba(255,255,255,0.6);
  padding: 6px 14px;
  border-radius: 20px;
  transition: all 0.2s;
  letter-spacing: 0.02em;
}
.nav-links a:hover {
  color: var(--gold-lt);
  background: rgba(200,135,42,0.12);
}

/* Mobile nav toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: transparent;
  border: none;
  padding: 8px;
  cursor: pointer;
  margin-left: auto;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: rgba(255,255,255,0.7);
  border-radius: 2px;
  transition: all 0.2s;
}

/* ── HERO ────────────────────────────────────── */
.hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 500px;
}
.hero-left {
  background: var(--maroon);
  padding: 72px 60px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  overflow: hidden;
}
/* Decorative circle — Phulkari sun motif */
.hero-left::after {
  content: '';
  position: absolute;
  right: -80px;
  top: 50%;
  transform: translateY(-50%);
  width: 280px;
  height: 280px;
  border: 1px solid rgba(200,135,42,0.15);
  border-radius: 50%;
  box-shadow:
    0 0 0 30px rgba(200,135,42,0.05),
    0 0 0 60px rgba(200,135,42,0.03),
    0 0 0 90px rgba(200,135,42,0.015);
  pointer-events: none;
}
.hero-ornament {
  font-size: 18px;
  color: var(--gold);
  letter-spacing: 12px;
  margin-bottom: 20px;
}
.hero-headline {
  font-family: var(--font-serif);
  font-size: clamp(40px, 5vw, 60px);
  font-weight: 700;
  line-height: 1.08;
  color: var(--gold-lt);
  margin-bottom: 8px;
  letter-spacing: -0.02em;
}
.hero-punjabi {
  font-family: var(--font-serif);
  font-size: 24px;
  font-style: italic;
  color: rgba(255,255,255,0.4);
  font-weight: 400;
  margin-bottom: 22px;
}
.hero-sub {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.75;
  color: rgba(255,255,255,0.6);
  max-width: 400px;
  margin-bottom: 36px;
}
.hero-cta-group {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.btn-primary {
  display: inline-block;
  font-family: var(--font-ui);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 12px 28px;
  background: var(--gold);
  color: var(--maroon-dk);
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  transition: background 0.2s;
}
.btn-primary:hover { background: var(--gold-lt); }
.btn-secondary {
  display: inline-block;
  font-family: var(--font-ui);
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 12px 28px;
  background: transparent;
  color: rgba(255,255,255,0.55);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: var(--radius);
  cursor: pointer;
  transition: all 0.2s;
}
.btn-secondary:hover {
  color: rgba(255,255,255,0.85);
  border-color: rgba(255,255,255,0.4);
}

/* Hero Right — Featured Poem */
.hero-right {
  background: var(--cream);
  padding: 60px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 20px;
}
.featured-label {
  font-family: var(--font-ui);
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  display: flex;
  align-items: center;
  gap: 10px;
}
.featured-label::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}
.feat-title {
  font-family: var(--font-serif);
  font-size: 28px;
  font-weight: 600;
  color: var(--maroon);
  line-height: 1.25;
}
.feat-lines {
  font-family: var(--font-body);
  font-size: 16px;
  font-style: italic;
  line-height: 2;
  color: var(--ink-muted);
  border-left: 3px solid var(--gold);
  padding-left: 20px;
  margin: 0;
}
.feat-author {
  font-family: var(--font-ui);
  font-size: 12px;
  color: var(--gold);
  letter-spacing: 0.06em;
}
.feat-author a {
  color: var(--maroon);
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* ── SECTIONS ────────────────────────────────── */
.poems-section, .tags-section, .newsletter-strip {
  padding: 64px 0;
}
.tags-section { background: var(--cream); }
.section-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px;
}
.section-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 36px;
  padding-bottom: 14px;
  border-bottom: 2px solid var(--maroon);
}
.section-title {
  font-family: var(--font-serif);
  font-size: 28px;
  font-weight: 700;
  color: var(--maroon);
  letter-spacing: -0.01em;
}
.section-more {
  font-family: var(--font-ui);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
  transition: color 0.2s;
}
.section-more:hover { color: var(--maroon); }

/* ── POEM GRID ───────────────────────────────── */
.poem-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-top: 3px solid var(--maroon);
}
.poem-card {
  background: var(--ivory);
  padding: 32px 28px;
  transition: background 0.2s;
}
.poem-card:hover { background: var(--cream); }
.card-tag {
  font-family: var(--font-ui);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin-bottom: 12px;
}
.card-tag a {
  color: var(--maroon);
  background: var(--gold-pale);
  padding: 3px 10px;
  border-radius: 2px;
}
.card-tag a:hover { background: var(--gold); color: var(--white); }
.card-title {
  font-family: var(--font-serif);
  font-size: 20px;
  font-weight: 600;
  color: var(--maroon);
  line-height: 1.3;
  margin-bottom: 10px;
}
.card-title a { transition: color 0.2s; }
.card-title a:hover { color: var(--gold); }
.card-excerpt {
  font-family: var(--font-body);
  font-size: 14px;
  line-height: 1.75;
  color: var(--ink-muted);
  font-style: italic;
  margin-bottom: 18px;
}
.card-meta {
  font-family: var(--font-ui);
  font-size: 11px;
  color: var(--ink-muted);
  padding-top: 14px;
  border-top: 1px solid var(--border-lt);
  display: flex;
  justify-content: space-between;
}

/* ── TAGS GRID ───────────────────────────────── */
.tags-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.tag-chip {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  background: var(--ivory);
  border: 1px solid var(--border);
  border-radius: 30px;
  font-family: var(--font-ui);
  font-size: 13px;
  color: var(--ink-muted);
  transition: all 0.2s;
}
.tag-chip:hover {
  background: var(--maroon);
  color: var(--gold-lt);
  border-color: var(--maroon);
}
.tag-count {
  font-size: 11px;
  background: var(--gold-pale);
  color: var(--gold);
  padding: 1px 7px;
  border-radius: 10px;
  font-weight: 600;
}
.tag-chip:hover .tag-count {
  background: rgba(200,135,42,0.2);
  color: var(--gold-lt);
}

/* ── NEWSLETTER ──────────────────────────────── */
.newsletter-strip {
  background: var(--maroon);
  padding: 48px 0;
}
.newsletter-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
}
.nl-title {
  font-family: var(--font-serif);
  font-size: 24px;
  font-weight: 600;
  color: var(--gold-lt);
  margin-bottom: 4px;
}
.nl-sub {
  font-family: var(--font-body);
  font-size: 15px;
  color: rgba(255,255,255,0.55);
  font-style: italic;
}
.nl-form {
  display: flex;
  gap: 0;
  flex-shrink: 0;
}
.nl-form input {
  width: 280px;
  padding: 12px 16px;
  border: 1px solid rgba(200,135,42,0.3);
  border-right: none;
  border-radius: var(--radius) 0 0 var(--radius);
  background: rgba(255,255,255,0.08);
  color: var(--white);
  font-size: 14px;
  outline: none;
}
.nl-form input::placeholder { color: rgba(255,255,255,0.35); }
.nl-form input:focus { border-color: var(--gold); background: rgba(255,255,255,0.12); }
.nl-form .btn-primary {
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 12px 22px;
}
.nl-thanks {
  font-family: var(--font-serif);
  font-style: italic;
  color: var(--gold-lt);
  font-size: 16px;
}

/* ── POST PAGE ───────────────────────────────── */
.post-main {
  max-width: 760px;
  margin: 0 auto;
  padding: 60px 40px;
}
.post-header { margin-bottom: 40px; }
.post-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}
.post-tag {
  font-family: var(--font-ui);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--maroon);
  background: var(--gold-pale);
  padding: 4px 12px;
  border-radius: 2px;
  transition: all 0.2s;
}
.post-tag:hover { background: var(--maroon); color: var(--gold-lt); }
.post-title {
  font-family: var(--font-serif);
  font-size: clamp(32px, 5vw, 52px);
  font-weight: 700;
  line-height: 1.15;
  color: var(--maroon);
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}
.post-excerpt {
  font-family: var(--font-body);
  font-size: 20px;
  font-style: italic;
  color: var(--ink-muted);
  line-height: 1.6;
  margin-bottom: 20px;
}
.post-byline {
  display: flex;
  align-items: center;
  gap: 16px;
  font-family: var(--font-ui);
  font-size: 13px;
  color: var(--ink-muted);
  padding: 16px 0;
  border-top: 1px solid var(--border-lt);
  border-bottom: 1px solid var(--border-lt);
  flex-wrap: wrap;
}
.post-author {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--maroon);
  font-weight: 500;
}
.author-avatar {
  width: 32px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
}

/* ── POST CONTENT (POETRY FOCUSED) ──────────── */
.post-content {
  padding: 40px 0;
  font-family: var(--font-body);
  font-size: 19px;
  line-height: 2;
  color: var(--ink);
}
/* Poetry: preserve line breaks */
.post-content p {
  margin-bottom: 1.5em;
  white-space: pre-line;
}
.post-content blockquote {
  border-left: 4px solid var(--gold);
  padding: 20px 28px;
  margin: 32px 0;
  background: var(--cream);
  border-radius: 0 var(--radius) var(--radius) 0;
}
.post-content blockquote p {
  font-style: italic;
  color: var(--ink-muted);
  font-size: 20px;
  line-height: 1.9;
  margin: 0;
}
.post-content h1, .post-content h2, .post-content h3 {
  font-family: var(--font-serif);
  color: var(--maroon);
  margin: 2em 0 0.5em;
}
.post-content h2 { font-size: 28px; }
.post-content h3 { font-size: 22px; }
.post-content a { color: var(--maroon); text-decoration: underline; text-underline-offset: 3px; }
.post-content hr {
  border: none;
  text-align: center;
  margin: 48px 0;
}
.post-content hr::after {
  content: '✦ ✦ ✦';
  color: var(--gold);
  letter-spacing: 12px;
  font-size: 14px;
}
.post-content img {
  border-radius: var(--radius);
  margin: 32px 0;
}

/* ── POST SHARE BAR ──────────────────────────── */
.post-footer {
  padding: 32px 0;
  border-top: 2px solid var(--border);
}
.post-footer-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
}
.post-share {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.share-label {
  font-family: var(--font-ui);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-right: 4px;
}
.share-btn {
  font-family: var(--font-ui);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 8px 16px;
  border-radius: var(--radius);
  transition: all 0.2s;
}
.share-whatsapp  { background: #25D366; color: #fff; }
.share-instagram { background: linear-gradient(135deg,#f09433,#e6683c,#dc2743,#cc2366,#bc1888); color:#fff; }
.share-facebook  { background: #1877F2; color: #fff; }
.share-twitter   { background: #000; color: #fff; }
.share-btn:hover { opacity: 0.85; transform: translateY(-1px); }

/* ── POST FEATURE IMAGE ──────────────────────── */
.post-feature-image {
  margin: 32px -40px;
  border-radius: var(--radius);
  overflow: hidden;
}
.post-feature-image img {
  width: 100%;
  max-height: 480px;
  object-fit: cover;
}

/* ── TAG PAGE HEADER ─────────────────────────── */
.tag-header {
  background: var(--maroon);
  padding: 72px 40px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.tag-header::before {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    45deg, transparent, transparent 60px,
    rgba(200,135,42,0.04) 60px, rgba(200,135,42,0.04) 61px
  );
}
.tag-header-inner { position: relative; }
.tag-label {
  font-family: var(--font-ui);
  font-size: 10px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 14px;
}
.tag-title {
  font-family: var(--font-serif);
  font-size: clamp(36px, 5vw, 56px);
  font-weight: 700;
  color: var(--gold-lt);
  margin-bottom: 12px;
}
.tag-desc {
  font-family: var(--font-body);
  font-size: 17px;
  font-style: italic;
  color: rgba(255,255,255,0.55);
  max-width: 500px;
  margin: 0 auto 12px;
}
.tag-count {
  font-family: var(--font-ui);
  font-size: 12px;
  color: rgba(255,255,255,0.3);
  letter-spacing: 0.12em;
}

/* ── RELATED POEMS ───────────────────────────── */
.related-poems {
  background: var(--cream);
  padding: 64px 0;
  margin-top: 60px;
}

/* ── PAGINATION ──────────────────────────────── */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
  padding: 40px 0 0;
  font-family: var(--font-ui);
  font-size: 13px;
}
.pagination a {
  color: var(--maroon);
  padding: 8px 18px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: all 0.2s;
}
.pagination a:hover { background: var(--maroon); color: var(--gold-lt); border-color: var(--maroon); }
.pagination .page-number { color: var(--ink-muted); }

/* ── FOOTER ──────────────────────────────────── */
.site-footer {
  background: var(--maroon-dk);
  padding: 48px 40px;
}
.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  text-align: center;
}
.footer-logo {
  font-family: var(--font-serif);
  font-size: 28px;
  font-weight: 700;
  color: var(--gold-lt);
  display: inline-block;
}
.footer-logo img {
  height: 40px;
  width: auto;
  object-fit: contain;
  filter: brightness(0) invert(1) sepia(1) saturate(2) hue-rotate(10deg);
  opacity: 0.85;
}
.footer-tagline {
  font-family: var(--font-body);
  font-size: 15px;
  font-style: italic;
  color: rgba(255,255,255,0.35);
}
.footer-social {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  justify-content: center;
}
.footer-social a {
  font-family: var(--font-ui);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.3);
  transition: color 0.2s;
}
.footer-social a:hover { color: var(--gold-lt); }
.footer-copy {
  font-family: var(--font-ui);
  font-size: 12px;
  color: rgba(255,255,255,0.2);
}

/* ── RESPONSIVE ──────────────────────────────── */
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; }
  .hero-left { padding: 56px 32px; }
  .hero-right { padding: 44px 32px; }
  .poem-grid { grid-template-columns: repeat(2, 1fr); }
  .nav-links { display: none; }
  .nav-toggle { display: flex; }
  .nav-links.open { display: flex; flex-direction: column; position: absolute; top: 68px; left: 0; right: 0; background: var(--maroon-dk); padding: 16px; gap: 4px; }
  .newsletter-inner { flex-direction: column; align-items: flex-start; }
  .nl-form { width: 100%; flex-direction: column; }
  .nl-form input { width: 100%; border-right: 1px solid rgba(200,135,42,0.3); border-bottom: none; border-radius: var(--radius) var(--radius) 0 0; }
  .nl-form .btn-primary { border-radius: 0 0 var(--radius) var(--radius); }
}

@media (max-width: 600px) {
  .poem-grid { grid-template-columns: 1fr; }
  .post-main { padding: 40px 24px; }
  .post-feature-image { margin: 24px -24px; }
  .nav-inner { padding: 0 24px; }
  .section-inner { padding: 0 24px; }
  .hero-left::after { display: none; }
  .share-label { width: 100%; }
}

/* Ghost Koenig editor required classes */
.kg-width-wide {
  margin-left: calc(50% - 45vw);
  margin-right: calc(50% - 45vw);
  max-width: 90vw;
}
.kg-width-full {
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  max-width: 100vw;
  width: 100vw;
}
.kg-image { max-width: 100%; }
.kg-gallery-container { display: flex; flex-direction: column; }
.kg-gallery-row { display: flex; flex-direction: row; justify-content: center; }
.kg-gallery-image img { display: block; margin: 0; width: 100%; height: 100%; object-fit: cover; }
