/* OkuOku - genel site stilleri */
:root {
    --cyan: #06A3D3;
    --cyan-dark: #0786B0;
    --orange: #F7891E;
    --orange-dark: #E07510;
    --navy: #0B4FA3;
    --ink: #1F2A44;
    --muted: #64748B;
    --bg: #F6FAFD;
    --card: #FFFFFF;
    --line: #E3EBF3;
    --radius: 18px;
    --shadow: 0 6px 20px rgba(11, 79, 163, .08);
    --shadow-lg: 0 14px 34px rgba(11, 79, 163, .16);
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body {
    font-family: "Nunito", system-ui, -apple-system, "Segoe UI", sans-serif;
    color: var(--ink);
    background: var(--bg);
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
}
h1, h2, h3, .display { font-family: "Baloo 2", "Nunito", sans-serif; line-height: 1.15; margin: 0 0 .4em; color: var(--navy); }
a { color: var(--cyan-dark); text-decoration: none; }
img { max-width: 100%; display: block; }
.container { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 16px; }
.muted { color: var(--muted); }

/* ---------- Header ---------- */
.site-header {
    background: #fff;
    border-bottom: 1px solid var(--line);
    position: sticky; top: 0; z-index: 50;
}
.header-inner { display: flex; align-items: center; gap: 20px; min-height: 76px; }
.brand img { height: 64px; width: auto; }
.main-nav { display: flex; gap: 6px; margin-left: auto; flex-wrap: wrap; }
.main-nav a {
    font-family: "Baloo 2", sans-serif; font-weight: 700; font-size: 1.05rem;
    padding: 6px 14px; border-radius: 999px; color: var(--ink);
    transition: background .2s, color .2s;
}
.main-nav a:hover, .main-nav a.active { background: var(--c, var(--cyan)); color: #fff; }
.nav-toggle { display: none; margin-left: auto; background: none; border: 0; padding: 10px; cursor: pointer; }
.nav-toggle span { display: block; width: 24px; height: 3px; background: var(--navy); border-radius: 3px; margin: 4px 0; }

@media (max-width: 820px) {
    .nav-toggle { display: block; }
    .main-nav {
        display: none; position: absolute; left: 0; right: 0; top: 100%;
        background: #fff; border-bottom: 1px solid var(--line);
        flex-direction: column; padding: 8px 16px 16px; gap: 4px;
    }
    body.nav-open .main-nav { display: flex; }
    .brand img { height: 52px; }
}

/* ---------- Hero ---------- */
.hero {
    background:
        radial-gradient(circle at 12% 20%, rgba(6,163,211,.16) 0, transparent 42%),
        radial-gradient(circle at 88% 70%, rgba(247,137,30,.18) 0, transparent 40%),
        #fff;
    border-bottom: 1px solid var(--line);
}
.hero-inner { display: grid; grid-template-columns: 1.1fr .9fr; gap: 32px; align-items: center; padding: 48px 16px; }
.hero h1 { font-size: clamp(2rem, 4.5vw, 3.2rem); }
.hero h1 .o { color: var(--orange); }
.hero h1 .c { color: var(--cyan); }
.hero p.lead { font-size: 1.15rem; color: var(--muted); max-width: 34em; }
.hero-art img { width: 100%; max-width: 440px; margin-left: auto; border-radius: 28px; box-shadow: var(--shadow-lg); }
.search {
    display: flex; gap: 8px; margin-top: 22px; max-width: 480px;
    background: #fff; border: 2px solid var(--line); border-radius: 999px; padding: 6px 6px 6px 18px;
    box-shadow: var(--shadow);
}
.search input { flex: 1; border: 0; outline: 0; font: inherit; font-size: 1rem; background: transparent; min-width: 0; }
.hero-badges { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 18px; }
.chip {
    display: inline-flex; align-items: center; gap: 6px;
    background: #fff; border: 1px solid var(--line); border-radius: 999px;
    padding: 4px 12px; font-weight: 700; font-size: .9rem; color: var(--navy);
}
@media (max-width: 820px) {
    .hero-inner { grid-template-columns: 1fr; padding: 28px 16px; }
    .hero-art { display: none; }
}

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    font-family: "Baloo 2", sans-serif; font-weight: 700; font-size: 1rem;
    border: 0; border-radius: 999px; padding: 10px 22px; cursor: pointer;
    background: var(--orange); color: #fff; transition: transform .15s, background .2s;
}
.btn:hover { background: var(--orange-dark); transform: translateY(-1px); }
.btn-cyan { background: var(--cyan); }
.btn-cyan:hover { background: var(--cyan-dark); }

/* ---------- Sections ---------- */
.section { padding: 40px 0; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.section-head h2 { font-size: 1.8rem; margin: 0; }

/* ---------- Category tiles ---------- */
.cat-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
.cat-tile {
    position: relative; overflow: hidden;
    background: var(--c); color: #fff; border-radius: var(--radius);
    padding: 22px 18px 18px; min-height: 150px;
    display: flex; flex-direction: column; justify-content: flex-end;
    box-shadow: var(--shadow); transition: transform .2s, box-shadow .2s;
}
.cat-tile:hover { transform: translateY(-4px) rotate(-.5deg); box-shadow: var(--shadow-lg); }
.cat-tile::before {
    content: ""; position: absolute; right: -30px; top: -30px; width: 120px; height: 120px;
    border-radius: 50%; background: rgba(255,255,255,.18);
}
.cat-tile .num { font-family: "Baloo 2", sans-serif; font-size: 2.6rem; font-weight: 800; line-height: 1; }
.cat-tile .name { font-family: "Baloo 2", sans-serif; font-size: 1.3rem; font-weight: 700; }
.cat-tile .count { font-size: .9rem; opacity: .9; }
@media (max-width: 980px) { .cat-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 560px) { .cat-grid { grid-template-columns: repeat(2, 1fr); } .cat-tile { min-height: 120px; } }

/* ---------- Book grid ---------- */
.book-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 22px; }
.book-card {
    background: var(--card); border-radius: var(--radius); overflow: hidden;
    box-shadow: var(--shadow); color: var(--ink);
    display: flex; flex-direction: column; transition: transform .2s, box-shadow .2s;
}
.book-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.book-cover {
    position: relative; aspect-ratio: 3 / 4; background: #EAF5FB; overflow: hidden;
    perspective: 800px;
}
.book-cover img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; transform-origin: left center; }
.book-card:hover .book-cover img { transform: rotateY(-14deg); }
.book-cover .ph {
    position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; text-align: center;
    padding: 16px; font-family: "Baloo 2", sans-serif; font-size: 1.3rem; font-weight: 700; color: #fff;
    background: linear-gradient(135deg, var(--c, var(--cyan)), var(--navy));
}
.book-cover .badge {
    position: absolute; left: 10px; top: 10px;
    background: rgba(255,255,255,.95); color: var(--navy);
    font-weight: 700; font-size: .78rem; border-radius: 999px; padding: 3px 10px;
}
.book-cover .sound {
    position: absolute; right: 10px; bottom: 10px; width: 36px; height: 36px; border-radius: 50%;
    background: var(--orange); color: #fff; display: flex; align-items: center; justify-content: center;
    box-shadow: 0 4px 10px rgba(0,0,0,.2);
}
.book-body { padding: 12px 14px 16px; }
.book-body h3 { font-size: 1.12rem; margin: 0 0 2px; color: var(--ink); }
.book-body .author { font-size: .9rem; color: var(--muted); }

