/* ================================================================
   SPICED COUPLE — BLOG CSS
   Design system: dark theme, Playfair Display + DM Sans
   ================================================================ */

/* ── Google Fonts ── */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,600;0,700;1,400&family=DM+Sans:wght@300;400;500;600&display=swap');

/* ── CSS Variables ── */
:root {
  --bg:        #0d0d0d;
  --surface:   #1a1a1a;
  --surface2:  #242424;
  --red:       #c0392b;
  --red-hover: #a93226;
  --gold:      #f0b429;
  --text:      #f0ece4;
  --muted:     #8a8070;
  --border:    rgba(240,236,228,0.08);
  --radius:    12px;
  --nav-h:     64px;
  --max-w:     1200px;
  --article-w: 720px;
}

/* ── Reset & Base ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; font-size: 16px; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'DM Sans', system-ui, sans-serif;
  font-weight: 400;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: var(--gold); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--text); }

/* ── Typography ── */
h1, h2, h3, h4, h5 {
  font-family: 'Playfair Display', Georgia, serif;
  line-height: 1.25;
  color: var(--text);
}

h1 { font-size: clamp(1.8rem, 4vw, 2.8rem); font-weight: 700; }
h2 { font-size: clamp(1.35rem, 3vw, 1.9rem); font-weight: 600; margin: 2rem 0 0.8rem; }
h3 { font-size: clamp(1.1rem, 2.5vw, 1.4rem); font-weight: 600; margin: 1.5rem 0 0.5rem; }
h4 { font-size: 1.1rem; font-weight: 600; margin: 1.2rem 0 0.4rem; }

p { margin-bottom: 1.1rem; }

ul, ol { padding-left: 1.5rem; margin-bottom: 1.1rem; }
li { margin-bottom: 0.45rem; }

strong { font-weight: 600; color: var(--text); }
em { font-style: italic; }

/* ── Utility ── */
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 1.25rem; }
.text-muted { color: var(--muted); }
.text-gold  { color: var(--gold); }
.text-red   { color: var(--red); }

/* ================================================================
   NAVIGATION
   ================================================================ */
.site-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-h);
  background: rgba(13,13,13,0.82);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(240,180,41,0.12);
  z-index: 1000;
  display: flex;
  align-items: center;
}

.site-nav .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.nav-logo {
  font-family: 'Playfair Display', serif;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text) !important;
  letter-spacing: -0.01em;
}
.nav-logo span { color: var(--red); }

.btn-primary {
  display: inline-block;
  background: var(--red);
  color: var(--text) !important;
  font-family: 'DM Sans', sans-serif;
  font-weight: 600;
  font-size: 0.9rem;
  padding: 10px 24px;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s;
  white-space: nowrap;
}
.btn-primary:hover { background: var(--red-hover); transform: translateY(-1px); }

.btn-secondary {
  display: inline-block;
  background: transparent;
  color: var(--gold) !important;
  font-family: 'DM Sans', sans-serif;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 10px 24px;
  border-radius: 999px;
  border: 1.5px solid var(--gold);
  cursor: pointer;
  transition: background 0.2s, color 0.2s, transform 0.15s;
}
.btn-secondary:hover { background: var(--gold); color: var(--bg) !important; transform: translateY(-1px); }

/* ── Nav spacer ── */
.nav-spacer { height: var(--nav-h); }

/* ================================================================
   BREADCRUMB
   ================================================================ */
.breadcrumb {
  padding: 1rem 0 0.5rem;
  font-size: 0.85rem;
  color: var(--muted);
}
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--gold); }
.breadcrumb span { margin: 0 0.4rem; }

/* ================================================================
   BLOG HERO
   ================================================================ */
.blog-hero {
  padding: 5rem 0 3.5rem;
  text-align: center;
  border-bottom: 1px solid var(--border);
  background: radial-gradient(ellipse at 50% 0%, rgba(192,57,43,0.12) 0%, transparent 70%);
}

.blog-hero h1 {
  font-size: clamp(2rem, 5vw, 3.2rem);
  margin-bottom: 0.75rem;
}

.blog-hero .subtitle {
  font-size: 1.15rem;
  color: var(--muted);
  max-width: 520px;
  margin: 0 auto 2rem;
}

/* ================================================================
   CATEGORY FILTER PILLS
   ================================================================ */
.filter-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  justify-content: center;
  margin-bottom: 0.5rem;
}

