/* ============================================
   GigSoul — The Soul of AI
   Washington Post-Inspired Editorial Design
   Light/Dark Theme Support
   ============================================ */

/* Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Merriweather:ital,wght@0,300;0,400;0,700;0,900;1,400&family=Source+Sans+3:wght@300;400;500;600;700&family=Source+Serif+4:ital,wght@0,400;0,600;0,700;1,400&family=JetBrains+Mono:wght@400;500&display=swap');

/* ========== CSS VARIABLES ========== */
:root {
  /* Light theme (default) */
  --bg-primary: #ffffff;
  --bg-surface: #f6f6f6;
  --bg-surface-2: #efefef;
  --border: #e0e0e0;
  --border-light: #ebebeb;

  --text-primary: #1a1a1a;
  --text-secondary: #5a5a5a;
  --text-muted: #757575;

  --accent: #2579d8;
  --accent-hover: #1a6bc4;
  --accent-dark: #0d4a8a;

  --purple: #6b2d8b;
  --cyan: #0891b2;

  --green: #00894a;
  --orange: #d97706;
  --red: #c53030;

  --font-headline: 'Merriweather', Georgia, serif;
  --font-body: 'Source Sans 3', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;

  --shadow-card: 0 1px 3px rgba(0,0,0,0.08);
  --shadow-hover: 0 4px 12px rgba(0,0,0,0.1);

  --transition-fast: 150ms ease;
  --transition-med: 250ms ease;

  --max-width: 1200px;
  --nav-height: 64px;
}

/* Dark theme */
[data-theme="dark"] {
  --bg-primary: #0f0f0f;
  --bg-surface: #1a1a1a;
  --bg-surface-2: #242424;
  --border: #2e2e2e;
  --border-light: #333333;

  --text-primary: #f0f0f0;
  --text-secondary: #a0a0a0;
  --text-muted: #777777;

  --accent: #4a9eff;
  --accent-hover: #6aadff;
  --accent-dark: #3a7bc8;

  --shadow-card: 0 1px 3px rgba(0,0,0,0.3);
  --shadow-hover: 0 4px 12px rgba(0,0,0,0.4);
}

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

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

body {
  background-color: var(--bg-primary);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

button {
  cursor: pointer;
  font-family: var(--font-body);
  border: none;
  background: none;
}

ul, ol {
  list-style: none;
}

/* ========== SCROLLBAR ========== */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: var(--bg-surface);
}
::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--text-muted);
}

/* ========== TYPOGRAPHY ========== */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-headline);
  font-weight: 700;
  line-height: 1.25;
  color: var(--text-primary);
}

h1 { font-size: clamp(1.75rem, 4vw, 2.5rem); font-weight: 900; }
h2 { font-size: clamp(1.375rem, 3vw, 1.875rem); }
h3 { font-size: clamp(1.125rem, 2vw, 1.375rem); }
h4 { font-size: 1.125rem; }
h5 { font-size: 1rem; }

p {
  color: var(--text-secondary);
  line-height: 1.7;
}

.text-accent { color: var(--accent); }

/* ========== UTILITIES ========== */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
}

.section {
  padding: 48px 0;
}

.section-sm {
  padding: 32px 0;
}

.section-header {
  margin-bottom: 24px;
}

.section-header h2 {
  margin-bottom: 6px;
}

.section-header p {
  color: var(--text-muted);
  font-size: 1rem;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.flex-between {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* ========== HEADER & TOP BAR ========== */
.top-bar {
  background: var(--text-primary);
  color: var(--bg-primary);
  padding: 8px 0;
  font-size: 0.8125rem;
}

.top-bar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.top-bar-date {
  color: var(--bg-primary);
  opacity: 0.7;
}

.top-bar-links {
  display: flex;
  gap: 16px;
}

.top-bar-links a {
  color: var(--bg-primary);
  opacity: 0.7;
  transition: opacity var(--transition-fast);
}

.top-bar-links a:hover {
  opacity: 1;
  text-decoration: none;
}

/* Navbar */
.navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--bg-primary);
  border-bottom: 1px solid var(--border);
}

