/* Navbar offset for anchor scrolling */
html {
  scroll-padding-top: 100px;
}
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,700;0,900;1,400;1,700&family=Inter:wght@300;400;500;600&family=JetBrains+Mono:wght@400;500&display=swap');

:root {
  --bg-primary: #0f1117;
  --bg-secondary: #1a1d27;
  --bg-card: #1e2130;
  --text-primary: #f0ece4;
  --text-secondary: #a8a4a0;
  --accent: #c8a45e;
  --accent-hover: #d4b06a;
  --border-subtle: rgba(255,255,255,0.06);
}

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

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background-color: var(--bg-primary);
  background-image: 
    linear-gradient(45deg, rgba(200, 164, 94, 0.03) 25%, transparent 25%),
    linear-gradient(-45deg, rgba(200, 164, 94, 0.03) 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, rgba(200, 164, 94, 0.03) 75%),
    linear-gradient(-45deg, transparent 75%, rgba(200, 164, 94, 0.03) 75%);
  background-size: 60px 60px;
  background-position: 0 0, 0 30px, 30px -30px, -30px 0px;
  color: var(--text-primary);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  padding-top: 80px;
}

a { color: var(--accent); transition: color 0.3s ease; }
a:hover { color: var(--accent-hover); }

.section-label {
  font-family: 'Inter', sans-serif;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1rem;
}

h2 {
  font-family: 'Playfair Display', serif;
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

#navbar {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  background: linear-gradient(180deg, rgba(15, 17, 23, 0.97) 0%, rgba(15, 17, 23, 0.92) 100%);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-bottom: 1px solid rgba(200, 164, 94, 0.08);
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}
#navbar.scrolled {
  background: rgba(15, 17, 23, 0.99);
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.4);
  border-bottom-color: rgba(200, 164, 94, 0.15);
}
.nav-inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 3rem;
  display: flex;
  align-items: center;
  height: 80px;
}
.nav-logo {
  font-family: 'Playfair Display', serif;
  font-size: 2rem;
  font-weight: 700;
  color: var(--accent);
  text-decoration: none;
  margin-right: auto;
  flex-shrink: 0;
  letter-spacing: 0.03em;
  transition: all 0.3s ease;
}
.nav-logo:hover {
  text-shadow: 0 0 20px rgba(200, 164, 94, 0.4);
}
.nav-logo span {
  color: var(--accent);
}
.nav-links {
  display: flex;
  list-style: none;
  gap: 0.25rem;
  margin: 0;
  padding: 0;
  align-items: center;
}
.nav-links li a {
  color: rgba(255, 255, 255, 0.65);
  text-decoration: none;
  font-family: 'Inter', sans-serif;
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding: 0.6rem 1.1rem;
  position: relative;
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  white-space: nowrap;
}
.nav-links li a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%) scaleX(0);
  width: 70%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  border-radius: 1px;
}
.nav-links li a:hover {
  color: #ffffff;
}
.nav-links li a:hover::after {
  transform: translateX(-50%) scaleX(1);
}
.nav-links li a.active {
  color: var(--accent);
}
.nav-links li a.active::after {
  transform: translateX(-50%) scaleX(1);
}
.nav-links li:last-child a {
  background: linear-gradient(135deg, var(--accent), #d4a843);
  color: var(--bg-primary);
  font-weight: 600;
  border-radius: 6px;
  padding: 0.55rem 1.4rem;
  margin-left: 0.5rem;
  letter-spacing: 0.1em;
  transition: all 0.3s ease;
  box-shadow: 0 2px 12px rgba(200, 164, 94, 0.25);
}
.nav-links li:last-child a::after {
  display: none;
}
.nav-links li:last-child a:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(200, 164, 94, 0.4);
  color: var(--bg-primary);
}
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  margin-left: 1rem;
}
.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  transition: all 0.3s ease;
  border-radius: 2px;
}