.filter-pill {
  display: inline-block;
  padding: 6px 18px;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 500;
  border: 1.5px solid var(--border);
  color: var(--muted);
  cursor: pointer;
  transition: all 0.2s;
  background: transparent;
  text-decoration: none;
}
/* default hover = gold */
.filter-pill:hover {
  border-color: var(--gold);
  color: var(--gold);
  background: rgba(240,180,41,0.07);
}

/* All — gold */
.filter-pill.active[data-filter="all"] {
  border-color: var(--gold);
  color: var(--gold);
  background: rgba(240,180,41,0.07);
}

/* Long Distance — teal */
.filter-pill.active[data-filter="long-distance"] {
  border-color: #4ecdc4;
  color: #4ecdc4;
  background: rgba(78,205,196,0.07);
}

/* Date Night — rose */
.filter-pill.active[data-filter="date-night"] {
  border-color: #f06292;
  color: #f06292;
  background: rgba(240,98,146,0.07);
}

/* Intimacy — red brand */
.filter-pill.active[data-filter="intimacy"] {
  border-color: var(--red);
  color: var(--red);
  background: rgba(192,57,43,0.09);
}

/* ================================================================
   BLOG GRID
   ================================================================ */
.blog-section { padding: 3.5rem 0 5rem; }

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

@media (max-width: 900px) { .blog-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .blog-grid { grid-template-columns: 1fr; } }

/* ── Article Card ── */
.article-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
}

.article-card:hover {
  border-color: rgba(240,180,41,0.35);
  transform: translateY(-3px);
  box-shadow: 0 8px 32px rgba(0,0,0,0.35);
}

.card-category { margin-bottom: 0.25rem; }

.article-card h2 {
  font-size: 1.15rem;
  margin: 0;
  line-height: 1.35;
  color: var(--text);
}

.card-excerpt {
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.55;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex: 1;
}

.card-meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.8rem;
  color: var(--muted);
  margin-top: auto;
}

.card-meta .dot { color: var(--border); }

.card-link {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--gold);
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  transition: gap 0.2s;
}
.article-card:hover .card-link { gap: 0.55rem; }

/* ================================================================
   CATEGORY BADGES / PILLS
   ================================================================ */
