/* Gospel Story Co - Main Stylesheet */

/* Google Fonts loaded via functions.php */

:root {
  --gold: #B8824A;
  --gold-light: #D4A96A;
  --gold-pale: #F2E8D5;
  --cream: #FAF6EE;
  --cream-dark: #EFE5D0;
  --brown-deep: #0E0A06;
  --brown-mid: #4A2C10;
  --brown-light: #7A5030;
  --brown-pale: #C0A080;
  --white: #FFFDF8;
  --text-dark: #1E1008;
  --text-mid: #5C3D1E;
  --text-muted: #9B7B5A;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: 'Lato', sans-serif;
  background: var(--cream);
  color: var(--text-dark);
  font-size: 16px;
  line-height: 1.7;
}

h1, h2, h3, h4 { font-family: 'Playfair Display', serif; }

/* NAV */
nav {
  background: var(--brown-deep);
  padding: 0 5%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 90px;
  position: sticky;
  top: 0;
  z-index: 100;
  position: relative;
  border-bottom: 1px solid var(--brown-mid);
}
.nav-logo { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.nav-logo-img { height: 90px; width: auto; display: block; }
nav ul {
  list-style: none;
  display: flex;
  gap: 24px;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: nowrap;
  overflow: visible;
}
nav ul a {
  text-decoration: none;
  color: var(--brown-pale);
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: color 0.2s;
  white-space: nowrap;
}
nav ul a:hover { color: var(--gold-light); }

.btn {
  display: inline-block;
  padding: 10px 24px;
  border-radius: 2px;
  font-family: 'Lato', sans-serif;
  font-size: 13px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s;
  border: none;
}
.btn-gold { background: var(--gold); color: var(--white); }
.btn-gold:hover { background: var(--brown-light); }
.btn-outline { background: transparent; border: 1px solid var(--gold); color: var(--gold-light); }
.btn-outline:hover { background: var(--gold); color: var(--white); }

/* HERO */
.hero {
  background: var(--brown-deep);
  padding: 100px 5% 90px;
  position: relative;
  overflow: hidden;
  text-align: center;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 0%, rgba(201,151,58,0.15) 0%, transparent 65%);
  pointer-events: none;
}
.hero-eyebrow {
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 18px;
}
.hero h1 {
  font-size: clamp(38px, 6vw, 64px);
  color: var(--cream);
  line-height: 1.15;
  margin-bottom: 22px;
  max-width: 780px;
  margin-left: auto;
  margin-right: auto;
}
.hero h1 em { color: var(--gold-light); font-style: italic; }
.hero p {
  font-size: 17px;
  color: var(--brown-pale);
  max-width: 560px;
  margin: 0 auto 40px;
  line-height: 1.8;
  font-weight: 300;
}
.hero-cta { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.hero-divider { width: 48px; height: 1px; background: var(--gold); margin: 0 auto 50px; opacity: 0.5; }
.hero-badges {
  display: flex;
  gap: 32px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 56px;
  padding-top: 40px;
  border-top: 1px solid rgba(201,151,58,0.2);
}
.hero-badge { text-align: center; }
.hero-badge-num { font-family: 'Playfair Display', serif; font-size: 28px; color: var(--gold-light); display: block; }
.hero-badge-label { font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--brown-pale); }

/* SECTION SHARED */
section { padding: 80px 5%; }
.section-label { font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold); margin-bottom: 14px; }
.section-title { font-size: clamp(26px, 4vw, 40px); color: var(--brown-deep); line-height: 1.2; margin-bottom: 16px; }
.section-sub { color: var(--text-muted); font-size: 16px; max-width: 520px; line-height: 1.8; }
.section-header { margin-bottom: 52px; }
.section-header.centered { text-align: center; }
.section-header.centered .section-sub { margin: 0 auto; }

