/* Smartlib 2026 — premium, responsive visual system */
:root {
  --primary: #2457e6;
  --primary-dark: #173fb7;
  --primary-light: #5b84ff;
  --ink: #0b1220;
  --muted: #64748b;
  --surface: rgba(255, 255, 255, .92);
  --line: rgba(148, 163, 184, .22);
  --premium-shadow: 0 18px 50px rgba(15, 23, 42, .10);
  --premium-shadow-hover: 0 24px 65px rgba(25, 55, 130, .16);
}

html { background: #f5f8ff; }
body {
  background:
    radial-gradient(circle at 12% 4%, rgba(91,132,255,.12), transparent 31rem),
    radial-gradient(circle at 92% 28%, rgba(56,189,248,.09), transparent 28rem),
    linear-gradient(180deg, #f8fbff 0, #f7f9fd 48%, #fff 100%);
  color: var(--ink);
}

.container { width: min(100% - 40px, 1240px); }

.header {
  height: 76px;
  border-bottom: 1px solid rgba(255,255,255,.7);
  background: rgba(255,255,255,.84);
  box-shadow: 0 8px 34px rgba(15,23,42,.06);
  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
}
.header .container { height: 100%; }
.logo { gap: 12px; color: var(--ink); }
.logo img { width: 42px !important; height: 42px !important; padding: 5px; background:#fff; border-radius:13px !important; box-shadow:0 8px 22px rgba(36,87,230,.15); }
.logo span { font-size: 1.05rem; letter-spacing: -.02em; }
.nav { padding: 5px; border: 1px solid var(--line); border-radius: 14px; background: rgba(248,250,252,.72); }
.nav-link { padding: 9px 13px; border-radius: 10px; font-size:.9rem; }
.nav-link:hover { color: var(--primary); background:#fff; }
.nav-link.active { color:#fff; background:linear-gradient(135deg,var(--primary),#4f7cff); box-shadow:0 8px 18px rgba(36,87,230,.22); }
.nav-link.active::after { display:none; }

.hero {
  position: relative;
  isolation: isolate;
  min-height: 430px;
  margin: 98px auto 28px !important;
  width: min(calc(100% - 40px), 1240px);
  padding: clamp(70px, 9vw, 110px) 24px !important;
  border-radius: 34px !important;
  background:
    radial-gradient(circle at 78% 15%, rgba(255,255,255,.22), transparent 16rem),
    radial-gradient(circle at 20% 110%, rgba(56,189,248,.35), transparent 22rem),
    linear-gradient(135deg, #102b77 0%, #2457e6 52%, #5b84ff 100%) !important;
  box-shadow: 0 34px 80px rgba(31,71,175,.26);
  overflow: hidden;
}
.hero::before,.hero::after { content:""; position:absolute; z-index:-1; border:1px solid rgba(255,255,255,.16); border-radius:50%; }
.hero::before { width:340px;height:340px;right:-75px;top:-120px; }
.hero::after { width:220px;height:220px;left:-70px;bottom:-115px; }
.hero h1 { max-width:820px; margin:0 auto 14px; color:#fff; font-size:clamp(2.15rem,5vw,4.2rem) !important; line-height:1.02; letter-spacing:-.055em; }
.hero p { max-width:700px !important; margin:0 auto 30px !important; font-size:clamp(.98rem,1.6vw,1.15rem) !important; color:rgba(255,255,255,.84); }
.hero .search-bar { max-width:720px !important; padding:7px; border:1px solid rgba(255,255,255,.35); border-radius:18px; background:rgba(255,255,255,.96); box-shadow:0 20px 50px rgba(7,19,57,.25); }
.hero .search-bar input { min-height:52px; padding:0 18px; font-size:1rem; background:transparent; }
.hero .search-bar button { min-height:52px; padding:0 24px; border-radius:13px; background:linear-gradient(135deg,var(--primary),#4f7cff); }

.banner-slider { width:min(calc(100% - 40px),1240px); height:auto !important; min-height:0 !important; aspect-ratio:auto !important; margin:0 auto 20px !important; border-radius:24px; box-shadow:var(--premium-shadow); }
.banner-slide img { display:block; width:100%; height:clamp(200px,22vw,360px) !important; max-height:360px; object-fit:cover; }
.featured-section { padding-top:42px !important; padding-bottom:72px !important; }
.section-title { display:flex; align-items:center; gap:10px; margin:46px 0 22px !important; font-size:clamp(1.45rem,3vw,2rem); letter-spacing:-.035em; }
.section-title::after { content:""; height:1px; flex:1; margin-left:12px; background:linear-gradient(90deg,var(--line),transparent); }

.grid { gap:22px; }
.grid-4 { grid-template-columns:repeat(4,minmax(0,1fr)); }
.news-grid { grid-template-columns:repeat(3,minmax(0,1fr)); gap:22px !important; }
.card,.news-card {
  border:1px solid rgba(226,232,240,.9) !important;
  border-radius:20px !important;
  background:var(--surface) !important;
  box-shadow:0 7px 24px rgba(15,23,42,.07) !important;
  overflow:hidden;
  transform:translateZ(0);
  transition:transform .25s ease,box-shadow .25s ease,border-color .25s ease !important;
}
.card:hover,.news-card:hover { transform:translateY(-7px) !important; border-color:rgba(36,87,230,.3) !important; box-shadow:var(--premium-shadow-hover) !important; }
.book-card .card-image { aspect-ratio:3/4; height:auto !important; background:linear-gradient(135deg,#eef2ff,#f8fafc); }
.card-body,.news-card .card-body { padding:18px !important; }
.card-title { font-size:.98rem; line-height:1.42; letter-spacing:-.015em; }
.card-subtitle { margin-top:8px; color:var(--muted); }
.availability { margin-top:14px; border-radius:999px !important; padding:6px 10px !important; font-size:.74rem !important; }

.btn { border-radius:12px !important; min-height:44px; padding:10px 18px; font-weight:650; }
.btn-primary { border:0; background:linear-gradient(135deg,var(--primary),#4f7cff); box-shadow:0 8px 20px rgba(36,87,230,.18); }
.footer { border-top:1px solid var(--line); background:#0b1220 !important; color:rgba(255,255,255,.72); }
.footer-bottom { padding:28px 0 !important; color:rgba(255,255,255,.68); }

@media (max-width: 1024px) {
  .grid-4 { grid-template-columns:repeat(3,minmax(0,1fr)); }
  .nav-link { padding:8px 9px; font-size:.82rem; }
}
@media (max-width: 768px) {
  .container { width:min(100% - 24px,100%); }
  .header { height:64px; }
  .logo img { width:38px !important;height:38px !important; }
  .hero { width:calc(100% - 24px); min-height:390px; margin-top:78px !important; border-radius:24px !important; padding:65px 18px !important; }
  .hero h1 { font-size:clamp(2rem,10vw,3rem) !important; }
  .hero .search-bar { display:grid; grid-template-columns:1fr; padding:6px; }
  .hero .search-bar button { width:100%; }
  .banner-slider { width:calc(100% - 24px); border-radius:18px; }
  .news-grid { grid-template-columns:1fr; }
  .grid-4 { grid-template-columns:repeat(2,minmax(0,1fr)); gap:14px; }
  .card-body { padding:14px !important; }
  .nav { border:0; border-radius:0; padding:18px !important; background:rgba(255,255,255,.98) !important; backdrop-filter:blur(18px); }
}
@media (max-width: 430px) {
  .grid-4 { grid-template-columns:1fr; }
  .book-card { display:grid; grid-template-columns:116px 1fr; min-height:170px; }
  .book-card .card-image { width:116px; height:100% !important; aspect-ratio:auto; }
  .section-title::after { display:none; }
}
@media (prefers-reduced-motion:reduce) {
  *,*::before,*::after { scroll-behavior:auto !important; transition-duration:.01ms !important; animation-duration:.01ms !important; }
}