/* HERO */
.hero {
  min-height: 100vh; display: flex; align-items: center;
  padding: 8rem 2rem 4rem;
  background:
    radial-gradient(ellipse at 20% 50%, rgba(200,164,94,0.06) 0%, transparent 60%),
    radial-gradient(ellipse at 80% 20%, rgba(100,110,180,0.04) 0%, transparent 50%),
    var(--bg-primary);
}
.hero-inner {
  max-width: 1100px; margin: 0 auto; width: 100%;
  display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center;
}
.hero-text h1 {
  font-family: 'Playfair Display', serif;
  font-size: 3.2rem; font-weight: 700; line-height: 1.2;
  margin-bottom: 0.6rem;
}
.hero-text h1 span { color: var(--accent); }
.hero-text .book-tag {
  font-size: 0.8rem; font-weight: 500; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--accent); margin-bottom: 1.5rem;
  display: block;
}
.hero-text .subtitle {
  font-size: 1.05rem; color: var(--text-secondary);
  margin-bottom: 2rem; max-width: 480px; font-style: italic;
}
.hero-cta {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.8rem 2rem; background: var(--accent);
  color: var(--bg-primary); text-decoration: none;
  font-weight: 600; font-size: 0.9rem; border-radius: 4px;
  transition: all 0.3s; letter-spacing: 0.03em;
}
.hero-cta:hover { background: var(--accent-light); transform: translateY(-2px); }
.hero-visual {
  display: flex; justify-content: center; align-items: center;
}
.hero-graphic {
  width: 300px; height: 300px; border-radius: 8px;
  border: 1px solid var(--border-light);
  display: flex; align-items: center; justify-content: center;
  flex-direction: column;
  background: linear-gradient(145deg, var(--bg-card) 0%, var(--bg-primary) 100%);
  position: relative; overflow: hidden;
}
.hero-graphic::before {
  content: ''; position: absolute; inset: 0;
  background: repeating-linear-gradient(45deg, transparent, transparent 35px, rgba(200,164,94,0.03) 35px, rgba(200,164,94,0.03) 36px);
}
.hero-chess { font-size: 4rem; margin-bottom: 0.5rem; position: relative; z-index: 1; opacity: 0.8; }
.hero-book-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.1rem; color: var(--accent); font-weight: 700;
  letter-spacing: 0.05em; position: relative; z-index: 1;
  text-align: center; padding: 0 1.5rem;
}
.hero-book-sub {
  font-size: 0.75rem; color: var(--text-muted); margin-top: 0.4rem;
  position: relative; z-index: 1; letter-spacing: 0.08em; text-transform: uppercase;
}

/* SECTIONS */
section { padding: 6rem 2rem; }
.section-inner { max-width: 1100px; margin: 0 auto; }
.section-label {
  font-size: 0.75rem; font-weight: 600; letter-spacing: 0.15em;
  text-transform: uppercase; color: var(--accent); margin-bottom: 0.75rem;
}
.section-title {
  font-family: 'Playfair Display', serif;
  font-size: 2.2rem; font-weight: 700; margin-bottom: 1rem;
}
.section-subtitle {
  color: var(--text-secondary); font-size: 1rem; margin-bottom: 2rem;
  max-width: 650px;
}
.section-divider {
  width: 60px; height: 2px; background: var(--accent);
  margin-bottom: 3rem;
}

/* ABOUT */
#about { background: var(--bg-secondary); }
.about-content { display: grid; grid-template-columns: 2fr 1fr; gap: 4rem; }
.about-text p { color: var(--text-secondary); margin-bottom: 1.2rem; font-size: 1.02rem; }
.about-photo {
  width: 200px; height: 200px; border-radius: 50%;
  overflow: hidden; margin: 0 auto 1.5rem;
  border: 2px solid var(--accent);
  box-shadow: 0 0 0 8px var(--bg-secondary), 0 0 0 9px var(--border-light), 0 10px 30px rgba(0,0,0,0.3);
}
.about-photo img {
  width: 100%; height: 100%; object-fit: cover;
  object-position: center top;
  filter: grayscale(30%) contrast(1.05) brightness(1.05);
  transition: filter 0.5s ease;
}
.about-photo:hover img { filter: grayscale(0%) contrast(1) brightness(1); }
.about-sidebar .stat-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: 8px; padding: 1.5rem; margin-bottom: 1rem;
  transition: border-color 0.3s;
}
.about-sidebar .stat-card:hover { border-color: var(--accent); }
.stat-card .label {
  font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.1em;
  color: var(--text-muted); margin-bottom: 0.3rem;
}
.stat-card .value { font-size: 1.05rem; font-weight: 500; color: var(--text-primary); }

/* BOOK SECTION */
#book { background: var(--bg-primary); }
.book-banner {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: 8px; padding: 3rem;
  display: grid; grid-template-columns: auto 1fr; gap: 3rem;
  align-items: center; margin-bottom: 3rem;
}
.book-cover {
  width: 180px; height: 260px; background: linear-gradient(160deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
  border-radius: 4px; display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  border: 1px solid var(--border-light); position: relative;
  box-shadow: 8px 8px 30px rgba(0,0,0,0.4);
}
.book-cover .chess-icon { font-size: 2.5rem; margin-bottom: 0.8rem; }
.book-cover .cover-title {
  font-family: 'Playfair Display', serif;
  font-size: 0.9rem; color: var(--accent); text-align: center;
  padding: 0 1rem; font-weight: 700; line-height: 1.3;
}
.book-cover .cover-author {
  font-size: 0.6rem; color: var(--text-muted); margin-top: 0.6rem;
  letter-spacing: 0.12em; text-transform: uppercase;
}
.book-details h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.6rem; margin-bottom: 0.3rem;
}
.book-details .book-sub { font-style: italic; color: var(--text-muted); margin-bottom: 1.2rem; font-size: 0.95rem; }
.book-details p { color: var(--text-secondary); font-size: 0.95rem; margin-bottom: 1rem; }
.book-status {
  display: inline-block; font-size: 0.7rem; font-weight: 600;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--accent); background: var(--accent-dim);
  padding: 0.3rem 0.8rem; border-radius: 3px; margin-top: 0.5rem;
}
.chapters-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.chapter-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: 8px; padding: 1.5rem;
  transition: all 0.3s; cursor: default;
  display: flex; gap: 1rem; align-items: flex-start;
}
.chapter-card:hover {
  border-color: var(--accent); transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(0,0,0,0.2);
}
.chapter-num {
  font-family: 'Playfair Display', serif;
  font-size: 1.8rem; color: var(--accent); font-weight: 700;
  line-height: 1; min-width: 40px;
}
.chapter-info h4 {
  font-family: 'Playfair Display', serif;
  font-size: 1.05rem; margin-bottom: 0.3rem; line-height: 1.3;
}
.chapter-info p { color: var(--text-muted); font-size: 0.8rem; font-style: italic; }