.navbar-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
  height: var(--nav-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.navbar-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  text-decoration: none;
}

.navbar-logo-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  object-fit: contain;
}

.logo-text {
  font-family: var(--font-headline);
  font-size: 1.375rem;
  font-weight: 900;
  color: var(--text-primary);
  letter-spacing: -0.02em;
}

.logo-tagline {
  font-size: 0.6875rem;
  color: var(--text-muted);
  font-weight: 500;
}
  color: var(--text-muted);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  display: none;
}

@media (min-width: 480px) {
  .logo-tagline { display: block; }
}

.navbar-nav {
  display: flex;
  align-items: center;
  gap: 0;
}

.navbar-nav a {
  padding: 8px 14px;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--text-secondary);
  text-decoration: none;
  transition: color var(--transition-fast);
  position: relative;
}

.navbar-nav a:hover {
  color: var(--text-primary);
}

.navbar-nav a.active {
  color: var(--text-primary);
  font-weight: 600;
}

.navbar-nav a.active::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 14px;
  right: 14px;
  height: 2px;
  background: var(--accent);
}

.navbar-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Theme toggle */
.theme-toggle {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  border: 1px solid var(--border);
  background: var(--bg-surface);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.theme-toggle:hover {
  border-color: var(--accent);
  background: var(--accent);
}

/* Subscribe button */
.btn-subscribe {
  background: var(--accent);
  color: #fff;
  padding: 8px 18px;
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none;
  transition: background var(--transition-fast);
}

.btn-subscribe:hover {
  background: var(--accent-hover);
  text-decoration: none;
}

/* Hamburger */
.hamburger {
  display: none;
  width: 36px;
  height: 36px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  cursor: pointer;
  border-radius: var(--radius-sm);
  transition: var(--transition-fast);
  border: 1px solid var(--border);
}

.hamburger:hover { background: var(--bg-surface); }

.hamburger span {
  width: 18px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 1px;
}

/* Mobile Nav */
.mobile-nav-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 1001;
}

.mobile-nav {
  display: none;
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 280px;
  background: var(--bg-primary);
  border-left: 1px solid var(--border);
  z-index: 1002;
  padding: 24px;
  transform: translateX(100%);
  transition: transform var(--transition-med);
}

.mobile-nav.open {
  transform: translateX(0);
}

.mobile-nav-overlay.open {
  display: block;
}

.mobile-nav.open {
  display: block;
}

.mobile-nav a {
  display: block;
  padding: 12px 0;
  font-size: 1.0625rem;
  font-weight: 500;
  color: var(--text-primary);
  border-bottom: 1px solid var(--border);
  text-decoration: none;
}

.mobile-nav a:hover {
  color: var(--accent);
}

@media (max-width: 768px) {
  .navbar-nav, .navbar-actions .btn-subscribe { display: none; }
  .hamburger { display: flex; }
  .navbar-actions { gap: 8px; }
  .theme-toggle { font-size: 0.6875rem; padding: 5px 10px; }
}

/* ========== SECTION NAV (Like WP categories) ========== */
.section-nav {
  background: var(--bg-surface);
  border-bottom: 1px solid var(--border);
  overflow-x: auto;
}

.section-nav-inner {
  display: flex;
  gap: 0;
  white-space: nowrap;
}

.section-nav a {
  padding: 12px 16px;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-secondary);
  text-decoration: none;
  border-bottom: 2px solid transparent;
  transition: all var(--transition-fast);
}

.section-nav a:hover {
  color: var(--text-primary);
}

.section-nav a.active {
  color: var(--text-primary);
  border-bottom-color: var(--accent);
}

/* ========== HERO SECTION ========== */
.hero {
  padding: 32px 0;
  border-bottom: 1px solid var(--border);
}

.hero-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 32px;
}

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

.hero-main {
  position: relative;
}