/* WHAT'S INCLUDED */
.included { background: var(--white); }
.included-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 28px; margin-top: 20px; }
.included-card {
  background: var(--cream);
  border: 1px solid var(--cream-dark);
  border-top: 3px solid var(--gold);
  padding: 28px 24px;
  border-radius: 2px;
}
.included-card-icon {
  width: 40px; height: 40px;
  background: var(--gold-pale);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 16px;
}
.included-card h3 { font-size: 17px; color: var(--brown-deep); margin-bottom: 8px; }
.included-card p { font-size: 14px; color: var(--text-muted); line-height: 1.7; font-family: 'Lato', sans-serif; }

/* HOW IT WORKS */
.how { background: var(--cream-dark); }
.how-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 0;
  counter-reset: steps;
  margin-top: 20px;
}
.how-step { padding: 32px 28px; border-right: 1px solid var(--brown-pale); position: relative; }
.how-step:last-child { border-right: none; }
.how-step-num { font-family: 'Playfair Display', serif; font-size: 48px; color: var(--gold-pale); line-height: 1; margin-bottom: 12px; }
.how-step h3 { font-size: 17px; color: var(--brown-deep); margin-bottom: 8px; }
.how-step p { font-size: 14px; color: var(--text-muted); line-height: 1.7; }

/* SAMPLE LESSON */
.sample { background: var(--white); }
.sample-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
@media (max-width: 768px) { .sample-inner { grid-template-columns: 1fr; } }
.sample-preview { background: var(--cream); border: 1px solid var(--cream-dark); border-radius: 4px; overflow: hidden; }
.sample-preview-header { background: var(--brown-deep); padding: 14px 20px; display: flex; justify-content: space-between; align-items: center; }
.sample-preview-title { font-family: 'Playfair Display', serif; color: var(--gold-light); font-size: 15px; }
.sample-preview-tag { font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase; background: var(--gold); color: var(--white); padding: 3px 10px; border-radius: 2px; }
.sample-preview-body { padding: 24px; }
.sample-file-list { display: flex; flex-direction: column; gap: 10px; }
.sample-file { display: flex; align-items: center; gap: 12px; padding: 12px 14px; background: var(--white); border: 1px solid var(--cream-dark); border-radius: 2px; font-size: 14px; color: var(--text-mid); }
.sample-file-icon { width: 32px; height: 32px; background: var(--gold-pale); display: flex; align-items: center; justify-content: center; border-radius: 2px; font-size: 12px; font-weight: 700; color: var(--brown-mid); flex-shrink: 0; }
.sample-text h2 { margin-bottom: 16px; }
.sample-checklist { list-style: none; margin: 20px 0 32px; display: flex; flex-direction: column; gap: 12px; }
.sample-checklist li { display: flex; align-items: flex-start; gap: 12px; font-size: 15px; color: var(--text-mid); }
.check { width: 20px; height: 20px; background: var(--gold-pale); border-radius: 50%; display: flex; align-items: center; justify-content: center; flex-shrink: 0; margin-top: 2px; }

/* PRICING */
.pricing { background: var(--brown-deep); }
.pricing .section-title { color: var(--cream); }
.pricing .section-sub { color: var(--brown-pale); }
.pricing-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 20px; max-width: 1100px; margin: 0 auto; }
.pricing-card { background: var(--brown-mid); border: 1px solid rgba(201,151,58,0.25); border-radius: 2px; padding: 36px 32px; position: relative; }
.pricing-card.featured { background: var(--gold-pale); border: 2px solid var(--gold); }
.pricing-featured-badge { position: absolute; top: -13px; left: 50%; transform: translateX(-50%); background: var(--gold); color: var(--white); font-size: 10px; letter-spacing: 0.15em; text-transform: uppercase; padding: 4px 16px; border-radius: 2px; }
.pricing-plan { font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--brown-pale); margin-bottom: 6px; }
.pricing-card.featured .pricing-plan { color: var(--brown-light); }
.pricing-price { font-family: 'Playfair Display', serif; font-size: 46px; color: var(--cream); line-height: 1; margin-bottom: 4px; }
.pricing-card.featured .pricing-price { color: var(--brown-deep); }
.pricing-period { font-size: 13px; color: var(--brown-pale); margin-bottom: 28px; }
.pricing-card.featured .pricing-period { color: var(--brown-light); }
.pricing-features { list-style: none; display: flex; flex-direction: column; gap: 10px; margin-bottom: 32px; }
.pricing-features li { font-size: 14px; color: var(--brown-pale); display: flex; gap: 10px; align-items: flex-start; }
.pricing-card.featured .pricing-features li { color: var(--text-mid); }
.pricing-features li::before { content: "\2014"; color: var(--gold); flex-shrink: 0; }
.pricing-note { font-size: 12px; color: var(--brown-pale); text-align: center; margin-top: 28px; }