/* BLOG */
#blog { background: var(--bg-secondary); }
.blog-intro {
  color: var(--text-secondary); font-size: 1rem; margin-bottom: 2.5rem;
  max-width: 700px; border-left: 2px solid var(--accent); padding-left: 1.5rem;
}
.blog-featured {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: 8px; padding: 3rem; margin-bottom: 2rem;
  transition: border-color 0.3s;
}
.blog-featured:hover { border-color: var(--accent); }
.blog-featured .tag {
  display: inline-block; font-size: 0.7rem; font-weight: 600;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--accent); background: var(--accent-dim);
  padding: 0.3rem 0.8rem; border-radius: 3px; margin-bottom: 1rem;
}
.blog-featured h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.6rem; margin-bottom: 1rem; line-height: 1.4;
}
.blog-featured p {
  color: var(--text-secondary); font-size: 0.95rem; margin-bottom: 1.5rem;
  max-width: 800px;
}
.blog-featured .article-body {
  margin-top: 1.5rem; border-top: 1px solid var(--border); padding-top: 1.5rem;
}
.blog-featured .article-body p {
  color: var(--text-secondary); font-size: 0.95rem; margin-bottom: 1.2rem;
  line-height: 1.8; max-width: 100%;
}
.blog-meta {
  font-size: 0.8rem; color: var(--text-muted);
  display: flex; gap: 1.5rem;
}
.blog-grid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 1.5rem; }
.blog-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: 8px; padding: 1.8rem;
  transition: all 0.3s;
}
.blog-card:hover { border-color: var(--accent); transform: translateY(-2px); }
.blog-card .date {
  font-size: 0.75rem; color: var(--text-muted); margin-bottom: 0.8rem;
  letter-spacing: 0.05em;
}
.blog-card .chapter-ref {
  font-size: 0.65rem; color: var(--accent); letter-spacing: 0.1em;
  text-transform: uppercase; margin-bottom: 0.5rem; font-weight: 600;
}
.blog-card h4 {
  font-family: 'Playfair Display', serif;
  font-size: 1.1rem; margin-bottom: 0.6rem; line-height: 1.4;
}
.blog-card p { color: var(--text-secondary); font-size: 0.85rem; }

/* COLLAPSIBLE ARTICLE */
.article-toggle {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.7rem 1.8rem; margin-top: 1.2rem;
  background: transparent; border: 1px solid var(--accent);
  color: var(--accent); border-radius: 4px;
  font-weight: 600; font-size: 0.85rem; cursor: pointer;
  transition: all 0.3s; letter-spacing: 0.03em;
  font-family: 'Inter', sans-serif;
}
.article-toggle:hover { background: var(--accent); color: var(--bg-primary); }
.article-toggle .arrow { transition: transform 0.3s; display: inline-block; }
.article-toggle.expanded .arrow { transform: rotate(180deg); }
.article-body.collapsible {
  max-height: 0; overflow: hidden; opacity: 0;
  transition: max-height 0.6s ease, opacity 0.4s ease, margin 0.4s ease;
  margin-top: 0;
}
.article-body.collapsible.expanded {
  max-height: 8000px; opacity: 1;
  margin-top: 1.5rem; border-top: 1px solid var(--border); padding-top: 1.5rem;
}

/* ARTICLE BODY HEADINGS */
.article-body h4 {
  font-family: 'Playfair Display', serif;
  font-size: 1.2rem; color: var(--accent-light);
  margin: 2rem 0 1rem;
}