.hero-main-image {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  border-radius: var(--radius-md);
  margin-bottom: 16px;
}

.hero-main-label {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
  margin-bottom: 8px;
}

.hero-main h1 {
  font-size: clamp(1.5rem, 3vw, 2.125rem);
  margin-bottom: 10px;
  line-height: 1.2;
}

.hero-main h1 a {
  color: var(--text-primary);
  text-decoration: none;
}

.hero-main h1 a:hover {
  color: var(--accent);
}

.hero-main-excerpt {
  font-size: 1rem;
  color: var(--text-secondary);
  margin-bottom: 12px;
  line-height: 1.6;
}

.hero-main-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.8125rem;
  color: var(--text-muted);
}

.hero-main-meta .author {
  color: var(--text-secondary);
  font-weight: 500;
}

.hero-sidebar {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.hero-sidebar-item {
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border);
}

.hero-sidebar-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.hero-sidebar-label {
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
  margin-bottom: 6px;
}

.hero-sidebar h3 {
  font-size: 1rem;
  line-height: 1.35;
  margin-bottom: 6px;
}

.hero-sidebar h3 a {
  color: var(--text-primary);
  text-decoration: none;
}

.hero-sidebar h3 a:hover {
  color: var(--accent);
}

.hero-sidebar-meta {
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* ========== MAIN CONTENT GRID ========== */
.main-content {
  padding: 40px 0;
}

.main-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 40px;
}

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

/* Section headers like WP */
.content-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--text-primary);
  margin-bottom: 24px;
}

.content-section-header h2 {
  font-size: 1.25rem;
  font-weight: 900;
}

.content-section-header a {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--accent);
  text-decoration: none;
}

.content-section-header a:hover {
  text-decoration: underline;
}

/* Article list */
.article-list {
  display: flex;
  flex-direction: column;
}

.article-list-item {
  display: grid;
  grid-template-columns: 1fr 180px;
  gap: 20px;
  padding: 20px 0;
  border-bottom: 1px solid var(--border);
  text-decoration: none;
}

.article-list-item:last-child {
  border-bottom: none;
}