/* TESTIMONIALS */
.testimonials { background: var(--cream-dark); }
.testimonials-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 28px; }
.testimonial { background: var(--white); border: 1px solid var(--cream-dark); padding: 28px; border-radius: 2px; position: relative; }
.testimonial::before { content: '\201C'; font-family: 'Playfair Display', serif; font-size: 64px; color: var(--gold-pale); position: absolute; top: 10px; left: 20px; line-height: 1; }
.testimonial p { font-size: 15px; color: var(--text-mid); line-height: 1.8; margin-bottom: 20px; padding-top: 24px; font-style: italic; font-family: 'Playfair Display', serif; }
.testimonial-author { font-size: 13px; font-weight: 700; color: var(--brown-deep); letter-spacing: 0.05em; text-transform: uppercase; }
.testimonial-role { font-size: 12px; color: var(--text-muted); }

/* DASHBOARD */
.dashboard-section { background: var(--cream); padding: 80px 5%; }
.dashboard-wrap { background: var(--white); border: 1px solid var(--cream-dark); border-radius: 4px; overflow: hidden; box-shadow: 0 4px 40px rgba(44,26,14,0.08); }
.dash-topbar { background: var(--brown-deep); padding: 14px 28px; display: flex; justify-content: space-between; align-items: center; }
.dash-topbar-logo { font-family: 'Playfair Display', serif; color: var(--gold-light); font-size: 16px; }
.dash-topbar-user { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--brown-pale); }
.dash-avatar { width: 30px; height: 30px; border-radius: 50%; background: var(--gold); display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 700; color: var(--white); }
.dash-body { display: grid; grid-template-columns: 220px 1fr; min-height: 480px; }
@media (max-width: 640px) {
  .dash-body { grid-template-columns: 1fr; }
  .dash-sidebar { display: none; }
}
.dash-sidebar { background: var(--cream); border-right: 1px solid var(--cream-dark); padding: 24px 0; }
.dash-sidebar-label { font-size: 10px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--text-muted); padding: 0 20px; margin-bottom: 8px; margin-top: 20px; }
.dash-sidebar-label:first-child { margin-top: 0; }
.dash-nav-item { display: flex; align-items: center; gap: 10px; padding: 10px 20px; font-size: 14px; color: var(--text-mid); cursor: pointer; transition: background 0.15s; border-left: 3px solid transparent; }
.dash-nav-item:hover { background: var(--cream-dark); }
.dash-nav-item.active { background: var(--cream-dark); border-left-color: var(--gold); color: var(--brown-deep); font-weight: 700; }
.dash-main { padding: 28px; overflow: hidden; }
.dash-welcome { margin-bottom: 28px; }
.dash-welcome h2 { font-size: 22px; color: var(--brown-deep); margin-bottom: 4px; }
.dash-welcome p { font-size: 14px; color: var(--text-muted); }
.dash-new-badge { display: inline-block; background: var(--gold); color: var(--white); font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase; padding: 3px 10px; border-radius: 2px; margin-left: 8px; vertical-align: middle; }
.dash-featured { background: var(--brown-deep); border-radius: 4px; padding: 24px; margin-bottom: 28px; display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; }
.dash-featured-label { font-size: 10px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--gold); margin-bottom: 6px; }
.dash-featured h3 { font-size: 20px; color: var(--cream); margin-bottom: 6px; }
.dash-featured p { font-size: 13px; color: var(--brown-pale); }
.dash-lessons-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 16px; }
.dash-lesson-card { border: 1px solid var(--cream-dark); border-radius: 4px; overflow: hidden; cursor: pointer; transition: border-color 0.2s; }
.dash-lesson-card:hover { border-color: var(--gold); }
.dash-lesson-thumb { height: 90px; background: var(--cream-dark); display: flex; align-items: center; justify-content: center; position: relative; }
.dash-lesson-thumb svg { opacity: 0.35; }
.dash-lesson-age { position: absolute; top: 8px; right: 8px; font-size: 9px; letter-spacing: 0.1em; text-transform: uppercase; background: var(--brown-deep); color: var(--gold-light); padding: 2px 7px; border-radius: 2px; }
.dash-lesson-info { padding: 10px 12px; }
.dash-lesson-info h4 { font-family: 'Playfair Display', serif; font-size: 13px; color: var(--brown-deep); margin-bottom: 3px; line-height: 1.3; }
.dash-lesson-info p { font-size: 11px; color: var(--text-muted); }