/* CONTACT */
.contact-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; }
.contact-info p { color: var(--text-secondary); margin-bottom: 2rem; font-size: 1.02rem; }
.contact-links { display: flex; flex-direction: column; gap: 1rem; }
.contact-link {
  display: flex; align-items: center; gap: 1rem;
  color: var(--text-secondary); text-decoration: none;
  font-size: 0.95rem; transition: color 0.3s;
}
.contact-link:hover { color: var(--accent); }
.contact-link .icon {
  width: 40px; height: 40px; border-radius: 50%;
  border: 1px solid var(--border); display: flex;
  align-items: center; justify-content: center;
  font-size: 0.85rem; color: var(--accent);
  transition: all 0.3s;
}
.contact-link:hover .icon { border-color: var(--accent); background: var(--accent-dim); }
.contact-form { display: flex; flex-direction: column; gap: 1rem; }
.contact-form input, .contact-form textarea {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: 6px; padding: 0.9rem 1.2rem;
  color: var(--text-primary); font-family: 'Inter', sans-serif;
  font-size: 0.92rem; transition: border-color 0.3s;
  outline: none;
}
.contact-form input:focus, .contact-form textarea:focus { border-color: var(--accent); }
.contact-form textarea { min-height: 140px; resize: vertical; }
.contact-form button {
  padding: 0.9rem 2rem; background: var(--accent);
  color: var(--bg-primary); border: none; border-radius: 4px;
  font-weight: 600; font-size: 0.9rem; cursor: pointer;
  transition: all 0.3s; letter-spacing: 0.03em; align-self: flex-start;
}
.contact-form button:hover { background: var(--accent-light); }

/* DEDICATION */
#dedication { background: var(--bg-primary); }
.dedication-content { max-width: 700px; margin: 0 auto; text-align: center; }
.dedication-photo {
  width: 280px; height: 280px; border-radius: 50%;
  border: 3px solid var(--accent); margin: 0 auto 2.5rem;
  overflow: hidden; background: var(--bg-card);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 0 0 10px var(--bg-primary), 0 0 0 11px var(--border-light),
              0 0 0 18px rgba(200,164,94,0.08), 0 15px 50px rgba(0,0,0,0.5);
  position: relative;
}
.dedication-photo img {
  width: 100%; height: 100%; object-fit: cover;
  object-position: center center;
  filter: grayscale(100%) contrast(1.6) brightness(1.15) sepia(40%) saturate(0.6);
  transition: filter 0.8s ease;
}
.dedication-photo:hover img {
  filter: grayscale(30%) contrast(1.1) brightness(1.05) sepia(35%) saturate(0.9);
}
.dedication-text {
  font-family: 'Playfair Display', serif;
  font-style: italic; font-size: 1.15rem; color: var(--text-secondary);
  line-height: 1.8; margin-bottom: 1.5rem;
}
.dedication-name {
  font-family: 'Playfair Display', serif;
  font-size: 1rem; color: var(--accent); font-weight: 700;
  margin-bottom: 0.3rem;
}
.dedication-dates { font-size: 0.8rem; color: var(--text-muted); letter-spacing: 0.05em; }
.dedication-note {
  color: var(--text-secondary); font-size: 0.92rem;
  margin-top: 2rem; max-width: 550px; margin-left: auto; margin-right: auto;
}


/* PODCAST */
#podcast { padding: 6rem 2rem; }
.podcast-hero { display: grid; grid-template-columns: 1fr; gap: 2rem; margin-bottom: 3rem; }
.podcast-info h3 { font-family: 'Playfair Display', serif; font-size: 1.8rem; color: var(--accent); margin-bottom: 1rem; }
.podcast-info p { color: var(--text-secondary); line-height: 1.8; }
.podcast-badges { display: flex; gap: 1rem; margin-top: 1.5rem; flex-wrap: wrap; }
.badge { padding: 0.5rem 1.2rem; border: 1px solid var(--accent); border-radius: 2rem; color: var(--accent); font-size: 0.85rem; font-family: 'Inter', sans-serif; }
.coming-soon-tag { color: var(--accent); font-style: italic; margin-top: 1rem; font-size: 0.9rem; }
.episodes-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 2rem; }
.episode-card { background: var(--bg-secondary); border: 1px solid var(--border); border-radius: 12px; padding: 2rem; transition: transform 0.3s, border-color 0.3s; }

/* EPISODE THUMBNAIL */
.episode-published {
  text-decoration: none;
  color: inherit;
  display: block;
  border: 1px solid rgba(200, 164, 94, 0.3);
}
.episode-published:hover {
  border-color: var(--accent);
  transform: translateY(-4px);
  box-shadow: 0 8px 30px rgba(200, 164, 94, 0.2);
}
.episode-thumbnail {
  position: relative;
  width: 100%;
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 1rem;
  aspect-ratio: 16/9;
}
.episode-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s;
}
.episode-published:hover .episode-thumbnail img {
  transform: scale(1.05);
}
.play-overlay {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 64px; height: 64px;
  background: rgba(200, 164, 94, 0.9);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s, background 0.3s;
}
.play-overlay svg { margin-left: 4px; }
.episode-published:hover .play-overlay {
  transform: translate(-50%, -50%) scale(1.15);
  background: var(--accent);
}
.episode-status.published {
  background: var(--accent);
  color: var(--bg-primary);
  font-weight: 600;
}