.article-list-content {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.article-list-label {
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
}

.article-list-title {
  font-family: var(--font-headline);
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.35;
}

.article-list-title:hover {
  color: var(--accent);
}

.article-list-excerpt {
  font-size: 0.9375rem;
  color: var(--text-muted);
  line-height: 1.55;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.article-list-meta {
  font-size: 0.8125rem;
  color: var(--text-muted);
  margin-top: auto;
}

.article-list-thumb {
  border-radius: var(--radius-sm);
  overflow: hidden;
  aspect-ratio: 16/10;
}

.article-list-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Sidebar widgets */
.sidebar {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.sidebar-widget {
  border-top: 3px solid var(--text-primary);
  padding-top: 16px;
}

.sidebar-widget-title {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin-bottom: 16px;
}

/* Trending */
.trending-item {
  padding: 12px 0;
  border-bottom: 1px solid var(--border-light);
}

.trending-item:last-child {
  border-bottom: none;
}

.trending-header {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.trending-num {
  font-family: var(--font-headline);
  font-size: 1.5rem;
  font-weight: 900;
  color: var(--border);
  line-height: 1;
  min-width: 28px;
}

.trending-text {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.4;
}

.trending-text a {
  color: inherit;
  text-decoration: none;
}

.trending-text a:hover {
  color: var(--accent);
}

.trending-meta {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 4px;
  padding-left: 40px;
}

/* Newsletter widget */
.newsletter-widget {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 24px;
}

.newsletter-widget h3 {
  font-size: 1.125rem;
  margin-bottom: 8px;
}

.newsletter-widget p {
  font-size: 0.9375rem;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.newsletter-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.newsletter-form input {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg-primary);
  color: var(--text-primary);
  font-size: 0.9375rem;
  font-family: var(--font-body);
  outline: none;
  transition: border-color var(--transition-fast);
}

.newsletter-form input:focus {
  border-color: var(--accent);
}

.newsletter-form button {
  width: 100%;
  padding: 10px;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.9375rem;
  cursor: pointer;
  transition: background var(--transition-fast);
}

.newsletter-form button:hover {
  background: var(--accent-hover);
}

/* Tool feature */
.tool-feature {
  text-align: center;
  padding: 24px;
  background: var(--bg-surface);
  border-radius: var(--radius-md);
}

.tool-feature-icon {
  font-size: 2rem;
  margin-bottom: 12px;
}

.tool-feature h4 {
  font-size: 1rem;
  margin-bottom: 6px;
}

.tool-feature p {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.tool-feature .btn-outline {
  display: inline-block;
  padding: 8px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-secondary);
  text-decoration: none;
  transition: all var(--transition-fast);
}

.tool-feature .btn-outline:hover {
  border-color: var(--accent);
  color: var(--accent);
  text-decoration: none;
}

/* ========== TOOL CARDS ========== */
.tool-card {
  background: var(--bg-primary);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 20px;
  transition: all var(--transition-fast);
}

.tool-card:hover {
  box-shadow: var(--shadow-hover);
  border-color: var(--accent);
}

.tool-card-icon {
  font-size: 1.5rem;
  margin-bottom: 12px;
}

.tool-card h3 {
  font-size: 1rem;
  margin-bottom: 4px;
}

.tool-card p {
  font-size: 0.875rem;
  color: var(--text-muted);
}

/* ========== PULSE / NEWSLETTER ========== */
.pulse-card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 20px;
}

.pulse-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.pulse-issue-num {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--accent);
}

.pulse-date {
  font-size: 0.8125rem;
  color: var(--text-muted);
}

.pulse-card h3 {
  font-size: 1rem;
  margin-bottom: 8px;
}

.pulse-card p {
  font-size: 0.875rem;
  color: var(--text-muted);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ========== BOOK / LITERATURE ========== */
.book-card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.book-card:hover {
  box-shadow: var(--shadow-hover);
}

.book-card-image {
  height: 160px;
  overflow: hidden;
}

.book-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.book-card-body {
  padding: 16px;
}

.book-card-body h3 {
  font-size: 0.9375rem;
  margin-bottom: 4px;
}

.book-author {
  font-size: 0.8125rem;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.book-rating {
  color: var(--orange);
  font-size: 0.875rem;
  margin-bottom: 6px;
}

.book-card-body p {
  font-size: 0.8125rem;
  color: var(--text-muted);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ========== ARTICLE PAGE ========== */
.article-page {
  padding: 32px 0 60px;
}

.article-hero-image {
  width: 100%;
  max-height: 480px;
  object-fit: cover;
  border-radius: var(--radius-md);
  margin-bottom: 24px;
}

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

.article-label {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
  margin-bottom: 10px;
}

.article-header h1 {
  font-size: clamp(1.5rem, 4vw, 2.25rem);
  margin-bottom: 12px;
}

.article-byline {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.875rem;
  color: var(--text-muted);
  padding: 12px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  margin-bottom: 24px;
}

.article-byline .author {
  color: var(--text-secondary);
  font-weight: 500;
}

.article-content {
  max-width: 720px;
  margin: 0 auto;
}

.article-content p {
  margin-bottom: 20px;
  font-size: 1.0625rem;
  color: var(--text-secondary);
  line-height: 1.8;
}

.article-content h2 {
  margin-top: 36px;
  margin-bottom: 14px;
  font-size: 1.5rem;
}

.article-content ul {
  margin-bottom: 20px;
  padding-left: 24px;
}

.article-content li {
  color: var(--text-secondary);
  font-size: 1.0625rem;
  line-height: 1.8;
  margin-bottom: 6px;
  list-style: disc;
}

.article-content blockquote {
  border-left: 3px solid var(--accent);
  padding: 12px 20px;
  margin: 24px 0;
  background: var(--bg-surface);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-style: italic;
  color: var(--text-primary);
  font-size: 1.0625rem;
}

/* Related section */
.related-section {
  border-top: 1px solid var(--border);
  padding-top: 32px;
  margin-top: 40px;
}

.related-section h3 {
  font-size: 1.125rem;
  margin-bottom: 20px;
}

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

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

/* ========== BOOK FUNNEL PAGE ========== */
.book-funnel {
  padding: 32px 0 60px;
}

.book-hero {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 48px;
  align-items: start;
  padding-bottom: 40px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 40px;
}

@media (max-width: 800px) {
  .book-hero { grid-template-columns: 1fr; }
  .book-cover-wrap { display: flex; justify-content: center; }
}

.book-cover {
  width: 240px;
  height: 360px;
  background: linear-gradient(135deg, var(--purple), #4a2080);
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 28px;
  box-shadow: 0 20px 48px rgba(107,45,139,0.3);
  margin: 0 auto;
}

.book-cover-title {
  font-family: var(--font-headline);
  font-size: 1.5rem;
  font-weight: 900;
  color: #fff;
  margin-bottom: 10px;
  line-height: 1.2;
}

.book-cover-subtitle {
  font-size: 0.8125rem;
  color: rgba(255,255,255,0.7);
}

.book-cover-author {
  margin-top: auto;
  font-size: 0.75rem;
  color: rgba(255,255,255,0.6);
  border-top: 1px solid rgba(255,255,255,0.2);
  padding-top: 14px;
  width: 100%;
}

.book-hero-content h1 {
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  margin-bottom: 10px;
}

.book-tagline {
  font-size: 1.125rem;
  color: var(--accent);
  margin-bottom: 16px;
}

.book-meta-row {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.book-stars {
  color: var(--orange);
  font-size: 1rem;
}

.book-stars span {
  color: var(--text-muted);
  font-size: 0.875rem;
  margin-left: 6px;
}

.book-price {
  font-family: var(--font-headline);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
}

.book-price span {
  font-size: 0.875rem;
  color: var(--text-muted);
  font-weight: 400;
  text-decoration: line-through;
  margin-left: 8px;
}

.book-price .discount {
  background: rgba(0,137,74,0.1);
  color: var(--green);
  font-size: 0.75rem;
  padding: 2px 8px;
  border-radius: 4px;
  margin-left: 8px;
  text-decoration: none;
}

/* Benefits grid */
.benefits-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin: 40px 0;
}

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

.benefit-card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 24px;
}

.benefit-icon {
  font-size: 1.5rem;
  margin-bottom: 12px;
}

.benefit-card h3 {
  font-size: 1rem;
  margin-bottom: 6px;
}

.benefit-card p {
  font-size: 0.875rem;
  color: var(--text-muted);
}

/* Chapters */
.chapters-section {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  margin: 40px 0;
}

.chapter-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
}

.chapter-item:last-child {
  border-bottom: none;
}

.chapter-num {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--accent);
  background: rgba(37,121,216,0.1);
  padding: 3px 8px;
  border-radius: 4px;
  flex-shrink: 0;
}

.chapter-info h4 {
  font-size: 0.9375rem;
  margin-bottom: 2px;
}

.chapter-info p {
  font-size: 0.8125rem;
  color: var(--text-muted);
}

.chapter-free {
  margin-left: auto;
  font-size: 0.6875rem;
  font-weight: 600;
  color: var(--green);
  background: rgba(0,137,74,0.1);
  padding: 2px 8px;
  border-radius: 4px;
  flex-shrink: 0;
}

/* Testimonials */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin: 40px 0;
}

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

.testimonial-card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 20px;
}

.testimonial-stars {
  color: var(--orange);
  margin-bottom: 10px;
  font-size: 0.875rem;
}

.testimonial-text {
  font-size: 0.9375rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 14px;
  font-style: italic;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 10px;
}

.testimonial-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.875rem;
  font-weight: 700;
  color: #fff;
}