.badge {
  display: inline-block;
  padding: 3px 12px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.badge-date-night    { background: rgba(240,98,146,0.12);  color: #f06292; border: 1px solid rgba(240,98,146,0.25); }
.badge-long-distance { background: rgba(78,205,196,0.12);  color: #4ecdc4; border: 1px solid rgba(78,205,196,0.25); }
.badge-intimacy      { background: rgba(192,57,43,0.15);   color: #c0392b; border: 1px solid rgba(192,57,43,0.25); }

/* card-link color per categoria */
.article-card[data-category="date-night"]    .card-link { color: #f06292; }
.article-card[data-category="date-night"]    .card-link:hover { color: #d94f7a; }
.article-card[data-category="long-distance"] .card-link { color: #4ecdc4; }
.article-card[data-category="long-distance"] .card-link:hover { color: #3ab8b0; }
.article-card[data-category="intimacy"]      .card-link { color: #c0392b; }
.article-card[data-category="intimacy"]      .card-link:hover { color: #a93226; }

/* ================================================================
   ARTICLE PAGE LAYOUT
   ================================================================ */
.article-layout {
  max-width: var(--article-w);
  margin: 0 auto;
  padding: 2.5rem 1.25rem 5rem;
}

/* ── Article Header ── */
.article-header { margin-bottom: 2.5rem; }

.article-header .badge { margin-bottom: 1rem; }

.article-header h1 {
  margin-bottom: 1.25rem;
  letter-spacing: -0.02em;
}

.article-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 1rem;
  font-size: 0.85rem;
  color: var(--muted);
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border);
}

.article-meta .meta-dot { opacity: 0.35; }

/* ── Drop Cap ── */
.article-body > p:first-of-type::first-letter {
  font-family: 'Playfair Display', serif;
  font-size: 3.5em;
  font-weight: 700;
  float: left;
  line-height: 0.8;
  margin: 0.1em 0.12em 0 0;
  color: var(--gold);
}

/* ── Article Body ── */
.article-body { font-size: 1.02rem; }

.article-body h2 {
  color: var(--text);
  padding-top: 0.5rem;
  border-top: 1px solid var(--border);
  margin-top: 2.5rem;
}

.article-body h3 { color: var(--gold); }

.article-body ul li,
.article-body ol li { margin-bottom: 0.6rem; }

.article-body a {
  color: var(--gold);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: rgba(240,180,41,0.4);
}
.article-body a:hover { text-decoration-color: var(--gold); }

/* ── Blockquote ── */
blockquote {
  margin: 2rem 0;
  padding: 1.25rem 1.5rem;
  border-left: 3px solid var(--gold);
  background: var(--surface);
  border-radius: 0 var(--radius) var(--radius) 0;
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-size: 1.1rem;
  color: var(--text);
}
blockquote cite {
  display: block;
  margin-top: 0.6rem;
  font-size: 0.85rem;
  font-style: normal;
  font-family: 'DM Sans', sans-serif;
  color: var(--muted);
}

/* ── Inline Table ── */
.article-body table {
  width: 100%;
  border-collapse: collapse;
  margin: 2rem 0;
  font-size: 0.9rem;
  border-radius: var(--radius);
  overflow: hidden;
}
.article-body th {
  background: var(--surface2);
  color: var(--gold);
  font-weight: 600;
  padding: 0.75rem 1rem;
  text-align: left;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.article-body td {
  padding: 0.7rem 1rem;
  border-bottom: 1px solid var(--border);
  color: var(--text);
}
.article-body tr:last-child td { border-bottom: none; }
.article-body tr:nth-child(even) td { background: rgba(255,255,255,0.02); }

/* ── Numbered game item ── */
.game-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  margin-bottom: 1rem;
  position: relative;
}
.game-item .game-number {
  position: absolute;
  top: -0.6rem;
  left: 1rem;
  background: var(--gold);
  color: var(--bg);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 1px 10px;
  border-radius: 999px;
  font-family: 'DM Sans', sans-serif;
}
.game-item h3 { margin: 0.4rem 0 0.4rem; color: var(--text); font-size: 1.05rem; }
.game-item p { margin: 0; font-size: 0.92rem; color: var(--muted); }

/* ================================================================
   CTA BLOCK
   ================================================================ */
.cta-block {
  background: linear-gradient(135deg, var(--red) 0%, #8b1a10 100%);
  border-radius: var(--radius);
  padding: 2.25rem 2rem;
  text-align: center;
  margin: 2.5rem 0;
  position: relative;
  overflow: hidden;
}
.cta-block::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 0%, rgba(255,255,255,0.08) 0%, transparent 60%);
  pointer-events: none;
}
.cta-block h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem;
  color: #fff;
  margin: 0 0 0.5rem;
}
.cta-block p {
  font-size: 0.95rem;
  color: rgba(255,255,255,0.8);
  margin: 0 0 1.5rem;
  max-width: 440px;
  margin-left: auto;
  margin-right: auto;
}
.cta-block .btn-cta {
  display: inline-block;
  background: #fff;
  color: var(--red) !important;
  font-family: 'DM Sans', sans-serif;
  font-weight: 700;
  font-size: 1rem;
  padding: 13px 32px;
  border-radius: 999px;
  transition: transform 0.2s, box-shadow 0.2s;
  text-decoration: none !important;
}
.cta-block .btn-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(0,0,0,0.3);
}

/* ── Inline CTA (smaller, within text) ── */
.cta-inline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  background: var(--surface2);
  border: 1px solid rgba(192,57,43,0.3);
  border-radius: var(--radius);
  padding: 1rem 1.5rem;
  margin: 1.75rem 0;
  flex-wrap: wrap;
}
.cta-inline p { margin: 0; font-size: 0.95rem; }
.cta-inline a { white-space: nowrap; }

/* ================================================================
   FAQ ACCORDION
   ================================================================ */
.faq-section { margin: 3rem 0; }
.faq-section > h2 { margin-bottom: 1.5rem; }

.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 0.75rem;
  overflow: hidden;
  background: var(--surface);
}

.faq-question {
  width: 100%;
  background: none;
  border: none;
  padding: 1.1rem 1.25rem;
  text-align: left;
  font-family: 'DM Sans', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  transition: background 0.2s;
}
.faq-question:hover { background: rgba(255,255,255,0.03); }

.faq-icon {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 1.5px solid var(--muted);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 1rem;
  color: var(--muted);
  transition: all 0.25s;
}
.faq-item.open .faq-icon {
  border-color: var(--gold);
  color: var(--gold);
  transform: rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, padding 0.25s ease;
  padding: 0 1.25rem;
  font-size: 0.95rem;
  color: var(--muted);
}
.faq-item.open .faq-answer {
  max-height: 600px;
  padding: 0 1.25rem 1.25rem;
}

/* ================================================================
   RELATED ARTICLES
   ================================================================ */
.related-section { margin: 3.5rem 0 0; padding-top: 2.5rem; border-top: 1px solid var(--border); }
.related-section h2 { margin-bottom: 1.5rem; font-size: 1.4rem; }

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

@media (max-width: 700px) { .related-grid { grid-template-columns: 1fr; } }

.related-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.2rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  transition: border-color 0.2s, transform 0.2s;
}
.related-card:hover { border-color: rgba(240,180,41,0.35); transform: translateY(-2px); }
.related-card .badge { margin-bottom: 0.25rem; }
.related-card h3 {
  font-size: 0.95rem;
  margin: 0;
  color: var(--text);
  line-height: 1.4;
}
.related-card .read-link {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--gold);
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}

/* ================================================================
   TAGS
   ================================================================ */
.tags-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 2rem 0;
}
.tag {
  display: inline-block;
  padding: 4px 14px;
  border-radius: 999px;
  font-size: 0.78rem;
  color: var(--muted);
  border: 1px solid var(--border);
  transition: color 0.2s, border-color 0.2s;
}
.tag:hover { color: var(--text); border-color: rgba(240,236,228,0.3); }

