/* ══════════════════════════════════════════════════════════
   GlamShot - shared article / guide stylesheet
   Mirrors the design tokens used on the homepage.
   ══════════════════════════════════════════════════════════ */

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

:root {
  --glam-gold: #E8446A;
  --glam-pink: #FF7EB3;
  --glam-bg: #0A0A0A;
  --glam-surface: #1A1A1A;
  --glam-muted: #8A8A8A;
  --glam-gradient: linear-gradient(135deg, #E8446A, #FF7EB3);
  --glam-gradient-h: linear-gradient(90deg, #E8446A, #FF7EB3);
  --font: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  font-family: var(--font);
  background: var(--glam-bg);
  color: #fff;
  overflow-x: hidden;
  line-height: 1.6;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
  opacity: 0.025;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 256px 256px;
}

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

.skip-link {
  position: absolute; top: -100%; left: 16px; z-index: 10000;
  padding: 12px 24px; background: var(--glam-gold); color: #fff;
  border-radius: 8px; font-weight: 600; font-size: 0.9rem;
}
.skip-link:focus { top: 8px; }

.gradient-text {
  background: var(--glam-gradient);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}

/* ── NAV ── */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  padding: 0 24px; height: 64px;
  display: flex; align-items: center; justify-content: space-between;
  background: rgba(10, 10, 10, 0.85);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  transition: background 0.3s ease, border-color 0.3s ease;
}
.nav.scrolled { background: rgba(10, 10, 10, 0.95); border-bottom-color: rgba(232, 68, 106, 0.15); }
.nav-brand { display: flex; align-items: center; gap: 10px; }
.nav-logo { height: 32px; width: auto; filter: brightness(10) saturate(0); opacity: 0.95; }
.nav-wordmark {
  font-size: 1.15rem; font-weight: 700; letter-spacing: -0.02em;
  background: var(--glam-gradient);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}

.nav-actions { display: flex; align-items: center; gap: 20px; }

.nav-link {
  font-size: 0.9rem; font-weight: 500; color: var(--glam-muted);
  transition: color 0.2s ease;
}
.nav-link:hover { color: var(--glam-pink); }

.app-store-pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 32px; border-radius: 100px;
  background: var(--glam-gradient); color: #fff;
  font-weight: 600; font-size: 0.98rem; letter-spacing: -0.01em;
  box-shadow: 0 8px 32px rgba(232, 68, 106, 0.35);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.app-store-pill:hover { transform: translateY(-2px); box-shadow: 0 12px 40px rgba(232, 68, 106, 0.5); }
.app-store-pill-sm { padding: 10px 22px; font-size: 0.88rem; box-shadow: 0 4px 20px rgba(232, 68, 106, 0.3); }

/* ── ARTICLE SHELL ── */
.article-wrap { max-width: 760px; margin: 0 auto; padding: 128px 24px 40px; }

.breadcrumb {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px;
  font-size: 0.82rem; color: var(--glam-muted); margin-bottom: 28px;
}
.breadcrumb a { color: var(--glam-muted); transition: color 0.2s ease; }
.breadcrumb a:hover { color: var(--glam-pink); }
.breadcrumb span[aria-hidden] { opacity: 0.4; }

.eyebrow {
  display: inline-block; font-size: 0.78rem; font-weight: 600;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--glam-pink); margin-bottom: 16px;
}

.article-wrap h1 {
  font-size: clamp(2rem, 5.5vw, 3.1rem);
  font-weight: 700; letter-spacing: -0.035em; line-height: 1.1;
  margin-bottom: 20px;
}

.standfirst {
  font-size: 1.15rem; font-weight: 300; line-height: 1.75;
  color: #C8C8C8; margin-bottom: 28px;
}