.testimonial-name {
  font-weight: 600;
  font-size: 0.875rem;
}

.testimonial-role {
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* Author section */
.author-section {
  display: flex;
  gap: 28px;
  align-items: flex-start;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  margin: 40px 0;
}

@media (max-width: 640px) {
  .author-section { flex-direction: column; }
}

.author-photo {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  border: 3px solid var(--accent);
}

.author-name {
  font-size: 1.125rem;
  margin-bottom: 6px;
}

.author-bio {
  font-size: 0.9375rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* Pricing */
.pricing-section {
  text-align: center;
  margin: 40px 0;
}

.pricing-card {
  max-width: 440px;
  margin: 0 auto;
  background: var(--bg-surface);
  border: 2px solid var(--accent);
  border-radius: var(--radius-xl);
  padding: 32px;
  position: relative;
}

.pricing-badge {
  display: inline-block;
  background: rgba(37,121,216,0.1);
  color: var(--accent);
  padding: 3px 12px;
  border-radius: 100px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 16px;
}

.pricing-card h3 {
  font-size: 1.375rem;
  margin-bottom: 6px;
}

.pricing-card .price {
  font-family: var(--font-headline);
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.pricing-card .price-note {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-bottom: 20px;
}

.pricing-features {
  text-align: left;
  margin-bottom: 20px;
}

.pricing-feature {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 0;
  font-size: 0.9375rem;
  color: var(--text-secondary);
}

.pricing-feature .check {
  color: var(--green);
  font-weight: 700;
  flex-shrink: 0;
}

.pricing-cta {
  display: block;
  width: 100%;
  padding: 14px;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: var(--radius-sm);
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  text-align: center;
  transition: background var(--transition-fast);
}

.pricing-cta:hover {
  background: var(--accent-hover);
  text-decoration: none;
}

/* FAQ */
.faq-section {
  max-width: 680px;
  margin: 40px auto;
}

.faq-item {
  border-bottom: 1px solid var(--border);
}

.faq-question {
  width: 100%;
  padding: 16px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
  text-align: left;
  cursor: pointer;
  background: none;
  border: none;
  font-family: var(--font-body);
}

.faq-toggle {
  font-size: 1.25rem;
  color: var(--accent);
  transition: transform var(--transition-fast);
  flex-shrink: 0;
}

.faq-item.open .faq-toggle {
  transform: rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--transition-med);
}

.faq-item.open .faq-answer {
  max-height: 200px;
}

.faq-answer p {
  padding-bottom: 16px;
  font-size: 0.9375rem;
  color: var(--text-muted);
}

/* GHL Form */
#signup {
  max-width: 440px;
  margin: 0 auto 48px;
}

.ghl-form-box {
  background: var(--bg-surface);
  border: 1px solid var(--accent);
  border-radius: var(--radius-lg);
  padding: 32px;
  text-align: center;
}

.ghl-form-box h3 {
  margin-bottom: 6px;
}

.ghl-form-box p {
  margin-bottom: 20px;
  font-size: 0.9375rem;
}

/* ========== BUTTONS ========== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 20px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.9375rem;
  transition: all var(--transition-fast);
  cursor: pointer;
  border: none;
  text-decoration: none;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
}

.btn-primary:hover {
  background: var(--accent-hover);
  text-decoration: none;
}

.btn-outline {
  background: transparent;
  color: var(--text-secondary);
  border: 1px solid var(--border);
}

.btn-outline:hover {
  border-color: var(--accent);
  color: var(--accent);
  text-decoration: none;
}

.btn-sm {
  padding: 6px 14px;
  font-size: 0.875rem;
}

.btn-lg {
  padding: 14px 28px;
  font-size: 1rem;
}

/* ========== PAGE HEADER ========== */
.page-header {
  padding: 32px 0;
  border-bottom: 1px solid var(--border);
  margin-bottom: 32px;
}

.page-header h1 {
  margin-bottom: 8px;
}

.page-header p {
  font-size: 1.0625rem;
  color: var(--text-muted);
  max-width: 540px;
}

/* ========== CATEGORY FILTERS ========== */
.filter-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 28px;
  flex-wrap: wrap;
}