/* FAQ */
.faq { background: var(--white); }
.faq-list { max-width: 680px; margin: 0 auto; }
.faq-item { border-bottom: 1px solid var(--cream-dark); padding: 22px 0; }
.faq-q { font-family: 'Playfair Display', serif; font-size: 17px; color: var(--brown-deep); margin-bottom: 10px; }
.faq-a { font-size: 15px; color: var(--text-muted); line-height: 1.8; }

/* CTA BANNER */
.cta-banner { background: var(--gold); padding: 70px 5%; text-align: center; }
.cta-banner h2 { font-size: clamp(26px, 4vw, 40px); color: var(--brown-deep); margin-bottom: 16px; }
.cta-banner p { font-size: 16px; color: var(--brown-mid); max-width: 480px; margin: 0 auto 32px; }
.btn-dark { background: var(--brown-deep); color: var(--cream); }
.btn-dark:hover { background: var(--brown-mid); color: var(--cream); }

/* FOOTER */
footer { background: var(--brown-deep); padding: 50px 5% 30px; color: var(--brown-pale); font-size: 14px; }
.footer-inner { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 32px; margin-bottom: 40px; }
.footer-brand p { font-size: 13px; color: var(--brown-pale); max-width: 240px; line-height: 1.7; margin-top: 10px; font-weight: 300; }
.footer-col h4 { font-family: 'Lato', sans-serif; font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--gold); margin-bottom: 14px; }
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.footer-col ul a { text-decoration: none; color: var(--brown-pale); font-size: 14px; transition: color 0.2s; }
.footer-col ul a:hover { color: var(--gold-light); }
.footer-bottom { border-top: 1px solid rgba(201,151,58,0.15); padding-top: 20px; display: flex; justify-content: space-between; font-size: 12px; color: var(--text-muted); flex-wrap: wrap; gap: 10px; }

/* SECTION DIVIDER */
.divider { display: flex; align-items: center; gap: 16px; margin: 0 auto 56px; max-width: 200px; justify-content: center; }
.divider-line { flex: 1; height: 1px; background: var(--gold-pale); }
.divider-diamond { width: 8px; height: 8px; background: var(--gold); transform: rotate(45deg); flex-shrink: 0; }

/* WordPress specific */
.wp-caption { max-width: 100%; }
img { max-width: 100%; height: auto; }
.alignleft { float: left; margin-right: 1rem; }
.alignright { float: right; margin-left: 1rem; }
.aligncenter { display: block; margin: 0 auto; }

/* PMPro specific styles */
.pmpro_message { background: var(--gold-pale); border: 1px solid var(--gold); padding: 16px 20px; border-radius: 2px; color: var(--text-dark); font-family: 'Lato', sans-serif; margin-bottom: 20px; }
.pmpro_checkout { max-width: 600px; margin: 0 auto; }
.pmpro_checkout input[type="text"],
.pmpro_checkout input[type="email"],
.pmpro_checkout input[type="password"] { width: 100%; padding: 12px 14px; border: 1px solid var(--cream-dark); border-radius: 2px; font-family: 'Lato', sans-serif; font-size: 15px; margin-bottom: 12px; }
.pmpro_btn, .pmpro_submit { background: var(--gold); color: var(--white); border: none; padding: 14px 28px; border-radius: 2px; font-family: 'Lato', sans-serif; font-size: 13px; letter-spacing: 0.1em; text-transform: uppercase; cursor: pointer; }
.pmpro_btn:hover, .pmpro_submit:hover { background: var(--brown-light); }

