/* ==========================================================================
   Modern Bookstore — yalnızca bu landing page'e ait stiller
   ========================================================================== */
:root {
    --brand: #4f46e5;
    --brand-2: color-mix(in srgb, var(--brand) 70%, #ec4899);
    --ink: #0f172a;
    --ink-2: #334155;
    --muted: #64748b;
    --bg: #ffffff;
    --bg-alt: #f6f7fb;
    --surface: #ffffff;
    --line: #e7e9f1;
    --radius: 18px;
    --shadow: 0 10px 30px rgba(15, 23, 42, .08);
    --shadow-lg: 0 30px 60px rgba(15, 23, 42, .14);
    --font: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
[data-theme="dark"] { --ink: #f1f5f9; --ink-2: #cbd5e1; --muted: #94a3b8; --bg: #0b1020; --bg-alt: #111831; --surface: #151d38; --line: #243056; --shadow: 0 10px 30px rgba(0, 0, 0, .35); }
[data-theme="light"] { --bg-alt: #fbfbfd; --line: #eef0f5; }
[data-theme="sepia"] { --ink: #3b2a1a; --ink-2: #5b4330; --muted: #8a7058; --bg: #fbf6ee; --bg-alt: #f4ead9; --surface: #fffaf2; --line: #eadcc6; }
[data-theme="forest"] { --ink: #0f2a1d; --ink-2: #24442f; --muted: #5d7a66; --bg: #f6faf6; --bg-alt: #e9f3ea; --line: #d5e6d7; }
[data-theme="ocean"] { --ink: #0b2530; --ink-2: #1f4452; --muted: #5b7c88; --bg: #f5fbfd; --bg-alt: #e6f4f8; --line: #d2e8ef; }

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
body { margin: 0; font-family: var(--font); color: var(--ink); background: var(--bg); line-height: 1.6; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { line-height: 1.15; letter-spacing: -.02em; margin: 0; }
.container { width: min(1200px, 100% - 2.5rem); margin-inline: auto; }
.skip-link { position: absolute; left: -999px; top: 0; background: var(--ink); color: var(--bg); padding: .5rem 1rem; z-index: 100; }
.skip-link:focus { left: 1rem; }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: .5rem; justify-content: center; border-radius: 999px; padding: .7rem 1.25rem; font-weight: 600; font-size: .95rem; text-decoration: none; border: 1.5px solid transparent; cursor: pointer; transition: transform .2s, box-shadow .2s, background .2s; font-family: inherit; }
.btn:hover { transform: translateY(-2px); }
.btn:focus-visible { outline: 3px solid color-mix(in srgb, var(--brand) 40%, transparent); outline-offset: 2px; }
.btn-lg { padding: .95rem 1.6rem; font-size: 1rem; }
.btn-sm { padding: .45rem .9rem; font-size: .85rem; }
.btn-primary { background: linear-gradient(135deg, var(--brand), var(--brand-2)); color: #fff; box-shadow: 0 10px 25px color-mix(in srgb, var(--brand) 35%, transparent); }
.btn-ghost { background: transparent; border-color: var(--line); color: var(--ink); }
.btn-ghost:hover { border-color: var(--brand); color: var(--brand); }
.btn-dark { background: var(--ink); color: var(--bg); }
.btn-light { background: #fff; color: #111827; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--bg) 82%, transparent); backdrop-filter: saturate(160%) blur(14px); border-bottom: 1px solid transparent; transition: border-color .3s, box-shadow .3s; }
.site-header.is-scrolled { border-color: var(--line); box-shadow: 0 6px 20px rgba(15, 23, 42, .05); }
.header-inner { display: flex; align-items: center; gap: 2rem; height: 76px; }
.brand { display: flex; align-items: center; gap: .6rem; text-decoration: none; font-weight: 800; font-size: 1.15rem; }
.brand-mark { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; background: linear-gradient(135deg, var(--brand), var(--brand-2)); color: #fff; }
.brand-mark svg, .category-icon svg, .benefit-icon svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.main-nav { display: flex; gap: 1.75rem; margin-left: auto; }
.main-nav a { text-decoration: none; font-weight: 500; color: var(--ink-2); position: relative; }
.main-nav a::after { content: ""; position: absolute; left: 0; bottom: -6px; width: 0; height: 2px; background: var(--brand); transition: width .25s; }
.main-nav a:hover::after { width: 100%; }
.nav-toggle { display: none; background: none; border: 0; width: 42px; height: 42px; cursor: pointer; padding: 10px; }
.nav-toggle span { display: block; height: 2px; background: var(--ink); margin: 5px 0; border-radius: 2px; transition: transform .25s, opacity .25s; }

/* Hero */
.hero { position: relative; overflow: hidden; padding: clamp(3rem, 7vw, 6rem) 0 clamp(3rem, 6vw, 5rem); }
.hero-bg { position: absolute; inset: 0; background: radial-gradient(800px 400px at 85% 10%, color-mix(in srgb, var(--brand) 18%, transparent), transparent 70%), radial-gradient(600px 400px at 0% 90%, color-mix(in srgb, var(--brand-2) 14%, transparent), transparent 70%); pointer-events: none; }
.hero-grid { position: relative; display: grid; grid-template-columns: 1.05fr .95fr; gap: 3rem; align-items: center; }
.eyebrow { display: inline-flex; align-items: center; gap: .6rem; font-size: .85rem; font-weight: 600; color: var(--brand); background: color-mix(in srgb, var(--brand) 10%, var(--surface)); border: 1px solid color-mix(in srgb, var(--brand) 22%, transparent); padding: .4rem .9rem; border-radius: 999px; }
.pulse { width: 8px; height: 8px; border-radius: 50%; background: var(--brand); box-shadow: 0 0 0 0 var(--brand); animation: pulse 2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 10px transparent; } 100% { box-shadow: 0 0 0 0 transparent; } }
.hero h1 { font-size: clamp(2.4rem, 5.4vw, 4.2rem); font-weight: 800; margin: 1.25rem 0 1rem; }
.hero h1 { background: linear-gradient(120deg, var(--ink) 30%, var(--brand) 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 560px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; margin: 2rem 0 2.5rem; }
.hero-stats { display: flex; gap: 2.5rem; margin: 0; }
.hero-stats div { display: flex; flex-direction: column-reverse; }
.hero-stats dt { color: var(--muted); font-size: .85rem; }
.hero-stats dd { margin: 0; font-size: 1.5rem; font-weight: 800; }
.hero-visual { position: relative; min-height: 460px; }
.hero-illustration { width: 100%; height: auto; filter: drop-shadow(0 30px 40px rgba(15, 23, 42, .12)); }
.floating-books { position: absolute; inset: 0; }
.float-book { position: absolute; width: 150px; aspect-ratio: 2 / 3; border-radius: 6px 14px 14px 6px; padding: 1rem .9rem; color: #fff; display: flex; flex-direction: column; justify-content: space-between; background: linear-gradient(155deg, color-mix(in srgb, var(--cover) 80%, #fff), var(--cover) 45%, color-mix(in srgb, var(--cover) 70%, #000)); box-shadow: var(--shadow-lg), inset 6px 0 0 rgba(0, 0, 0, .18); animation: float 6s ease-in-out infinite; }
.float-book__title { font-weight: 800; font-size: .95rem; line-height: 1.2; }
.float-book__author { font-size: .72rem; opacity: .85; }
.float-book--1 { top: 6%; left: 8%; transform: rotate(-8deg); }
.float-book--2 { top: 28%; right: 4%; transform: rotate(6deg); animation-delay: -2s; width: 170px; }
.float-book--3 { bottom: 4%; left: 30%; transform: rotate(-2deg); animation-delay: -4s; }
@keyframes float { 0%, 100% { translate: 0 0; } 50% { translate: 0 -14px; } }
.hero-badge { position: absolute; top: 0; right: 18%; width: 92px; height: 92px; border-radius: 50%; background: var(--ink); color: var(--bg); display: grid; place-content: center; text-align: center; box-shadow: var(--shadow-lg); transform: rotate(12deg); }
.hero-badge strong { font-size: 1.5rem; line-height: 1; }
.hero-badge span { font-size: .75rem; }

/* Benefits */
.benefits { padding-bottom: 2rem; }
.benefits-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.benefit { display: flex; gap: 1rem; align-items: flex-start; padding: 1.25rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.benefit h3 { font-size: 1rem; margin-bottom: .2rem; }
.benefit p { margin: 0; font-size: .9rem; color: var(--muted); }
.benefit-icon { flex: none; width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; color: var(--brand); background: color-mix(in srgb, var(--brand) 10%, var(--surface)); }

/* Sections */
.section { padding: clamp(3.5rem, 7vw, 6rem) 0; }
.section-alt { background: var(--bg-alt); }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 2.75rem; }
.section-head h2 { font-size: clamp(1.8rem, 3.5vw, 2.6rem); font-weight: 800; }
.section-head p { color: var(--muted); margin: .6rem 0 0; }
.section-head--row { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; text-align: left; max-width: none; gap: 1.5rem; }

/* Categories */
.category-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 1rem; }
.category-card { display: flex; flex-direction: column; align-items: flex-start; gap: .5rem; padding: 1.4rem 1.2rem; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); text-decoration: none; transition: transform .25s, box-shadow .25s, border-color .25s; }
.category-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: color-mix(in srgb, var(--brand) 35%, var(--line)); }
.category-icon { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; color: #fff; background: linear-gradient(135deg, var(--brand), var(--brand-2)); margin-bottom: .4rem; }
.category-name { font-weight: 700; }
.category-count { font-size: .82rem; color: var(--muted); }

/* Filter tabs */
.filter-tabs { display: flex; flex-wrap: wrap; gap: .4rem; }
.filter-tab { border: 1px solid var(--line); background: var(--surface); color: var(--ink-2); padding: .45rem .95rem; border-radius: 999px; font-family: inherit; font-size: .85rem; font-weight: 600; cursor: pointer; transition: all .2s; }
.filter-tab:hover { border-color: var(--brand); color: var(--brand); }
.filter-tab.is-active { background: var(--ink); color: var(--bg); border-color: var(--ink); }

/* Books */
.book-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }
.book-card { background: var(--surface); border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); display: flex; flex-direction: column; transition: transform .3s, box-shadow .3s; }
.book-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.book-card[hidden] { display: none; }
.book-cover { position: relative; aspect-ratio: 4 / 3.4; padding: 1.5rem; display: flex; flex-direction: column; justify-content: flex-end; color: #fff; background: radial-gradient(circle at 80% 10%, rgba(255, 255, 255, .28), transparent 40%), linear-gradient(150deg, color-mix(in srgb, var(--cover) 75%, #fff), var(--cover) 50%, color-mix(in srgb, var(--cover) 65%, #000)); overflow: hidden; }
.book-cover::before { content: ""; position: absolute; left: 14px; top: 0; bottom: 0; width: 6px; background: rgba(0, 0, 0, .18); }
.book-cover__title { font-size: 1.25rem; font-weight: 800; line-height: 1.15; position: relative; }
.book-cover__author { font-size: .8rem; opacity: .85; position: relative; }
.book-badge { position: absolute; top: 1rem; right: 1rem; background: #fff; color: #111827; font-size: .72rem; font-weight: 700; padding: .3rem .65rem; border-radius: 999px; }
.book-body { padding: 1.15rem 1.2rem 1.25rem; display: flex; flex-direction: column; flex: 1; }
.book-category { font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; color: var(--brand); font-weight: 700; }
.book-title { font-size: 1.05rem; margin: .3rem 0 .15rem; }
.book-author { color: var(--muted); font-size: .88rem; margin: 0 0 .5rem; }
.book-footer { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: .5rem; padding-top: .75rem; }
.price strong { font-size: 1.1rem; }
.price del { display: block; font-size: .8rem; color: var(--muted); }
.rating { display: flex; align-items: center; gap: .4rem; font-size: .8rem; color: var(--muted); }
.stars { --pct: calc(var(--rating) / 5 * 100%); display: inline-block; font-size: .95rem; line-height: 1; letter-spacing: 2px; background: linear-gradient(90deg, #f59e0b var(--pct), #d1d5db var(--pct)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stars::before { content: "★★★★★"; }
.empty-filter { text-align: center; color: var(--muted); margin-top: 2rem; }

/* Campaign */
.campaign-band { position: relative; display: grid; grid-template-columns: 1.3fr 1fr; align-items: center; gap: 2rem; padding: clamp(2rem, 5vw, 3.5rem); border-radius: 28px; color: #fff; overflow: hidden; background: radial-gradient(500px 300px at 100% 0%, rgba(255, 255, 255, .18), transparent 60%), linear-gradient(135deg, var(--brand), var(--brand-2)); box-shadow: var(--shadow-lg); }
.campaign-band::after { content: ""; position: absolute; width: 380px; height: 380px; border-radius: 50%; border: 60px solid rgba(255, 255, 255, .07); right: -120px; bottom: -180px; }
.campaign-label { display: inline-block; font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; background: rgba(255, 255, 255, .18); padding: .35rem .8rem; border-radius: 999px; }
.campaign-band h2 { font-size: clamp(1.7rem, 3.4vw, 2.6rem); font-weight: 800; margin: 1rem 0 .75rem; }
.campaign-band p { opacity: .9; font-size: 1.05rem; margin: 0 0 1.75rem; max-width: 520px; }
.countdown { position: relative; z-index: 1; background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .25); border-radius: 22px; padding: 1.5rem; backdrop-filter: blur(6px); }
.countdown-label { font-size: .85rem; opacity: .85; }
.countdown-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: .6rem; margin-top: .75rem; text-align: center; }
.countdown-grid div { background: rgba(255, 255, 255, .15); border-radius: 14px; padding: .75rem .25rem; }
.countdown-grid strong { display: block; font-size: 1.9rem; font-variant-numeric: tabular-nums; }
.countdown-grid span { font-size: .72rem; opacity: .85; }
.campaign-art { position: relative; z-index: 1; display: flex; justify-content: center; gap: .9rem; }
.mini-cover { width: 96px; aspect-ratio: 2 / 3; border-radius: 4px 10px 10px 4px; background: linear-gradient(150deg, color-mix(in srgb, var(--cover) 70%, #fff), var(--cover)); box-shadow: 0 20px 35px rgba(0, 0, 0, .25), inset 5px 0 0 rgba(0, 0, 0, .18); }
.mini-cover:nth-child(2) { transform: translateY(-18px) rotate(3deg); }
.mini-cover:nth-child(3) { transform: rotate(-4deg); }

/* Testimonials */
.testimonials { max-width: 760px; margin: 0 auto; overflow: hidden; }
.testimonial-track { display: flex; transition: transform .5s cubic-bezier(.2, .8, .2, 1); }
.testimonial { flex: 0 0 100%; margin: 0; padding: 2.25rem; background: var(--surface); border-radius: 24px; border: 1px solid var(--line); text-align: center; }
.testimonial .rating { justify-content: center; }
.testimonial blockquote { font-size: clamp(1.1rem, 2.2vw, 1.35rem); font-weight: 500; margin: 1rem 0 1.5rem; color: var(--ink-2); }
.testimonial figcaption { display: inline-flex; align-items: center; gap: .75rem; text-align: left; }
.testimonial figcaption small { display: block; color: var(--muted); }
.avatar { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; color: #fff; background: linear-gradient(135deg, var(--brand), var(--brand-2)); }
.slider-controls { display: flex; align-items: center; justify-content: center; gap: 1rem; margin-top: 1.5rem; }
.slider-btn { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); background: var(--surface); color: var(--ink); cursor: pointer; font-size: 1.1rem; transition: all .2s; }
.slider-btn:hover { background: var(--ink); color: var(--bg); }
.slider-dots { display: flex; gap: .4rem; }
.slider-dots button { width: 8px; height: 8px; border-radius: 99px; border: 0; background: var(--line); cursor: pointer; transition: width .3s, background .3s; padding: 0; }
.slider-dots button.is-active { width: 26px; background: var(--brand); }

/* Footer */
.site-footer { background: #0b1020; color: #cbd5e1; padding: 4rem 0 1.5rem; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 2.5rem; }
.brand--light { color: #fff; }
.footer-about { color: #94a3b8; max-width: 380px; margin-top: 1rem; }
.site-footer h3 { color: #fff; font-size: .95rem; margin-bottom: 1rem; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .55rem; }
.site-footer ul a { color: #94a3b8; text-decoration: none; }
.site-footer ul a:hover { color: #fff; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; border-top: 1px solid #1e293b; margin-top: 3rem; padding-top: 1.5rem; font-size: .85rem; color: #64748b; }

.back-to-top { position: fixed; right: 1.25rem; bottom: 1.25rem; width: 46px; height: 46px; border-radius: 50%; border: 0; background: var(--ink); color: var(--bg); font-size: 1.1rem; cursor: pointer; opacity: 0; pointer-events: none; transform: translateY(10px); transition: all .3s; box-shadow: var(--shadow); z-index: 40; }
.back-to-top.is-visible { opacity: 1; pointer-events: auto; transform: none; }

/* Reveal animation */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.js .reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
    .js .reveal { opacity: 1; transform: none; }
}

/* Responsive */
@media (max-width: 1100px) {
    .category-grid { grid-template-columns: repeat(3, 1fr); }
    .book-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 900px) {
    .main-nav { position: fixed; inset: 76px 0 auto 0; flex-direction: column; gap: 0; background: var(--bg); border-bottom: 1px solid var(--line); padding: .5rem 1.25rem 1rem; transform: translateY(-120%); transition: transform .3s; box-shadow: var(--shadow); }
    .main-nav a { padding: .85rem 0; border-bottom: 1px solid var(--line); }
    .main-nav.is-open { transform: none; }
    .nav-toggle { display: block; margin-left: auto; }
    .header-cta { display: none; }
    .nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
    .nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
    .nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
    .hero-grid { grid-template-columns: 1fr; }
    .hero-visual { min-height: 380px; max-width: 520px; margin: 0 auto; width: 100%; }
    .benefits-grid { grid-template-columns: 1fr; }
    .campaign-band { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .footer-grid > div:first-child { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
    .category-grid { grid-template-columns: repeat(2, 1fr); }
    .book-grid { grid-template-columns: repeat(2, 1fr); gap: 1rem; }
    .book-cover { padding: 1rem; }
    .book-cover__title { font-size: 1rem; }
    .book-footer { flex-direction: column; align-items: stretch; }
    .hero-stats { gap: 1.5rem; }
    .float-book { width: 118px; }
    .float-book--2 { width: 130px; }
    .countdown-grid strong { font-size: 1.4rem; }
}
@media (max-width: 420px) {
    .book-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; }
}