.filter-tab {
  padding: 6px 14px;
  border-radius: 100px;
  font-size: 0.875rem;
  font-weight: 500;
  border: 1px solid var(--border);
  color: var(--text-secondary);
  background: transparent;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.filter-tab:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.filter-tab.active {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

/* ========== TOOL PAGE ========== */
.tool-hero {
  padding: 32px 0 40px;
}

.tool-hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

@media (max-width: 768px) {
  .tool-hero-inner { grid-template-columns: 1fr; }
}

.tool-hero-image {
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 16/10;
}

.tool-hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.tool-hero-content .label {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
  margin-bottom: 8px;
}

.tool-hero-content h1 {
  margin-bottom: 6px;
}

.tool-tagline {
  font-size: 1.0625rem;
  color: var(--accent);
  margin-bottom: 12px;
}

.tool-rating {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 20px;
}

.stars {
  color: var(--orange);
  letter-spacing: 2px;
}

.rating-value {
  font-weight: 700;
  color: var(--text-primary);
}

.rating-count {
  color: var(--text-muted);
  font-size: 0.875rem;
}

.tool-features-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin: 28px 0;
}

.tool-feature-item {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 14px;
}

.tool-feature-item h4 {
  font-size: 0.8125rem;
  color: var(--accent);
  margin-bottom: 3px;
}

.tool-feature-item p {
  font-size: 0.8125rem;
  color: var(--text-muted);
}

.tool-pricing-box {
  background: var(--bg-surface);
  border: 1px solid var(--accent);
  border-radius: var(--radius-md);
  padding: 20px;
}

.pricing-label {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.pricing-amount {
  font-family: var(--font-headline);
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--text-primary);
}

.pricing-amount span {
  font-size: 0.875rem;
  font-weight: 400;
  color: var(--text-muted);
}

.pricing-note {
  font-size: 0.8125rem;
  color: var(--text-muted);
  margin-top: 3px;
}

/* ========== NEWSLETTER BANNER ========== */
.newsletter-banner {
  background: var(--bg-surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 40px 0;
  text-align: center;
}

.newsletter-banner h2 {
  font-size: 1.5rem;
  margin-bottom: 8px;
}

.newsletter-banner p {
  font-size: 1rem;
  color: var(--text-muted);
  max-width: 500px;
  margin: 0 auto 20px;
}

/* ========== FOOTER ========== */
.footer {
  background: var(--bg-surface);
  border-top: 1px solid var(--border);
  padding: 40px 0 28px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 32px;
  margin-bottom: 32px;
}

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

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

.footer-brand .logo-text {
  font-size: 1.25rem;
  margin-bottom: 10px;
  display: block;
  font-family: var(--font-headline);
  font-weight: 900;
}

.footer-brand p {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-bottom: 14px;
  max-width: 260px;
}

.footer-social {
  display: flex;
  gap: 8px;
}

.footer-social a {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-sm);
  background: var(--bg-primary);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 0.875rem;
  transition: all var(--transition-fast);
  text-decoration: none;
}

.footer-social a:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.footer-col h4 {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin-bottom: 14px;
}

.footer-col a {
  display: block;
  font-size: 0.9375rem;
  color: var(--text-secondary);
  padding: 4px 0;
  text-decoration: none;
}

.footer-col a:hover {
  color: var(--accent);
}

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

.footer-bottom a {
  color: var(--text-muted);
  text-decoration: none;
}

.footer-bottom a:hover {
  color: var(--accent);
}

/* ========== RESPONSIVE ========== */
@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .article-list-item { grid-template-columns: 1fr; }
  .article-list-thumb { display: none; }
  .chapters-section, .author-section { padding: 20px; }
  .pricing-card { padding: 20px; }
  .hero-main-image { aspect-ratio: 4/3; }
}

/* ========== ANIMATIONS ========== */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

.fade-in { animation: fadeIn 0.4s ease forwards; }