/* Lesson post type */
.lesson-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 20px; }
.lesson-card { background: var(--white); border: 1px solid var(--cream-dark); border-radius: 4px; overflow: hidden; cursor: pointer; transition: transform 0.2s, box-shadow 0.2s; text-decoration: none; display: block; }
.lesson-card:hover { transform: translateY(-3px); box-shadow: 0 8px 24px rgba(44,26,14,0.12); }
.lesson-card-thumb { width: 100%; aspect-ratio: 1/1; object-fit: cover; display: block; }
.lesson-card-info { background: var(--brown-deep); padding: 12px 14px; display: flex; justify-content: space-between; align-items: center; }
.lesson-card-title { font-family: 'Playfair Display', serif; font-size: 14px; color: var(--cream); margin-bottom: 2px; }
.lesson-card-ref { font-size: 11px; color: var(--brown-pale); font-family: 'Lato', sans-serif; }
.lesson-card-age { font-size: 10px; color: var(--gold); border: 1px solid var(--gold); padding: 3px 7px; border-radius: 2px; font-family: 'Lato', sans-serif; white-space: nowrap; }

/* ============================================
   MOBILE RESPONSIVE STYLES
   ============================================ */
@media (max-width: 768px) {

  /* NAV: hide logo on mobile, keep wrapping, restore CTA button to full size */
  nav > a {
    display: none;
  }
  nav {
    height: auto;
    min-height: 60px;
    padding: 10px 5%;
    flex-wrap: wrap;
    gap: 8px;
    overflow: visible;
  }
  nav ul {
    gap: 14px;
    flex-wrap: wrap;
    justify-content: flex-end;
    padding: 6px 0;
  }

  /* Stack hero section vertically on mobile */
  section.hero {
    flex-direction: column !important;
    min-height: auto !important;
  }

  /* Left content side: center-align on mobile */
  section.hero > div:first-child {
    padding: 32px 6% 28px !important;
    align-items: center !important;
    text-align: center !important;
  }

  /* Shrink logo on mobile */
  section.hero > div:first-child img {
    height: 160px !important;
  }

  /* Center buttons/badges row */
  section.hero > div:first-child > div {
    justify-content: center !important;
  }

  /* Right character image: full width, fixed height */
  section.hero > div:last-child {
    flex: 0 0 260px !important;
    width: 100% !important;
  }

  /* Single-column character showcase grid on mobile */
  div[style*="grid-template-columns:1fr 1fr"],
  div[style*="grid-template-columns: 1fr 1fr"] {
    grid-template-columns: 1fr !important;
  }

  nav ul li:last-child {
    display: none;
  }
}

/* === Lesson page: thumbnail side-by-side layout === */
@media (min-width: 768px) {
  .lesson-hero { display:flex !important; flex-direction:row !important; gap:40px; align-items:flex-start; padding-right:77px !important; }
  .lesson-hero > div:first-child { flex: 0 1 auto; min-width:0; }
  .lesson-thumb-side { width:300px !important; flex-shrink:0 !important; display:flex !important; flex-direction:column; align-items:center; position:sticky; top:24px; }
  .lesson-thumb-side img { max-width:280px !important; width:100% !important; border-radius:12px !important; box-shadow:0 8px 32px rgba(0,0,0,0.18) !important; }
}
@media (max-width: 767px) {
  .lesson-hero { display:flex !important; flex-direction:column; }
  .lesson-thumb-side { display:flex !important; justify-content:center; width:100% !important; margin:20px 0 8px; }
  .lesson-thumb-side img { max-width:260px !important; border-radius:12px !important; box-shadow:0 6px 24px rgba(0,0,0,0.15) !important; }
}

/* ── Mobile hamburger navigation ── */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: #c9a96e;
  font-size: 28px;
  cursor: pointer;
  padding: 8px 12px;
  line-height: 1;
  order: 2;
}