.episode-card:hover { transform: translateY(-4px); border-color: var(--accent); }
.episode-number { color: var(--accent); font-family: 'JetBrains Mono', monospace; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.1em; }
.episode-card h4 { font-family: 'Playfair Display', serif; font-size: 1.3rem; color: var(--text-primary); margin: 0.5rem 0; }
.episode-card p { color: var(--text-secondary); font-size: 0.95rem; line-height: 1.6; }
.episode-status { display: inline-block; margin-top: 1rem; color: var(--text-muted); font-size: 0.8rem; font-style: italic; }

/* PORTFOLIO */
#portfolio { padding: 6rem 2rem; background: var(--bg-secondary); }
.portfolio-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 2rem; }
.portfolio-card { background: var(--bg-primary); border: 1px solid var(--border); border-radius: 12px; padding: 2rem; transition: transform 0.3s, border-color 0.3s; }
.portfolio-card:hover { transform: translateY(-4px); border-color: var(--accent); }
.portfolio-card.featured { border-color: var(--accent); position: relative; }
.portfolio-badge { display: inline-block; background: rgba(200,164,94,0.15); color: var(--accent); padding: 0.3rem 0.8rem; border-radius: 1rem; font-size: 0.8rem; margin-bottom: 1rem; font-family: 'Inter', sans-serif; }
.portfolio-card h3 { font-family: 'Playfair Display', serif; font-size: 1.4rem; color: var(--text-primary); margin-bottom: 0.8rem; }
.portfolio-card p { color: var(--text-secondary); line-height: 1.7; font-size: 0.95rem; }


/* RESOURCES */
#resources { padding: 6rem 2rem; }
.resources-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 2rem; }
.resource-card { background: var(--bg-secondary); border: 1px solid var(--border); border-radius: 12px; padding: 2rem; text-align: center; transition: transform 0.3s, border-color 0.3s; }
.resource-card:hover { transform: translateY(-4px); border-color: var(--accent); }
.resource-icon { font-size: 2.5rem; margin-bottom: 1rem; }
.resource-card h3 { font-family: 'Playfair Display', serif; font-size: 1.2rem; color: var(--text-primary); margin-bottom: 0.8rem; }
.resource-card p { color: var(--text-secondary); font-size: 0.9rem; line-height: 1.6; }
.resource-tag { display: inline-block; margin-top: 1rem; background: rgba(200,164,94,0.15); color: var(--accent); padding: 0.3rem 0.8rem; border-radius: 1rem; font-size: 0.8rem; }

/* TESTIMONIALS */
#testimonials { padding: 6rem 2rem; background: var(--bg-secondary); }
.testimonials-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 2rem; }
.testimonial-card { background: var(--bg-primary); border: 1px solid var(--border); border-radius: 12px; padding: 2rem; position: relative; }
.testimonial-card::before { content: '\201C'; position: absolute; top: 1rem; left: 1.5rem; font-size: 4rem; color: var(--accent); opacity: 0.3; font-family: 'Playfair Display', serif; line-height: 1; }
.testimonial-text { color: var(--text-secondary); font-style: italic; line-height: 1.8; margin-bottom: 1.5rem; padding-top: 2rem; font-size: 0.95rem; }
.testimonial-author strong { color: var(--text-primary); display: block; font-size: 0.95rem; }
.testimonial-author span { color: var(--text-muted); font-size: 0.85rem; }

/* SERVICES */
#services { padding: 6rem 2rem; }
.services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 2rem; }
.service-card { background: var(--bg-secondary); border: 1px solid var(--border); border-radius: 12px; padding: 2rem; transition: transform 0.3s, border-color 0.3s; }
.service-card:hover { transform: translateY(-4px); border-color: var(--accent); }
.service-card h3 { font-family: 'Playfair Display', serif; font-size: 1.3rem; color: var(--accent); margin-bottom: 0.8rem; }
.service-card p { color: var(--text-secondary); line-height: 1.7; font-size: 0.95rem; }