.article-meta {
  display: flex; flex-wrap: wrap; gap: 16px; align-items: center;
  font-size: 0.82rem; color: var(--glam-muted);
  padding-bottom: 32px; border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

/* ── TABLE OF CONTENTS ── */
.toc {
  margin: 36px 0 8px; padding: 24px 28px;
  background: var(--glam-surface); border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.06);
}
.toc h2 {
  font-size: 0.78rem; font-weight: 600; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--glam-muted); margin-bottom: 14px;
}
.toc ol { list-style: none; counter-reset: toc; }
.toc li { counter-increment: toc; margin-bottom: 9px; font-size: 0.95rem; }
.toc li::before {
  content: counter(toc) '.'; color: var(--glam-gold);
  font-weight: 600; margin-right: 10px;
}
.toc a { color: #D8D8D8; transition: color 0.2s ease; }
.toc a:hover { color: var(--glam-pink); }

/* ── PROSE ── */
.prose { font-size: 1.05rem; font-weight: 300; line-height: 1.85; color: #C0C0C0; }
.prose h2 {
  font-size: clamp(1.5rem, 3.4vw, 1.95rem); font-weight: 700;
  letter-spacing: -0.025em; line-height: 1.25; color: #fff;
  margin: 56px 0 18px; scroll-margin-top: 88px;
}
.prose h3 {
  font-size: 1.18rem; font-weight: 600; letter-spacing: -0.015em;
  color: #fff; margin: 34px 0 12px; scroll-margin-top: 88px;
}
.prose p { margin-bottom: 20px; }
.prose strong { color: #fff; font-weight: 600; }
.prose a { color: var(--glam-pink); border-bottom: 1px solid rgba(255, 126, 179, 0.3); transition: border-color 0.2s ease; }
.prose a:hover { border-bottom-color: var(--glam-pink); }
.prose ul, .prose ol { margin: 0 0 22px 0; padding-left: 22px; }
.prose li { margin-bottom: 11px; }
.prose li::marker { color: var(--glam-gold); }

.callout {
  margin: 32px 0; padding: 24px 28px;
  background: linear-gradient(135deg, rgba(232, 68, 106, 0.09), rgba(255, 126, 179, 0.05));
  border: 1px solid rgba(232, 68, 106, 0.22);
  border-radius: 16px;
}
.callout p:last-child { margin-bottom: 0; }
.callout-label {
  display: block; font-size: 0.74rem; font-weight: 600;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--glam-pink); margin-bottom: 10px;
}

/* ── STEPS ── */
.steps { list-style: none; counter-reset: step; padding-left: 0; margin: 28px 0; }
.steps > li {
  counter-increment: step; position: relative;
  padding: 0 0 26px 58px; margin-bottom: 0;
}
.steps > li::before {
  content: counter(step);
  position: absolute; left: 0; top: -2px;
  width: 38px; height: 38px; border-radius: 50%;
  background: var(--glam-gradient); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 0.95rem;
}
.steps > li:not(:last-child)::after {
  content: ''; position: absolute; left: 18.5px; top: 42px; bottom: 8px;
  width: 1px; background: linear-gradient(180deg, rgba(232, 68, 106, 0.4), rgba(232, 68, 106, 0.05));
}
.steps h3 { margin: 4px 0 8px; }
.steps p:last-child { margin-bottom: 0; }

/* ── TABLE ── */
.table-scroll { overflow-x: auto; margin: 28px 0; border-radius: 14px; border: 1px solid rgba(255,255,255,0.08); }
table { width: 100%; border-collapse: collapse; font-size: 0.95rem; min-width: 480px; }
thead th {
  text-align: left; padding: 15px 20px; background: var(--glam-surface);
  font-weight: 600; font-size: 0.8rem; letter-spacing: 0.06em;
  text-transform: uppercase; color: var(--glam-muted);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
tbody td { padding: 15px 20px; border-bottom: 1px solid rgba(255,255,255,0.05); color: #C0C0C0; font-weight: 300; }
tbody tr:last-child td { border-bottom: none; }
tbody td:first-child { color: #fff; font-weight: 500; }

/* ── FAQ ── */
.faq-list { margin: 28px 0 0; }
.faq-item {
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  padding: 22px 0;
}
.faq-item h3 { margin: 0 0 10px; font-size: 1.05rem; }
.faq-item p { margin-bottom: 0; font-size: 1rem; }

/* ── CTA ── */
.article-cta {
  margin: 64px 0 0; padding: 48px 32px; text-align: center;
  background: var(--glam-surface); border-radius: 24px;
  border: 1px solid rgba(232, 68, 106, 0.18);
}
.article-cta h2 {
  font-size: clamp(1.5rem, 4vw, 2.1rem); font-weight: 700;
  letter-spacing: -0.03em; margin-bottom: 14px; color: #fff;
}
.article-cta p {
  color: var(--glam-muted); font-weight: 300; max-width: 460px;
  margin: 0 auto 28px; line-height: 1.7;
}

/* ── RELATED ── */
.related { margin-top: 64px; }
.related > h2 {
  font-size: 0.78rem; font-weight: 600; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--glam-muted); margin-bottom: 20px;
}
.related-grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.related-card {
  display: block; padding: 22px 24px; border-radius: 16px;
  background: var(--glam-surface); border: 1px solid rgba(255, 255, 255, 0.06);
  transition: transform 0.25s ease, border-color 0.25s ease;
}
.related-card:hover { transform: translateY(-3px); border-color: rgba(232, 68, 106, 0.35); }
.related-card strong { display: block; font-size: 1rem; font-weight: 600; color: #fff; margin-bottom: 6px; letter-spacing: -0.01em; }
.related-card span { font-size: 0.88rem; color: var(--glam-muted); font-weight: 300; line-height: 1.55; }

/* ── HUB (guides index) ── */
.article-wrap.hub-wrap { max-width: 1000px; }
.article-wrap.hub-wrap h1 { max-width: 800px; }
.article-wrap.hub-wrap .standfirst { max-width: 660px; }

.hub-grid { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); margin-top: 40px; }
.hub-card {
  display: flex; flex-direction: column; padding: 30px 28px; border-radius: 20px;
  background: var(--glam-surface); border: 1px solid rgba(255, 255, 255, 0.06);
  transition: transform 0.25s ease, border-color 0.25s ease;
}
.hub-card:hover { transform: translateY(-4px); border-color: rgba(232, 68, 106, 0.35); }
.hub-card .eyebrow { margin-bottom: 12px; }
.hub-card h2 { font-size: 1.22rem; font-weight: 700; letter-spacing: -0.02em; line-height: 1.3; color: #fff; margin-bottom: 10px; }
.hub-card p { font-size: 0.94rem; color: var(--glam-muted); font-weight: 300; line-height: 1.65; margin: 0; }

/* ── FOOTER ── */
.footer {
  padding: 60px 24px 40px; text-align: center;
  border-top: 1px solid rgba(255, 255, 255, 0.05); margin-top: 80px;
}
.footer-logo { height: 28px; width: auto; margin: 0 auto 12px; filter: brightness(10) saturate(0); opacity: 0.5; }
.footer-tagline { font-size: 0.85rem; color: var(--glam-muted); margin-bottom: 22px; }
.footer-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 24px; margin-bottom: 22px; }
.footer-links a { font-size: 0.88rem; color: var(--glam-muted); transition: color 0.2s ease; }
.footer-links a:hover { color: var(--glam-pink); }
.footer-copy { font-size: 0.8rem; color: #555; }

@media (max-width: 600px) {
  .article-wrap { padding-top: 104px; }
  .toc { padding: 20px 22px; }
  .article-cta { padding: 36px 24px; }
}