/* ================================================================
   FOOTER
   ================================================================ */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 0.78rem;
  color: var(--muted);
  margin-top: 4rem;
}
.site-footer a { color: var(--muted); text-decoration: none; }
.site-footer a:hover { color: var(--gold); }
.site-footer .footer-logo { font-family: 'Playfair Display', serif; color: var(--gold); font-size: 1rem; text-decoration: none; }
.site-footer .footer-logo span { color: var(--red); }
.site-footer .footer-links-row { display: flex; gap: 24px; flex-wrap: wrap; }
@media(max-width: 640px) {
  .site-footer { flex-direction: column; align-items: center; text-align: center; padding: 32px 20px; }
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-brand .nav-logo { font-size: 1.15rem; }
.footer-brand p { font-size: 0.875rem; color: var(--muted); margin-top: 0.5rem; max-width: 260px; }

.footer-links { display: flex; flex-wrap: wrap; gap: 2.5rem; }

.footer-col h4 {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin-bottom: 0.75rem;
}
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col li { margin-bottom: 0.4rem; }
.footer-col a { font-size: 0.875rem; color: var(--muted); }
.footer-col a:hover { color: var(--text); }

.footer-bottom {
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  font-size: 0.8rem;
  color: var(--muted);
}

/* ================================================================
   REVEAL ANIMATION
   ================================================================ */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* staggered children */
.reveal-stagger > * {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.reveal-stagger.visible > *:nth-child(1) { opacity:1; transform:none; transition-delay:0s; }
.reveal-stagger.visible > *:nth-child(2) { opacity:1; transform:none; transition-delay:0.07s; }
.reveal-stagger.visible > *:nth-child(3) { opacity:1; transform:none; transition-delay:0.14s; }
.reveal-stagger.visible > *:nth-child(4) { opacity:1; transform:none; transition-delay:0.21s; }
.reveal-stagger.visible > *:nth-child(5) { opacity:1; transform:none; transition-delay:0.28s; }
.reveal-stagger.visible > *:nth-child(6) { opacity:1; transform:none; transition-delay:0.35s; }
.reveal-stagger.visible > *:nth-child(7) { opacity:1; transform:none; transition-delay:0.42s; }
.reveal-stagger.visible > *:nth-child(8) { opacity:1; transform:none; transition-delay:0.49s; }

/* ================================================================
   RESPONSIVE TWEAKS
   ================================================================ */
@media (max-width: 640px) {
  .article-layout { padding: 1.5rem 1rem 4rem; }
  .cta-block { padding: 1.75rem 1.25rem; }
  .cta-inline { flex-direction: column; text-align: center; }
  .footer-inner { flex-direction: column; }
  .footer-links { flex-direction: column; gap: 1.5rem; }
  .article-meta { font-size: 0.8rem; }
  .article-body > p:first-of-type::first-letter { font-size: 2.8em; }
}

/* ── Scroll indicator bar ── */
.progress-bar {
  position: fixed;
  top: var(--nav-h);
  left: 0;
  height: 2px;
  background: var(--red);
  width: 0%;
  z-index: 999;
  transition: width 0.1s linear;
}