@media (max-width: 768px) {
  nav {
    position: relative;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    padding: 10px 16px;
  }
  nav > a {
    flex: 1;
  }
  .nav-toggle {
    display: block;
  }
  nav ul {
    display: none;
    width: 100%;
    flex-direction: column;
    background: #1a1208;
    padding: 8px 0;
    margin: 0;
    list-style: none;
    order: 3;
  }
  nav.nav-open ul {
    display: flex;
  }
  nav ul li {
    width: 100%;
  }
  nav ul a {
    display: block;
    padding: 13px 24px;
    color: #c9a96e !important;
    font-size: 15px;
    border-bottom: 1px solid rgba(201,169,110,0.12);
    text-decoration: none;
  }
  nav ul a:hover {
    color: #e8c98b !important;
    background: rgba(201,169,110,0.07);
  }
  nav ul li:last-child a {
    border-bottom: none;
  }
  nav ul a.btn-gold {
    margin: 10px 20px;
    text-align: center;
    border: 1px solid #c9a96e;
    border-radius: 4px;
  }
}

@media (min-width: 769px) {
  .nav-toggle {
    display: none !important;
  }
}

/* ═══════════════════════════════
   LIBRARY LAYOUT
═══════════════════════════════ */
.lib-wrap {
  display: flex;
  flex-wrap: wrap;
  min-height: 100vh;
  background: #faf7f2;
}
.lib-topbar {
  flex-basis: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 28px;
  background: #faf7f2;
  border-bottom: 1px solid #e8dfd0;
}

/* ── Sidebar ── */
.lib-sidebar {
  width: 220px;
  flex-shrink: 0;
  background: #1a1410;
  padding: 32px 20px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.lib-label {
  font-family: 'Lato', sans-serif;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #8a7a60;
  margin: 18px 0 6px;
  padding: 0;
}

.lib-label:first-child {
  margin-top: 0;
}

.lib-nav-item {
  display: block;
  color: #c4b49a;
  text-decoration: none;
  font-family: 'Lato', sans-serif;
  font-size: 14px;
  padding: 7px 10px;
  border-radius: 6px;
  transition: background 0.15s, color 0.15s;
}

.lib-nav-item:hover {
  background: rgba(200,169,110,0.12);
  color: #e8d5b0;
}

.lib-nav-item.active {
  background: rgba(200,169,110,0.2);
  color: #c8a96e;
  font-weight: 600;
}

/* ── Main content ── */
.lib-main {
  flex: 1;
  padding: 40px 48px;
  max-width: 960px;
}

/* ── Upgrade banner ── */
.upgrade-banner {
  background: linear-gradient(135deg, #2a1f10, #3d2c14);
  border: 1px solid #c8a96e44;
  border-radius: 10px;
  padding: 18px 24px;
  margin-bottom: 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

/* ── Search & filters ── */
.search-bar {
  background: #fff;
  border: 1px solid #e0d5c5;
  border-radius: 8px;
  padding: 10px 16px;
  font-family: 'Lato', sans-serif;
  font-size: 14px;
  color: #3a2e20;
  outline: none;
  transition: border-color 0.2s;
}

.search-bar:focus {
  border-color: #c8a96e;
}

.filter-select {
  background: #fff;
  border: 1px solid #e0d5c5;
  border-radius: 8px;
  padding: 10px 14px;
  font-family: 'Lato', sans-serif;
  font-size: 14px;
  color: #3a2e20;
  cursor: pointer;
}

/* ── Mobile ── */
@media (max-width: 768px) {
  .lib-wrap {
    flex-direction: column;
  }

  .lib-sidebar {
    width: 100%;
    flex-direction: row;
    flex-wrap: wrap;
    padding: 12px 16px;
    gap: 8px;
    overflow-x: auto;
    align-items: center;
  }

  .lib-label {
    display: none;
  }

  .lib-nav-item {
    white-space: nowrap;
    border: 1px solid #555;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 13px;
    margin: 0;
  }

  .lib-nav-item.active {
    background: #c8a96e;
    color: #1a1410;
    border-color: #c8a96e;
  }

  .lib-main {
    padding: 24px 16px;
  }

  .upgrade-banner {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
}