.empty {
    text-align: center; padding: 48px 16px; background: #fff; border-radius: var(--radius);
    border: 2px dashed var(--line); color: var(--muted);
}
.empty .big { font-size: 3rem; }

/* ---------- Category page header ---------- */
.page-hero { background: var(--c, var(--cyan)); color: #fff; }
.page-hero .container { padding-top: 34px; padding-bottom: 34px; }
.page-hero h1 { color: #fff; font-size: clamp(1.8rem, 4vw, 2.6rem); }
.page-hero p { margin: 0; opacity: .95; font-size: 1.1rem; }
.toolbar { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-bottom: 18px; }
.toolbar select, .toolbar input {
    font: inherit; padding: 8px 14px; border-radius: 999px; border: 2px solid var(--line); background: #fff;
}

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); background: #fff; margin-top: 40px; }
.footer-inner { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 22px 16px; }

/* ---------- Üyelik: başlık ---------- */
.account { display: inline-flex; align-items: center; gap: 6px; margin-left: 10px; padding-left: 12px; border-left: 2px solid var(--line); }
.main-nav .account a.acc-link { color: var(--navy); }
.main-nav .account a.acc-link:hover { background: #EAF5FB; color: var(--navy); }
.main-nav .account a.acc-out { color: var(--muted); font-size: .95rem; }
.main-nav .account a.acc-out:hover { background: #F1F5F9; color: var(--ink); }
.main-nav .account a.btn { color: #fff; background: var(--orange); }
.main-nav .account a.btn:hover { background: var(--orange-dark); }
.btn-sm { padding: 6px 16px; font-size: .95rem; }
.btn.big { font-size: 1.2rem; padding: 13px 30px; }
@media (max-width: 820px) {
    .account { margin: 8px 0 0; padding: 10px 0 0; border-left: 0; border-top: 2px solid var(--line); }
}

.flash { margin: 16px 0 0; padding: 12px 16px; border-radius: 12px; font-weight: 700; }
.flash.ok { background: #DCFCE7; color: #166534; }
.flash.err { background: #FEE2E2; color: #991B1B; }

/* ---------- Kitap kartında fiyat ---------- */
.price-tag { display: inline-block; margin-top: 8px; font-family: "Baloo 2", sans-serif; font-weight: 700; font-size: .95rem;
    color: var(--orange-dark); background: #FFF3E6; border-radius: 999px; padding: 1px 10px; }
.price-tag.free { color: #15803D; background: #DCFCE7; }
.price-tag.owned { color: var(--cyan-dark); background: #E0F4FB; }
.price-tag.expired { color: #B91C1C; background: #FEE2E2; }
/* ---------- Üyelik paketleri ---------- */
.plan-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 20px; }
.plan-card { position: relative; background: #fff; border: 2px solid var(--line); border-radius: 22px; padding: 26px 22px 22px;
    display: flex; flex-direction: column; text-align: center; box-shadow: var(--shadow); transition: transform .2s, box-shadow .2s; }
.plan-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.plan-card.best { border-color: var(--orange); box-shadow: 0 14px 34px rgba(247,137,30,.22); }
.plan-badge { position: absolute; top: -13px; left: 50%; transform: translateX(-50%); background: var(--orange); color: #fff;
    font-family: "Baloo 2", sans-serif; font-weight: 800; font-size: .85rem; padding: 3px 14px; border-radius: 999px; white-space: nowrap; }
.plan-name { font-family: "Baloo 2", sans-serif; font-weight: 800; font-size: 1.3rem; color: var(--navy); }
.plan-price { font-family: "Baloo 2", sans-serif; font-weight: 800; font-size: 2.6rem; color: var(--orange); line-height: 1.1; margin-top: 6px; }
.plan-monthly { color: var(--muted); font-weight: 700; font-size: .95rem; min-height: 1.4em; }
.plan-feat { list-style: none; padding: 0; margin: 16px 0 20px; text-align: left; display: grid; gap: 6px; font-size: .95rem; }
.plan-card .btn { margin-top: auto; }
.plans-section { background: linear-gradient(180deg, #fff, var(--bg)); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin-bottom: 40px; }
.sub-status { font-size: 1.05rem; padding: 12px 14px; border-radius: 12px; background: #F1F5F9; margin-top: 0; }
.sub-status.ok { background: #DCFCE7; color: #166534; }
.sub-status.err { background: #FEE2E2; color: #991B1B; }
.sub-panel .btn { margin-right: 6px; }

.gift { display: flex; gap: 12px; align-items: center; background: #FFF7ED; border: 2px dashed #FDBA74; border-radius: 14px;
    padding: 10px 12px; margin-bottom: 16px; color: #9A3412; }
.gift img { width: 46px; height: 60px; object-fit: cover; border-radius: 4px; flex: none; }
.access-note { font-size: .95rem; color: var(--muted); margin: -4px 0 14px; }

/* ---------- Kitap detay ---------- */
.detail { display: grid; grid-template-columns: 320px 1fr; gap: 40px; align-items: start; }
.detail-cover { border-radius: 8px 18px 18px 8px; overflow: hidden; aspect-ratio: 3 / 4; background: #EAF5FB;
    box-shadow: -10px 18px 40px rgba(11,79,163,.22); position: relative; }
.detail-cover img { width: 100%; height: 100%; object-fit: cover; }
.detail-cover .ph { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; text-align: center; padding: 20px;
    font-family: "Baloo 2", sans-serif; font-size: 1.6rem; font-weight: 700; color: #fff; background: linear-gradient(135deg, var(--c), var(--navy)); }
.detail-info h1 { font-size: clamp(1.8rem, 4vw, 2.6rem); margin-top: 10px; }
.detail-info .by { margin: -6px 0 12px; font-size: 1.1rem; }
.detail-info .desc { font-size: 1.1rem; max-width: 38em; }
.cat-badge { display: inline-block; background: var(--c); color: #fff; font-weight: 700; border-radius: 999px; padding: 3px 14px; font-size: .9rem; }
.facts { list-style: none; padding: 0; margin: 18px 0; display: flex; flex-wrap: wrap; gap: 8px; }
.facts li { background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 4px 14px; font-weight: 700; color: var(--navy); font-size: .92rem; }
.buy-box { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 22px; box-shadow: var(--shadow); max-width: 440px; }
.buy-box .price { font-family: "Baloo 2", sans-serif; font-size: 2.2rem; font-weight: 800; color: var(--orange); line-height: 1; margin-bottom: 14px; }
.buy-box .owned { color: #15803D; font-weight: 800; margin-bottom: 12px; }
.buy-box .small { font-size: .92rem; margin: 14px 0 0; }
@media (max-width: 760px) {
    .detail { grid-template-columns: 1fr; gap: 24px; }
    .detail-cover { max-width: 240px; margin: 0 auto; }
}

/* ---------- Üyelik formları ---------- */
.auth-wrap { display: flex; justify-content: center; padding: 40px 0 10px; }
.auth-card { background: #fff; border-radius: 22px; box-shadow: var(--shadow-lg); padding: 30px 28px; width: 100%; max-width: 440px; }
.auth-card h1 { font-size: 2rem; margin-bottom: 4px; }
.auth-card .sub { color: var(--muted); margin: 0 0 18px; }
.field { margin-bottom: 14px; }
.field label { display: block; font-weight: 700; margin-bottom: 4px; }
.field input[type=text], .field input[type=email], .field input[type=password] {
    width: 100%; font: inherit; font-size: 1rem; padding: 11px 14px; border: 2px solid var(--line); border-radius: 12px; background: #fff;
}
.field input:focus { outline: none; border-color: var(--cyan); box-shadow: 0 0 0 3px rgba(6,163,211,.15); }
.field .hint { font-size: .85rem; color: var(--muted); margin-top: 4px; }
.check-row { display: flex; align-items: center; gap: 8px; font-weight: 600; margin-bottom: 14px; }
.check-row input { width: 18px; height: 18px; accent-color: var(--cyan); }
.auth-card .btn { width: 100%; font-size: 1.1rem; padding: 12px; }
.auth-card .alt { text-align: center; margin: 16px 0 0; color: var(--muted); }
.form-msg { padding: 10px 14px; border-radius: 10px; font-weight: 700; margin-bottom: 14px; }
.form-msg.err { background: #FEE2E2; color: #991B1B; }
.form-msg.ok { background: #DCFCE7; color: #166534; }
.form-msg.info { background: #E0F2FE; color: #075985; word-break: break-all; }

/* ---------- Hesabım ---------- */
.tabs { display: flex; gap: 8px; margin-bottom: 18px; flex-wrap: wrap; }
.tabs a { font-family: "Baloo 2", sans-serif; font-weight: 700; padding: 6px 16px; border-radius: 999px; background: #fff; border: 1px solid var(--line); color: var(--ink); }
.tabs a.active { background: var(--navy); color: #fff; border-color: var(--navy); }
.panel { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 22px; margin-bottom: 18px; }
.panel h2 { font-size: 1.4rem; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 760px) { .two-col { grid-template-columns: 1fr; } }
table.simple { width: 100%; border-collapse: collapse; }
table.simple th, table.simple td { text-align: left; padding: 9px 8px; border-bottom: 1px solid var(--line); }
table.simple th { font-size: .82rem; color: var(--muted); text-transform: uppercase; }

/* ---------- Ödeme ---------- */
.checkout { max-width: 620px; margin: 0 auto; }
.order-line { display: flex; gap: 16px; align-items: center; }
.order-line img, .order-line .ph { width: 72px; height: 96px; object-fit: cover; border-radius: 6px; flex: none; background: #EAF5FB; }
.order-line .t { flex: 1; min-width: 0; }
.order-line .t strong { font-family: "Baloo 2", sans-serif; font-size: 1.2rem; color: var(--navy); display: block; }
.order-line .amt { font-family: "Baloo 2", sans-serif; font-size: 1.6rem; font-weight: 800; color: var(--orange); }
.notice { background: #FFF7ED; border: 1px solid #FED7AA; color: #9A3412; border-radius: 12px; padding: 14px 16px; font-weight: 600; }
.result-icon { font-size: 4rem; text-align: center; }