/* DONATE */
#donate { padding: 6rem 2rem; background: var(--bg-secondary); }
.donation-content { max-width: 800px; margin: 0 auto; }
.donation-tiers { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1.5rem; margin-bottom: 3rem; }
.donation-tier { background: var(--bg-primary); border: 1px solid var(--border); border-radius: 12px; padding: 2rem; text-align: center; transition: transform 0.3s, border-color 0.3s; }
.donation-tier:hover { transform: translateY(-4px); border-color: var(--accent); }
.donation-tier.featured { border-color: var(--accent); position: relative; }
.donation-tier h3 { font-family: 'Playfair Display', serif; font-size: 2.5rem; color: var(--accent); }
.tier-name { font-family: 'Inter', sans-serif; font-size: 1rem; color: var(--text-primary); font-weight: 600; margin-bottom: 0.5rem; }
.donation-tier p { color: var(--text-secondary); font-size: 0.9rem; line-height: 1.6; }
.donation-cta { text-align: center; padding: 2rem 0; }
.donation-appeal { color: var(--text-secondary); font-size: 1.05rem; line-height: 1.8; margin-bottom: 2rem; font-style: italic; }
.donation-cta .cta-button { display: inline-block; padding: 1rem 3rem; background: var(--accent); color: var(--bg-primary); font-family: 'Inter', sans-serif; font-weight: 600; font-size: 1.1rem; border-radius: 8px; text-decoration: none; transition: background 0.3s, transform 0.3s; }
.donation-cta .cta-button:hover { background: #d4b06a; transform: translateY(-2px); }
.donation-thanks { color: var(--text-muted); font-size: 0.9rem; margin-top: 1.5rem; font-style: italic; }


/* CHAPTER STATUS BADGES */
a.chapter-published {
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
a.chapter-published:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 25px rgba(200, 164, 94, 0.3);
}
.chapter-status {
  display: inline-block;
  margin-top: 0.5rem;
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.chapter-status.published {
  background: var(--accent);
  color: var(--bg-primary);
}
.chapter-status.in-progress {
  background: rgba(255,255,255,0.1);
  color: rgba(255,255,255,0.5);
  border: 1px solid rgba(255,255,255,0.15);
}


/* SOCIAL BUTTONS */
.footer-social {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
}


.social-btn {
  display: flex; align-items: center; justify-content: center;
  width: 48px; height: 48px; border-radius: 50%;
  border: 1.5px solid rgba(200, 164, 94, 0.3);
  color: var(--text-secondary);
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  background: transparent;
}

.social-btn svg { transition: fill 0.35s, transform 0.35s; }

.social-btn:hover {
  transform: translateY(-4px) scale(1.1);
  border-color: transparent;
}

.social-btn:hover svg { transform: scale(1.05); }

.social-x:hover { background: #000; color: #fff; box-shadow: 0 6px 20px rgba(0,0,0,0.5); }
.social-instagram:hover { background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fd5949 45%, #d6249f 60%, #285AEB 90%); color: #fff; box-shadow: 0 6px 20px rgba(214,36,159,0.5); }
.social-linkedin:hover { background: #0A66C2; color: #fff; box-shadow: 0 6px 20px rgba(10,102,194,0.5); }
.social-facebook:hover { background: #1877F2; color: #fff; box-shadow: 0 6px 20px rgba(24,119,242,0.5); }
.social-youtube:hover { background: #FF0000; color: #fff; box-shadow: 0 6px 20px rgba(255,0,0,0.5); }
.social-substack:hover { background: #FF6719; color: #fff; box-shadow: 0 6px 20px rgba(255,103,25,0.5); }

/* FOOTER LEGAL */
.footer-inner {
  text-align: center;
  padding: 3rem 2rem;
}
.footer-legal {
  margin-bottom: 1rem;
}
.footer-legal-link {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.85rem;
  transition: color 0.3s ease;
}
.footer-legal-link:hover {
  color: var(--accent);
}
.footer-legal-sep {
  color: rgba(255,255,255,0.2);
  margin: 0 0.75rem;
}

/* FOOTER */
footer {
  border-top: 1px solid var(--border);
  padding: 2.5rem 2rem; text-align: center;
}
.footer-quote {
  font-family: 'Playfair Display', serif;
  font-style: italic; color: var(--text-muted);
  font-size: 0.9rem; margin-bottom: 0.8rem;
}
.footer-copy { color: var(--text-muted); font-size: 0.8rem; }

/* RESPONSIVE */
@media (max-width: 768px) {
  .hamburger { display: flex; }
  .nav-links {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    background: rgba(15,17,23,0.97); flex-direction: column;
    padding: 1.5rem 2rem; gap: 1.2rem; border-bottom: 1px solid var(--border);
  }
  .nav-links.open { display: flex; }
  .hero-inner { grid-template-columns: 1fr; text-align: center; }
  .hero-text h1 { font-size: 2.4rem; }
  .hero-text .subtitle { margin: 0 auto 2rem; }
  .hero-visual { order: -1; }
  .hero-graphic { width: 220px; height: 220px; }
  .about-content { grid-template-columns: 1fr; }
  .book-banner { grid-template-columns: 1fr; text-align: center; }
  .book-cover { margin: 0 auto; }
  .chapters-grid { grid-template-columns: 1fr; }
  .blog-grid { grid-template-columns: 1fr; }
  .contact-layout { grid-template-columns: 1fr; }

  /* New sections responsive */
  .podcast-hero { grid-template-columns: 1fr; }
  .portfolio-grid { grid-template-columns: 1fr; }
  .resources-grid { grid-template-columns: 1fr; }
  .testimonials-grid { grid-template-columns: 1fr; }
  .services-grid { grid-template-columns: 1fr; }
  .donation-tiers { grid-template-columns: 1fr; }
  .episodes-grid { grid-template-columns: 1fr; }
}


/* ============================================ */
/* VISUAL EFFECTS & ANIMATIONS                  */
/* ============================================ */

/* SCROLL PROGRESS BAR */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0%;
  background: linear-gradient(90deg, var(--accent), #d4a843, #e8c066);
  z-index: 10001;
  transition: width 0.1s linear;
  box-shadow: 0 0 10px rgba(200, 164, 94, 0.5);
}

/* FLOATING CHESS PARTICLES */
.particles-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}
.particle {
  position: absolute;
  color: var(--accent);
  animation: floatParticle linear infinite;
  will-change: transform;
  text-shadow: 0 0 15px rgba(200, 164, 94, 0.4), 0 0 30px rgba(200, 164, 94, 0.2);
  color: var(--accent);
}
@keyframes floatParticle {
  0% { transform: translateY(0) translateX(0) rotate(0deg); }
  25% { transform: translateY(-120px) translateX(40px) rotate(90deg); }
  50% { transform: translateY(-80px) translateX(-30px) rotate(180deg); }
  75% { transform: translateY(-160px) translateX(20px) rotate(270deg); }
  100% { transform: translateY(0) translateX(0) rotate(360deg); }
}

/* SCROLL REVEAL ANIMATIONS */
[data-reveal] {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), 
              transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}
[data-reveal].revealed {
  opacity: 1;
  transform: translateY(0);
}

/* Card stagger reveal */
.chapter-card,
.episode-card,
.portfolio-card,
.resource-card,
.testimonial-card,
.service-card,
.donation-tier,
.credential-card {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease, box-shadow 0.3s ease;
}
.card-revealed {
  opacity: 1 !important;
  transform: translateY(0) !important;
}

/* 3D TILT EFFECT ON CARDS */
.chapter-card {
  transition: transform 0.15s ease, box-shadow 0.3s ease;
  transform-style: preserve-3d;
  will-change: transform;
}
.chapter-card:hover {
  box-shadow: 0 15px 40px rgba(200, 164, 94, 0.2), 
              0 0 0 1px rgba(200, 164, 94, 0.1);
}

/* HERO TEXT REVEAL */
.text-reveal {
  animation: textReveal 1.2s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}
@keyframes textReveal {
  0% { 
    opacity: 0; 
    transform: translateY(30px); 
    filter: blur(10px);
  }
  100% { 
    opacity: 1; 
    transform: translateY(0); 
    filter: blur(0);
  }
}

/* HERO PARALLAX */
[data-parallax] .hero-content,
[data-parallax] .book-cover-hero {
  will-change: transform;
  transition: transform 0.05s linear;
}

/* SECTION DIVIDERS - gradient transitions */
section::before {
  content: '';
  position: absolute;
  top: -60px;
  left: 0;
  width: 100%;
  height: 60px;
  background: linear-gradient(to bottom, transparent, var(--bg-primary));
  pointer-events: none;
}
section {
  position: relative;
}

/* GLOWING ACCENT LINE */
.section-label::after {
  content: '';
  display: block;
  width: 40px;
  height: 2px;
  background: var(--accent);
  margin-top: 0.5rem;
  box-shadow: 0 0 8px rgba(200, 164, 94, 0.5);
  animation: pulseGlow 3s ease-in-out infinite;
}
@keyframes pulseGlow {
  0%, 100% { box-shadow: 0 0 8px rgba(200, 164, 94, 0.3); }
  50% { box-shadow: 0 0 20px rgba(200, 164, 94, 0.7); }
}

/* MAGNETIC HOVER EFFECT */
.cta-btn, .social-btn {
  transition: transform 0.2s ease, box-shadow 0.3s ease, background 0.3s ease;
}

/* SMOOTH SCROLL */
html {
  scroll-behavior: smooth;
}

/* REDUCED MOTION */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  .particles-container { display: none; }
  [data-reveal] { opacity: 1; transform: none; }
  .chapter-card, .episode-card, .portfolio-card, .resource-card,
  .testimonial-card, .service-card, .donation-tier, .credential-card {
    opacity: 1; transform: none;
  }
}



/* YouTube Embed */
.episode-embed {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%;
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 1rem;
  border: 1px solid rgba(200, 164, 94, 0.2);
}
.episode-embed iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 8px;
}

/* Episode Links */
.episode-links {
  display: flex;
  gap: 0.75rem;
  margin-top: 1rem;
  flex-wrap: wrap;
}
.episode-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 500;
  transition: all 0.3s ease;
  border: 1px solid rgba(200, 164, 94, 0.3);
  color: var(--text-secondary);
}
.episode-link:hover {
  transform: translateY(-2px);
}
.youtube-link:hover {
  background: #FF0000;
  color: #fff;
  border-color: #FF0000;
  box-shadow: 0 4px 15px rgba(255, 0, 0, 0.4);
}
.substack-link:hover {
  background: #FF6719;
  color: #fff;
  border-color: #FF6719;
  box-shadow: 0 4px 15px rgba(255, 103, 25, 0.4);
}

/* Episode chapter title */
.episode-chapter-title {
  font-size: 1.4rem;
  color: var(--accent);
  margin: 0.25rem 0 0.5rem 0;
  font-family: var(--font-heading);
}


/* Legal Modals */
.legal-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.85);
  z-index: 10000;
  overflow-y: auto;
  backdrop-filter: blur(4px);
}
.legal-modal.active {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding: 2rem;
}
.legal-modal-content {
  background: var(--bg-secondary, #141428);
  border: 1px solid rgba(200, 164, 94, 0.3);
  border-radius: 12px;
  max-width: 700px;
  width: 100%;
  padding: 2.5rem;
  margin: 2rem auto;
  position: relative;
  color: var(--text-secondary, #b0b0b0);
  max-height: 85vh;
  overflow-y: auto;
}
.legal-modal-content h2 {
  font-family: var(--font-heading, 'Playfair Display', serif);
  color: var(--accent, #C8A45E);
  font-size: 1.8rem;
  margin-bottom: 0.25rem;
}
.legal-modal-content h3 {
  color: var(--text-primary, #f0f0f0);
  font-size: 1.1rem;
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
}
.legal-modal-content p {
  line-height: 1.7;
  margin-bottom: 0.75rem;
  font-size: 0.95rem;
}
.legal-modal-content a {
  color: var(--accent, #C8A45E);
}
.legal-updated {
  color: #777;
  font-size: 0.85rem;
  margin-bottom: 1.5rem;
}
.legal-modal-close {
  position: absolute;
  top: 1rem;
  right: 1.25rem;
  background: none;
  border: none;
  color: var(--text-secondary, #b0b0b0);
  font-size: 2rem;
  cursor: pointer;
  line-height: 1;
  transition: color 0.3s;
}
.legal-modal-close:hover {
  color: var(--accent, #C8A45E);
}
.legal-modal-content::-webkit-scrollbar {
  width: 6px;
}
.legal-modal-content::-webkit-scrollbar-track {
  background: transparent;
}
.legal-modal-content::-webkit-scrollbar-thumb {
  background: rgba(200, 164, 94, 0.3);
  border-radius: 3px;
}


/* ========================================
   CLERK AUTH - CONTENT GATE
   ======================================== */

/* Nav Sign In Button */
.nav-auth {
  list-style: none;
}
.nav-sign-in {
  background: linear-gradient(135deg, #c8a45e, #a07830);
  color: #0a0a0a;
  border: none;
  padding: 8px 20px;
  border-radius: 4px;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.3s ease;
  letter-spacing: 0.5px;
}
.nav-sign-in:hover {
  background: linear-gradient(135deg, #d4b46e, #b08840);
  transform: translateY(-1px);
  box-shadow: 0 4px 15px rgba(200, 164, 94, 0.3);
}

/* Content Gate Overlay */
.content-gate {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 9999;
  align-items: center;
  justify-content: center;
}
.gate-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(10, 10, 10, 0.92);
  backdrop-filter: blur(8px);
}
.gate-message {
  position: relative;
  z-index: 10000;
  text-align: center;
  max-width: 480px;
  padding: 3rem 2.5rem;
  background: linear-gradient(145deg, #1a1a1a, #0d0d0d);
  border: 1px solid rgba(200, 164, 94, 0.3);
  border-radius: 12px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5), 0 0 40px rgba(200, 164, 94, 0.1);
}
.gate-icon {
  font-size: 3.5rem;
  margin-bottom: 1rem;
  filter: drop-shadow(0 0 10px rgba(200, 164, 94, 0.5));
}
.gate-message h2 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.8rem;
  color: #c8a45e;
  margin-bottom: 0.75rem;
}
.gate-message p {
  color: #aaa;
  font-size: 1rem;
  line-height: 1.6;
  margin-bottom: 2rem;
}
.gate-btn {
  display: inline-block;
  padding: 12px 32px;
  border-radius: 6px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
  margin: 0 8px;
}
.gate-btn-primary {
  background: linear-gradient(135deg, #c8a45e, #a07830);
  color: #0a0a0a;
}
.gate-btn-primary:hover {
  background: linear-gradient(135deg, #d4b46e, #b08840);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(200, 164, 94, 0.4);
}
.gate-btn-secondary {
  background: transparent;
  color: #c8a45e;
  border: 1px solid rgba(200, 164, 94, 0.4);
}
.gate-btn-secondary:hover {
  background: rgba(200, 164, 94, 0.1);
  transform: translateY(-2px);
}

/* Lock body scroll when gate is active */
body.content-locked {
  overflow: hidden;
}

/* Mobile responsive */
@media (max-width: 768px) {
  .gate-message {
    margin: 1rem;
    padding: 2rem 1.5rem;
  }
  .gate-message h2 {
    font-size: 1.4rem;
  }
  .gate-btn {
    display: block;
    width: 100%;
    margin: 8px 0;
  }
}
