/* ══════════════════════════════════════════════════
   LANDING PAGE STYLES — landing.css
   Loaded only on the landing page (no ?page= param)
══════════════════════════════════════════════════ */

/* Reset page-body padding for full-bleed hero */
.page-body { padding-top: 0 !important; background: #f4f5f9; }

/* ── Hero ──────────────────────────────────────── */
.lp-hero {
  background: linear-gradient(135deg, #0f1b35 0%, #1d2b4f 45%, #243a6e 75%, #1a5276 100%);
  padding: 120px 24px 80px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.lp-hero::before {
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 800px 600px at 20% 50%, rgba(74,111,220,.2) 0%, transparent 70%),
    radial-gradient(ellipse 600px 500px at 80% 30%, rgba(127,179,245,.14) 0%, transparent 70%),
    radial-gradient(ellipse 400px 400px at 60% 80%, rgba(26,122,53,.1) 0%, transparent 60%);
  pointer-events: none;
}
.lp-hero::after {
  content: '';
  position: absolute; inset: 0;
  background-image: radial-gradient(circle, rgba(255,255,255,.05) 1px, transparent 1px);
  background-size: 48px 48px;
  pointer-events: none;
}
.lp-hero-inner {
  position: relative; z-index: 1;
  max-width: 800px; margin: 0 auto;
}

/* Badge */
.lp-badge {
  display: inline-flex; align-items: center; gap: 7px;
  background: rgba(127,179,245,.15);
  border: 1px solid rgba(127,179,245,.28);
  border-radius: 20px; padding: 6px 16px;
  font-size: 11px; font-weight: 700; color: #7fb3f5;
  text-transform: uppercase; letter-spacing: .1em;
  margin-bottom: 24px;
}

/* Headline */
.lp-h1 {
  font-size: clamp(34px, 5.5vw, 60px);
  font-weight: 800; color: #fff;
  line-height: 1.1; letter-spacing: -.03em;
  margin: 0 0 20px;
}
.lp-h1 em { font-style: normal; color: #7fb3f5; }

/* Subheadline */
.lp-sub {
  font-size: clamp(14px, 1.8vw, 17px);
  color: rgba(255,255,255,.62);
  max-width: 520px; margin: 0 auto 36px;
  line-height: 1.7;
}

/* Search bar */
.lp-search-wrap {
  display: flex; max-width: 560px; margin: 0 auto 32px;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 14px; overflow: hidden;
  box-shadow: 0 8px 32px rgba(0,0,0,.3);
}
.lp-search-wrap input {
  flex: 1; background: transparent; border: none; outline: none;
  color: #fff; font-size: 15px; padding: 16px 20px;
  font-family: inherit; min-width: 0;
}
.lp-search-wrap input::placeholder { color: rgba(255,255,255,.4); }
.lp-search-wrap button {
  background: #4a6fdc; color: #fff; border: none;
  padding: 16px 26px; font-size: 15px; font-weight: 700;
  cursor: pointer; white-space: nowrap; transition: background .15s;
  flex-shrink: 0;
}
.lp-search-wrap button:hover { background: #3a5fcb; }

/* CTA buttons row */
.lp-cta-row {
  display: flex; gap: 14px; justify-content: center;
  flex-wrap: wrap; margin-bottom: 52px;
}
.lp-btn-primary {
  display: inline-flex; align-items: center; gap: 8px;
  background: #4a6fdc; color: #fff !important;
  padding: 14px 28px; border-radius: 12px;
  font-size: 14px; font-weight: 700; text-decoration: none !important;
  transition: all .18s; box-shadow: 0 4px 20px rgba(74,111,220,.4);
}
.lp-btn-primary:hover {
  background: #3a5fcb; transform: translateY(-1px);
  box-shadow: 0 8px 28px rgba(74,111,220,.5);
}
.lp-btn-ghost {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(255,255,255,.09); color: rgba(255,255,255,.9) !important;
  border: 1px solid rgba(255,255,255,.2);
  padding: 14px 28px; border-radius: 12px;
  font-size: 14px; font-weight: 700; text-decoration: none !important;
  transition: all .18s;
}
.lp-btn-ghost:hover { background: rgba(255,255,255,.16); color: #fff !important; }

/* Stats bar */
.lp-stats-bar {
  display: flex; justify-content: center;
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 16px; overflow: hidden;
  max-width: 560px; margin: 0 auto;
}
.lp-stat {
  flex: 1; padding: 20px 12px; text-align: center;
  border-right: 1px solid rgba(255,255,255,.08);
}
.lp-stat:last-child { border-right: none; }
.lp-stat-num { font-size: 24px; font-weight: 800; color: #fff; line-height: 1; }
.lp-stat-lbl { font-size: 10px; color: rgba(255,255,255,.45); margin-top: 5px; text-transform: uppercase; letter-spacing: .08em; }

/* Scroll indicator */
.lp-scroll { margin-top: 44px; animation: lp-bounce 2s ease-in-out infinite; }
.lp-scroll i { color: rgba(255,255,255,.28); font-size: 20px; }
@keyframes lp-bounce { 0%,100%{transform:translateY(0)} 50%{transform:translateY(8px)} }

/* ── Sections ─────────────────────────────────── */
.lp-section { padding: 80px 24px; background: #f4f5f9; }
.lp-section-white { padding: 80px 24px; background: #fff; }
.lp-section-wrap { max-width: 1200px; margin: 0 auto; }

.lp-section-head { text-align: center; margin-bottom: 48px; }
.lp-section-label {
  display: inline-block; font-size: 11px; font-weight: 700;
  text-transform: uppercase; letter-spacing: .12em; color: #4a6fdc;
  margin-bottom: 10px;
}
.lp-section-title {
  font-size: clamp(22px, 3.5vw, 34px); font-weight: 800;
  color: #1a1e2e; line-height: 1.2; margin: 0 0 12px;
}
.lp-section-sub {
  font-size: 15px; color: #6b7494;
  max-width: 520px; margin: 0 auto; line-height: 1.7;
}

/* ── Feature cards ──────────────────────────── */
.lp-features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px,1fr));
  gap: 22px;
}
.lp-feature-card {
  background: #fff; border-radius: 16px;
  padding: 28px 24px; border: 1px solid #e8ecf5;
  transition: all .2s; position: relative; overflow: hidden;
}
.lp-feature-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: var(--fc-accent, #4a6fdc);
}
.lp-feature-card:hover { transform: translateY(-4px); box-shadow: 0 12px 36px rgba(0,0,0,.09); }
.lp-feature-icon {
  width: 50px; height: 50px; border-radius: 13px;
  display: flex; align-items: center; justify-content: center;
  font-size: 20px; margin-bottom: 16px;
}
.lp-feature-title { font-size: 16px; font-weight: 700; color: #1a1e2e; margin: 0 0 8px; }
.lp-feature-text  { font-size: 13px; color: #6b7494; line-height: 1.7; margin: 0; }

/* ── Category grid ──────────────────────────── */
.lp-cats {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px,1fr));
  gap: 16px;
}
.lp-cat-card {
  background: #fff; border-radius: 14px;
  border: 1.5px solid #e8ecf5; padding: 24px 16px;
  text-align: center; text-decoration: none !important;
  transition: all .2s; display: block; cursor: pointer;
}
.lp-cat-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0,0,0,.1);
  border-color: #4a6fdc;
}
.lp-cat-icon {
  width: 54px; height: 54px; border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  font-size: 22px; color: #fff; margin: 0 auto 12px;
}
.lp-cat-name { font-size: 13px; font-weight: 700; color: #1a1e2e; margin: 0 0 4px; }
.lp-cat-cnt  { font-size: 11px; color: #9aa3b8; }

/* ── Featured books ─────────────────────────── */
.lp-books {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(195px,1fr));
  gap: 20px;
}
.lp-book {
  background: #fff; border-radius: 14px;
  border: 1px solid #e8ecf5; overflow: hidden;
  cursor: pointer; transition: all .2s;
  display: flex; flex-direction: column;
}
.lp-book:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0,0,0,.11);
  border-color: transparent;
}
.lp-book-thumb {
  position: relative; height: 200px; overflow: hidden;
  background: linear-gradient(135deg,#e8ecf5,#f4f5f9);
  display: flex; align-items: center; justify-content: center;
}
.lp-book-thumb img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .3s;
}
.lp-book-thumb .lp-no-img {
  font-size: 48px; color: #c8d0e0; pointer-events: none;
}
.lp-book:hover .lp-book-thumb img { transform: scale(1.06); }
.lp-book-price {
  position: absolute; top: 10px; right: 10px;
  background: #1d2b4f; color: #fff;
  font-size: 11px; font-weight: 800;
  padding: 5px 11px; border-radius: 20px;
}
.lp-book-body {
  padding: 14px 16px; flex: 1;
  display: flex; flex-direction: column;
}
.lp-book-title {
  font-size: 13px; font-weight: 700; color: #1a1e2e;
  margin: 0 0 4px; line-height: 1.4;
  display: -webkit-box; -webkit-line-clamp: 2;
  -webkit-box-orient: vertical; overflow: hidden;
}
.lp-book-author { font-size: 11px; color: #9aa3b8; margin: 0 0 12px; }
.lp-book-btn {
  display: block; background: #f0f3fb; color: #1d2b4f;
  border: none; border-radius: 8px; padding: 9px;
  font-size: 12px; font-weight: 700; text-align: center;
  cursor: pointer; transition: all .15s; margin-top: auto; width: 100%;
}
.lp-book-btn:hover { background: #1d2b4f; color: #fff; }

/* ── How it works ───────────────────────────── */
.lp-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px,1fr));
  gap: 36px;
}
.lp-step { text-align: center; }
.lp-step-num {
  width: 60px; height: 60px; border-radius: 50%;
  background: linear-gradient(135deg, #1d2b4f, #3a5fcb);
  color: #fff; font-size: 22px; font-weight: 800;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 18px;
  box-shadow: 0 6px 20px rgba(29,43,79,.3);
}
.lp-step-title { font-size: 16px; font-weight: 700; color: #1a1e2e; margin: 0 0 8px; }
.lp-step-text  { font-size: 13px; color: #6b7494; line-height: 1.7; margin: 0; }

/* ── Testimonials ───────────────────────────── */
.lp-testimonials {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px,1fr));
  gap: 20px;
}
.lp-testi {
  background: #fff; border-radius: 16px;
  padding: 26px 22px; border: 1px solid #e8ecf5;
}
.lp-testi-stars { color: #f0c040; font-size: 14px; margin-bottom: 12px; letter-spacing: 2px; }
.lp-testi-text  { font-size: 13px; color: #6b7494; line-height: 1.75; margin: 0 0 18px; font-style: italic; }
.lp-testi-name  { font-size: 13px; font-weight: 700; color: #1a1e2e; }
.lp-testi-role  { font-size: 11px; color: #9aa3b8; }
.lp-testi-avatar {
  width: 42px; height: 42px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 17px; font-weight: 800; color: #fff; flex-shrink: 0;
}

/* ── CTA banner ─────────────────────────────── */
.lp-cta-banner {
  background: linear-gradient(135deg, #1d2b4f, #2a4080);
  border-radius: 24px; padding: 70px 32px;
  text-align: center; position: relative; overflow: hidden;
}
.lp-cta-banner::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse 700px 400px at 80% 50%, rgba(74,111,220,.3) 0%, transparent 70%);
  pointer-events: none;
}
.lp-cta-inner { position: relative; z-index: 1; }
.lp-cta-banner h2 { font-size: clamp(22px,3.5vw,34px); font-weight: 800; color: #fff; margin: 0 0 12px; }
.lp-cta-banner p  { font-size: 15px; color: rgba(255,255,255,.65); margin: 0 0 30px; }

/* Book detail panel (reused from store) */
#book-panel {
  position: fixed; top: 0; right: -460px; width: 440px;
  height: 100vh; background: #fff; z-index: 900;
  box-shadow: -4px 0 32px rgba(0,0,0,.15);
  transition: right .32s cubic-bezier(.4,0,.2,1);
  display: flex; flex-direction: column;
  overflow: hidden;
}
#book-overlay {
  display: none; position: fixed; inset: 0;
  background: rgba(0,0,0,.4); z-index: 899; backdrop-filter: blur(2px);
}
.panel-top {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 20px; border-bottom: 1px solid #e8ecf5;
  font-size: 14px; font-weight: 700; color: #1d2b4f; flex-shrink: 0;
}
.panel-close-btn {
  background: #f0f3fb; border: none; border-radius: 8px;
  width: 32px; height: 32px; font-size: 18px; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  color: #1d2b4f; line-height: 1; transition: background .15s;
}
.panel-close-btn:hover { background: #e0e8fd; }
.panel-body { flex: 1; overflow-y: auto; padding: 20px; }

/* ── Responsive ─────────────────────────────── */
@media (max-width: 768px) {
  .lp-hero   { padding: 90px 16px 60px; }
  .lp-stats-bar { flex-wrap: wrap; }
  .lp-stat   { min-width: 50%; }
  .lp-section, .lp-section-white { padding: 52px 16px; }
  .lp-cta-banner { padding: 44px 20px; border-radius: 16px; }
  .lp-search-wrap { flex-direction: column; border-radius: 14px; }
  .lp-search-wrap input { padding: 14px 16px; }
  .lp-search-wrap button { border-radius: 0; padding: 14px; }
  #book-panel { width: 100%; right: -100%; }
}
@media (max-width: 480px) {
  .lp-h1 { font-size: 28px; }
  .lp-stats-bar { border-radius: 12px; }
  .lp-stat-num { font-size: 20px; }
}
