:root {
    --ink: #24324a;
    --muted: #64748b;
    --brand: #01438c;
    --cream: #fffaf0;
    --yellow: #ffd85a;
    --card: #ffffff;
    --line: #e8e5dc;
    --radius: 28px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: var(--ink);
    background: #ffffff;
    line-height: 1.7;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    display: block;
    max-width: 100%;
}

.container {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
}

/* Header */
.site-header {
    position: sticky;
    top: 0;
    z-index: 30;
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid rgba(36, 50, 74, 0.08);
}

.header-inner {
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.brand {
    display: flex;
    align-items: center;
    gap: 11px;
    font-size: 21px;
}

.site-logo {
    width: auto;
    height: 90px;
    object-fit: contain;
    position: relative;
    top:5px!important;
}

.brand-mark {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border-radius: 14px;
    background: var(--brand);
    color: #ffffff;
    font-weight: 900;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 25px;
    font-weight: 650;
}

.main-nav a:hover {
    color: var(--brand);
}

.nav-search input,
.big-search input {
    padding: 12px 16px;
    border: 1px solid var(--line);
    border-radius: 999px;
    font: inherit;
}

.nav-toggle {
    display: none;
    border: 0;
    background: none;
    font-size: 24px;
}

/* Ana sayfa hero */
.hero {
    padding: 45px 0 70px;
    background: linear-gradient(180deg, var(--cream), #ffffff);
}

.hero-card {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    overflow: hidden;
    border-radius: 36px;
    background: var(--card);
    box-shadow: 0 28px 80px rgba(36, 50, 74, 0.12);
}

.hero-media {
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: #102348;
}

.hero-media img {
    width: 100%;
    height: 100%;
    min-height: 560px;
    object-fit: contain;
    object-position: center;
}

.hero-copy {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 64px;
}

.eyebrow {
    color: var(--brand);
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 0.16em;
}

h1,
h2,
h3 {
    margin: 0 0 18px;
    line-height: 1.15;
}

h1 {
    font-size: clamp(42px, 6vw, 78px);
    letter-spacing: -0.04em;
}

.hero-copy p,
.lead {
    color: var(--muted);
    font-size: 19px;
}

.story-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 20px 0;
}

.story-meta span,
.story-card-meta span {
    padding: 7px 11px;
    border-radius: 999px;
    background: #f4f6f8;
    font-size: 13px;
    font-weight: 700;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 22px;
    border-radius: 999px;
    font-weight: 800;
}

.btn-primary {
    background: var(--brand);
    color: #ffffff;
}

.btn-light {
    background: #f2f4f7;
}

/* Genel bölümler */
.section {
    padding: 72px 0;
}

.section-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    margin-bottom: 28px;
}

.section-head h2 {
    font-size: 40px;
}

/* Masal kartları */
.story-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.story-card {
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 24px;
    background: #ffffff;
    transition: 0.25s;
}

.story-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 18px 40px rgba(36, 50, 74, 0.10);
}

.story-cover {
    aspect-ratio: 4 / 3;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: #102348;
}

.story-cover img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
}

.story-card-body {
    padding: 22px;
}

.story-card-body h2,
.story-card-body h3 {
    font-size: 24px;
}

.story-card-body p {
    margin: 0;
    color: var(--muted);
}

.story-card-meta {
    display: flex;
    gap: 8px;
    margin-bottom: 12px;
}

/* Placeholder */
.placeholder-art {
    min-height: 500px;
    display: grid;
    place-items: center;
    background:
            radial-gradient(circle at 30% 25%, #ffffff 0 8%, transparent 9%),
            linear-gradient(135deg, #ffd85a, #ff8d8d);
    color: #ffffff;
    font-size: 46px;
    font-weight: 900;
}

.placeholder-art.small {
    min-height: 100%;
    font-size: 26px;
}

/* Sayfa başlıkları */
.page-head,
.story-hero {
    padding: 70px 0;
    background: var(--cream);
}

.page-head h1 {
    font-size: 58px;
}

/* Arşiv */
.archive-layout {
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 45px;
}

.filters {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.filters h3 {
    margin: 22px 0 6px;
}

.filters a {
    color: var(--muted);
}

/* Masal detay */
.story-hero-grid {
    display: grid;
    grid-template-columns: 1fr 520px;
    align-items: center;
    gap: 60px;
}

.story-main-image {
    display: block;
    width: 100%;
    height: auto;
    max-height: 720px;
    border-radius: 32px;
    background: #102348;
    object-fit: contain;
    object-position: center;
}

.breadcrumb {
    margin-bottom: 24px;
    color: var(--muted);
    font-size: 14px;
}

.story-layout {
    display: grid;
    grid-template-columns: 80px minmax(0, 760px);
    justify-content: center;
    gap: 28px;
    padding: 60px 0 90px;
}

.story-tools {
    position: sticky;
    top: 100px;
    height: max-content;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.story-tools button {
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: #ffffff;
    font-weight: 800;
}

.story-text {
    font-family: Georgia, serif;
    font-size: 20px;
    line-height: 1.95;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
}

.story-text p {
    margin: 0 0 1.35em;
}

.audio-box,
.parent-note,
.paywall {
    margin-bottom: 35px;
    padding: 28px;
    border-radius: 22px;
    background: #f7f8fb;
}

.audio-box audio {
    width: 100%;
    margin-top: 12px;
}

.parent-note {
    margin-top: 40px;
    background: #fff7d8;
}

.paywall {
    text-align: center;
    border: 1px dashed #f59e0b;
}

/* Arama */
.big-search {
    display: flex;
    gap: 10px;
    margin-bottom: 35px;
}

.big-search input {
    flex: 1;
}

/* Boş durum */
.empty-state {
    padding: 80px 20px;
    text-align: center;
}

/* Footer */
.site-footer {
    padding: 55px 0;
    background: #202b3c;
    color: #ffffff;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 30px;
}

.footer-grid > div {
    display: flex;
    flex-direction: column;
    gap: 7px;
}

/* Gece modu */
.reading-dark {
    background: #111827;
    color: #e5e7eb;
}

.reading-dark .story-hero,
.reading-dark .page-head {
    background: #1f2937;
}

.reading-dark .story-text-wrap,
.reading-dark .story-tools button {
    background: #111827;
    color: #ffffff;
}

.reading-dark .site-header {
    background: rgba(17, 24, 39, 0.94);
}

/* Tablet */
@media (max-width: 900px) {
    .main-nav {
        position: absolute;
        top: 78px;
        right: 0;
        left: 0;
        display: none;
        flex-direction: column;
        align-items: stretch;
        padding: 20px;
        background: #ffffff;
    }

    .main-nav.open {
        display: flex;
    }

    .nav-toggle {
        display: block;
    }

    .hero-card,
    .story-hero-grid {
        grid-template-columns: 1fr;
    }

    .hero-copy {
        padding: 34px;
    }

    .hero-media img {
        height: auto;
        min-height: 0;
        object-fit: contain;
    }

    .story-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .archive-layout {
        grid-template-columns: 1fr;
    }

    .filters {
        display: none;
    }

    .story-layout {
        grid-template-columns: 1fr;
    }

    .story-tools {
        position: static;
        flex-direction: row;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

/* Mobil */
@media (max-width: 600px) {
    .site-logo {
        height: 90px;
    }

    .story-grid {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }

    .section {
        padding: 50px 0;
    }

    .hero {
        padding-top: 20px;
    }

    h1 {
        font-size: 44px;
    }

    .page-head h1 {
        font-size: 42px;
    }
}

/* =====================================================
   Ana sayfa kapak oranı - son ve öncelikli düzeltme
   ===================================================== */
.hero-card {
    grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
    align-items: center;
}

.hero-media {
    align-self: stretch;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
}

.hero-media img {
    width: 100%;
    height: auto;
    min-height: 0;
    object-fit: contain;
    object-position: center;
}

.hero-copy {
    padding: 44px 52px;
}

.hero-copy h1 {
    font-size: clamp(42px, 5vw, 66px);
    line-height: 1.12;
}

/* Kart detay butonu ve istatistikler */
.story-card-body {
    display: flex;
    flex-direction: column;
    min-height: 300px;
}

.story-card-body p {
    margin-bottom: 18px;
}

.story-card-stats {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-top: auto;
    margin-bottom: 16px;
    color: var(--muted);
    font-size: 14px;
    font-weight: 700;
}

.card-detail-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: max-content;
    padding: 10px 17px;
    border-radius: 999px;
    background: var(--brand);
    color: #ffffff;
    font-size: 14px;
    font-weight: 800;
    transition: 0.2s ease;
}

.card-detail-button:hover {
    transform: translateY(-1px);
    background: #dc3232;
}

/* Aktif filtre */
.filters a {
    position: relative;
    padding: 9px 12px;
    border-radius: 10px;
    transition: 0.2s ease;
}

.filters a:hover {
    background: #fff4ef;
    color: var(--brand);
}

.filters a.active {
    background: var(--brand);
    color: #ffffff;
    font-weight: 800;
}

.filters .filter-all {
    margin-bottom: 8px;
    border: 1px solid var(--line);
}

/* Beğeni */
.like-button,
.detail-like-button {
    border: 1px solid #fecaca;
    background: #ffffff;
    color: var(--brand);
    cursor: pointer;
}

.like-button.is-liked,
.detail-like-button.is-liked {
    background: var(--brand);
    color: #ffffff;
}

.detail-like-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 11px 18px;
    border-radius: 999px;
    font: inherit;
    font-weight: 800;
}

.stat-chip {
    white-space: nowrap;
}

/* En sevilenler */
.popular-section {
    background: #fffaf5;
}

.popular-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px 22px;
}

.popular-item {
    display: grid;
    grid-template-columns: 132px minmax(0, 1fr) 34px;
    align-items: center;
    gap: 16px;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: #ffffff;
}

.popular-thumb {
    width: 132px;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    border-radius: 12px;
    background: #102348;
}

.popular-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.popular-copy h3 {
    margin-bottom: 8px;
    font-size: 18px;
}

.popular-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    color: var(--muted);
    font-size: 13px;
}

.popular-arrow {
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: #f4f6f8;
    font-size: 20px;
    font-weight: 800;
}

/* Ücretsiz tarayıcı seslendirmesi */
.browser-narration {
    border: 1px solid var(--line);
    background: linear-gradient(135deg, #fffaf0, #ffffff);
}

.narration-note {
    margin: -8px 0 0;
    color: var(--muted);
    font-size: 14px;
}

.narration-controls {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin-top: 20px;
}

.narration-btn {
    min-height: 44px;
    padding: 11px 16px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: #ffffff;
    color: var(--ink);
    font: inherit;
    font-weight: 800;
    cursor: pointer;
}

.narration-btn-primary {
    border-color: var(--brand);
    background: var(--brand);
    color: #ffffff;
}

.narration-btn:disabled {
    cursor: not-allowed;
    opacity: 0.48;
}

.narration-speed {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: auto;
    color: var(--muted);
    font-size: 14px;
    font-weight: 700;
}

.narration-speed select {
    min-height: 44px;
    padding: 8px 34px 8px 12px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: #ffffff;
    font: inherit;
}

.narration-status {
    margin-top: 14px;
    color: var(--muted);
    font-size: 14px;
}

@media (max-width: 900px) {
    .hero-card {
        grid-template-columns: 1fr;
    }

    .hero-media {
        align-self: auto;
    }

    .hero-media img {
        width: 100%;
        height: auto;
    }

    .popular-list {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 600px) {
    .hero-copy {
        padding: 30px 24px 36px;
    }

    .hero-copy h1 {
        font-size: 42px;
    }

    .popular-item {
        grid-template-columns: 92px minmax(0, 1fr);
    }

    .popular-thumb {
        width: 92px;
    }

    .popular-arrow {
        display: none;
    }

    .narration-btn,
    .narration-speed {
        width: 100%;
    }

    .narration-speed {
        justify-content: space-between;
        margin-left: 0;
    }
}


/* =====================================================
   ANA SAYFA: GÜNÜN MASALLARI SLIDER + EN SEVİLENLER
   ===================================================== */

.home-feature-area {
    padding: 42px 0 62px;
}

.home-feature-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 330px;
    align-items: start;
    gap: 26px;
}

.daily-slider-wrap {
    min-width: 0;
}

.daily-slider {
    position: relative;
    min-width: 0;
}

.daily-slider-viewport {
    overflow: hidden;
    border-radius: 34px;
}

.daily-slider-track {
    display: flex;
    width: 100%;
    transition: transform 0.5s ease;
    will-change: transform;
}

.daily-slide {
    min-width: 100%;
    flex: 0 0 100%;
}

.daily-slide .hero-card {
    min-height: 570px;
    grid-template-columns: minmax(0, 1.04fr) minmax(0, 0.96fr);
    border-radius: 34px;
    box-shadow: 0 22px 55px rgba(36, 50, 74, 0.12);
}

.daily-slide .hero-media {
    height: 100%;
    min-height: 570px;
    background: #102348;
}

.daily-slide .hero-media img {
    width: 100%;
    height: 100%;
    min-height: 570px;
    object-fit: contain;
    object-position: center;
}

.daily-slide .hero-copy {
    padding: 42px 42px;
}

.daily-slide .hero-copy h1 {
    font-size: clamp(38px, 4.2vw, 58px);
    line-height: 1.08;
}

.daily-slide .hero-copy p {
    font-size: 17px;
    line-height: 1.75;
}

.daily-slide-topline {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    margin-bottom: 12px;
}

.daily-slide-number {
    color: var(--muted);
    font-size: 13px;
    font-weight: 800;
}

.daily-slider-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    margin-top: 18px;
}

.daily-slider-arrow {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    padding: 0;
    border: 1px solid var(--line);
    border-radius: 50%;
    background: #ffffff;
    color: var(--ink);
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
    box-shadow: 0 7px 20px rgba(36, 50, 74, 0.08);
    transition: 0.2s ease;
}

.daily-slider-arrow:hover {
    border-color: var(--brand);
    background: var(--brand);
    color: #ffffff;
}

.daily-slider-dots {
    display: flex;
    align-items: center;
    gap: 7px;
}

.daily-slider-dot {
    width: 9px;
    height: 9px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: #d6dae1;
    cursor: pointer;
    transition: 0.2s ease;
}

.daily-slider-dot.is-active {
    width: 25px;
    border-radius: 999px;
    background: var(--brand);
}

.home-popular-panel {
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 22px;
    background: #ffffff;
    box-shadow: 0 18px 45px rgba(36, 50, 74, 0.08);
}

.home-popular-head {
    padding: 21px 20px 15px;
    border-bottom: 1px solid var(--line);
}

.home-popular-head h2 {
    margin: 5px 0 0;
    font-size: 25px;
}

.home-popular-list {
    display: flex;
    flex-direction: column;
}

.home-popular-item {
    display: grid;
    grid-template-columns: 98px minmax(0, 1fr);
    align-items: center;
    gap: 13px;
    padding: 14px 16px;
    border-bottom: 1px solid #eef0f3;
    transition: background 0.2s ease;
}

.home-popular-item:last-child {
    border-bottom: 0;
}

.home-popular-item:hover {
    background: #fffaf7;
}

.home-popular-thumb {
    position: relative;
    width: 98px;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    border-radius: 10px;
    background: #102348;
}

.home-popular-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.home-popular-rank {
    position: absolute;
    top: 5px;
    left: 5px;
    width: 23px;
    height: 23px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: rgba(239, 68, 68, 0.94);
    color: #ffffff;
    font-size: 11px;
    font-weight: 900;
    box-shadow: 0 3px 9px rgba(0, 0, 0, 0.18);
}

.home-popular-copy {
    min-width: 0;
}

.home-popular-copy h3 {
    display: -webkit-box;
    overflow: hidden;
    margin: 0 0 7px;
    font-size: 15px;
    line-height: 1.35;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.home-popular-copy h3 a:hover {
    color: var(--brand);
}

.home-popular-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 5px 9px;
    color: var(--muted);
    font-size: 11px;
    font-weight: 650;
}

.home-popular-empty {
    margin: 0;
    padding: 25px 20px;
    color: var(--muted);
}

.hero-empty-state {
    min-height: 570px;
    display: grid;
    place-content: center;
    border-radius: 34px;
    background: #ffffff;
    box-shadow: 0 22px 55px rgba(36, 50, 74, 0.10);
}

/* Eski alt en-sevilen bölümü artık ana alanda olmadığı için gizli */
.popular-section {
    display: none;
}

@media (max-width: 1100px) {
    .home-feature-grid {
        grid-template-columns: minmax(0, 1fr) 290px;
        gap: 20px;
    }

    .daily-slide .hero-card {
        min-height: 520px;
    }

    .daily-slide .hero-media,
    .daily-slide .hero-media img {
        min-height: 520px;
    }

    .daily-slide .hero-copy {
        padding: 34px;
    }

    .daily-slide .hero-copy h1 {
        font-size: clamp(36px, 4.4vw, 50px);
    }

    .home-popular-item {
        grid-template-columns: 82px minmax(0, 1fr);
        padding: 12px;
    }

    .home-popular-thumb {
        width: 82px;
    }
}

@media (max-width: 900px) {
    .home-feature-grid {
        grid-template-columns: 1fr;
    }

    .daily-slide .hero-card {
        grid-template-columns: 1fr;
        min-height: 0;
    }

    .daily-slide .hero-media,
    .daily-slide .hero-media img {
        min-height: 0;
        height: auto;
    }

    .home-popular-panel {
        margin-top: 10px;
    }

    .home-popular-list {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
    }

    .home-popular-item:nth-child(odd) {
        border-right: 1px solid #eef0f3;
    }
}

@media (max-width: 600px) {
    .home-feature-area {
        padding-top: 20px;
    }

    .daily-slider-viewport {
        border-radius: 24px;
    }

    .daily-slide .hero-card {
        border-radius: 24px;
    }

    .daily-slide .hero-copy {
        padding: 29px 24px 34px;
    }

    .daily-slide .hero-copy h1 {
        font-size: 38px;
    }

    .home-popular-list {
        grid-template-columns: 1fr;
    }

    .home-popular-item:nth-child(odd) {
        border-right: 0;
    }
}


/* Kart yayın tarihi */
.story-card-stats {
    flex-wrap: wrap;
}

.story-publish-date {
    color: var(--muted);
    font-weight: 700;
}

@media (max-width: 600px) {
    .story-card-stats {
        gap: 8px 12px;
    }

    .story-publish-date {
        width: 100%;
    }
}


/* Çoklu masal türü ve kategori etiketleri */
.story-classifications {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin: 0 0 16px;
}

.classification-badge {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 5px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 800;
    line-height: 1.2;
}

.type-badge {
    background: #e8f2ff;
    color: #235b9f;
}

.category-badge {
    background: #fff1dc;
    color: #9a5a13;
}

/* Panel çoklu seçim alanları */
.multi-select-field {
    margin-bottom: 18px;
}

.multi-select-field > strong {
    display: block;
    margin-bottom: 4px;
}

.multi-select-field > small,
.field-help {
    display: block;
    margin: 0 0 10px;
    color: #6b7280;
    font-size: 13px;
}

@media (max-width: 600px) {
    .story-classifications {
        gap: 6px;
    }

    .classification-badge {
        font-size: 11px;
    }
}

/* Footer */
.site-footer {
    padding: 54px 0 46px;
    background: #202b3c;
    color: #ffffff;
}

.footer-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.5fr) minmax(180px, 0.7fr) minmax(220px, 0.8fr);
    align-items: start;
    gap: 70px;
}

.footer-brand {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.footer-logo-link {
    display: inline-flex;
    align-items: center;
    margin-bottom: 18px;
}

.footer-logo {
    display: block;
    width: 185px;
    height: auto;
    object-fit: contain;
}

.footer-brand p {
    max-width: 360px;
    margin: 0;
    color: rgba(255, 255, 255, 0.78);
    font-size: 15px;
    line-height: 1.75;
}

.footer-links {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
}

.footer-links strong {
    margin-bottom: 4px;
    font-size: 15px;
    font-weight: 900;
    letter-spacing: 0.02em;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.82);
    font-size: 15px;
    transition: 0.2s ease;
}

.footer-links a:hover {
    color: #ffffff;
    transform: translateX(3px);
}

.footer-copy {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
}

.footer-copy p {
    margin: 0;
    color: rgba(255, 255, 255, 0.72);
    font-size: 13px;
    line-height: 1.65;
}

.footer-copy p:first-child {
    color: #ffffff;
    font-weight: 700;
}

@media (max-width: 900px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 40px;
    }

    .footer-copy {
        grid-column: 1 / -1;
        padding-top: 24px;
        border-top: 1px solid rgba(255, 255, 255, 0.10);
    }
}

@media (max-width: 600px) {
    .site-footer {
        padding: 42px 0 34px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .footer-logo {
        width: 165px;
    }

    .footer-copy {
        grid-column: auto;
    }
}

/* Footer son düzenleme */
.site-footer {
    padding: 36px 0;
}

.footer-grid {
    grid-template-columns: 1.4fr 0.7fr 0.9fr;
    align-items: start;
    gap: 60px;
}

.footer-brand {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0 !important;
}

.footer-logo-link {
    width: 190px;
    height: 125px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    overflow: hidden;
    margin: 0 0 10px;
}

.footer-logo {
    width: 140px;
    height: auto;
    max-width: none;
    margin: 0;
    transform: scale(1.25);
    transform-origin: left center;
}

.footer-brand p {
    max-width: 360px;
    margin: 0 !important;
    line-height: 1.65;
}

.footer-links,
.footer-copy {
    padding-top: 8px;
}

/* Masal arşivi sayfalama */
.pagination {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    margin-top: 38px;
}

.pagination-status {
    color: var(--muted);
    font-size: 14px;
}

.pagination-links,
.pagination-numbers {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
}

.pagination a,
.pagination .is-current,
.pagination .pagination-arrow,
.pagination .pagination-ellipsis {
    min-width: 42px;
    min-height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 13px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: #ffffff;
    font-weight: 800;
    line-height: 1;
}

.pagination a {
    transition: 0.2s ease;
}

.pagination a:hover {
    border-color: var(--brand);
    color: var(--brand);
}

.pagination .is-current {
    border-color: var(--brand);
    background: var(--brand);
    color: #ffffff;
}

.pagination .pagination-arrow {
    min-width: 96px;
}

.pagination .is-disabled {
    cursor: not-allowed;
    opacity: 0.42;
}

.pagination .pagination-ellipsis {
    min-width: 26px;
    padding-right: 4px;
    padding-left: 4px;
    border-color: transparent;
    background: transparent;
}

@media (max-width: 600px) {
    .pagination-links {
        gap: 10px;
    }

    .pagination-numbers {
        width: 100%;
        order: 3;
    }

    .pagination .pagination-arrow {
        flex: 1;
    }
}

/* Masal Künyesi */
.story-identity-card {
    margin-bottom: 28px;
    padding: 28px;
    border: 1px solid var(--line);
    border-radius: 24px;
    background: #ffffff;
    box-shadow: 0 14px 38px rgba(18, 43, 70, 0.08);
}

.story-identity-head {
    margin-bottom: 20px;
}

.story-identity-head h2 {
    margin: 6px 0 0;
}

.story-identity-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0;
    margin: 0;
}

.story-identity-item {
    padding: 16px 18px;
    border-bottom: 1px solid var(--line);
}

.story-identity-item:nth-child(odd) {
    border-right: 1px solid var(--line);
}

.story-identity-item dt {
    margin-bottom: 6px;
    color: var(--muted);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.story-identity-item dd {
    margin: 0;
    color: var(--text);
    font-weight: 700;
    line-height: 1.6;
}

.story-identity-item:first-child {
    grid-column: 1 / -1;
    border-right: 0;
}

.story-identity-item:last-child,
.story-identity-item:nth-last-child(2):nth-child(odd) {
    border-bottom: 0;
}

@media (max-width: 700px) {
    .story-identity-card {
        padding: 22px 18px;
        border-radius: 18px;
    }

    .story-identity-grid {
        grid-template-columns: 1fr;
    }

    .story-identity-item,
    .story-identity-item:nth-child(odd) {
        border-right: 0;
    }

    .story-identity-item:first-child {
        grid-column: auto;
    }

    .story-identity-item:last-child {
        border-bottom: 0;
    }
}

/* Masal detay: sol 7 kolon, sağ 5 kolon */
.story-reading-grid {
    display: grid;
    grid-template-columns: minmax(0, 7fr) minmax(300px, 5fr);
    align-items: start;
    gap: 28px;
}

.story-reading-main {
    min-width: 0;
}

.story-reading-sidebar {
    min-width: 0;
}

.story-reading-sidebar .story-identity-card {
    position: sticky;
    top: 110px;
    margin: 0;
}

.story-identity-card {
    padding: 24px;
    border: 1px solid var(--line);
    border-radius: 22px;
    background: #ffffff;
    box-shadow: 0 14px 38px rgba(18, 43, 70, 0.08);
}

.story-identity-head {
    margin-bottom: 14px;
}

.story-identity-head h2 {
    margin: 5px 0 0;
    font-size: clamp(24px, 2vw, 32px);
}

.story-identity-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0;
    margin: 0;
}

.story-identity-item {
    padding: 14px 0;
    border-bottom: 1px solid var(--line);
}

.story-identity-item:first-child {
    padding-top: 4px;
}

.story-identity-item:last-child {
    padding-bottom: 0;
    border-bottom: 0;
}

.story-identity-item dt {
    margin-bottom: 5px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.story-identity-item dd {
    margin: 0;
    color: var(--text);
    font-size: 15px;
    font-weight: 700;
    line-height: 1.55;
}

.story-reading-main > .audio-box,
.story-reading-main > .paywall,
.story-reading-main > .story-text,
.story-reading-main > .parent-note {
    width: 100%;
}

@media (max-width: 1050px) {
    .story-reading-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .story-reading-sidebar {
        order: -1;
    }

    .story-reading-sidebar .story-identity-card {
        position: static;
    }

    .story-identity-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        column-gap: 24px;
    }

    .story-identity-item:nth-child(odd) {
        padding-right: 12px;
    }

    .story-identity-item:nth-child(even) {
        padding-left: 12px;
    }
}

@media (max-width: 700px) {
    .story-reading-grid {
        gap: 20px;
    }

    .story-identity-card {
        padding: 20px 18px;
        border-radius: 18px;
    }

    .story-identity-grid {
        grid-template-columns: 1fr;
    }

    .story-identity-item:nth-child(odd),
    .story-identity-item:nth-child(even) {
        padding-right: 0;
        padding-left: 0;
    }
}

/* Masal detay alanını genişlet */
.story-detail .story-layout {
    width: min(100% - 40px, 1480px);
    max-width: 1480px;
    margin-inline: auto;
    grid-template-columns: 80px minmax(0, 1fr);
    align-items: start;
    gap: 28px;
}

.story-detail .story-content-wrap {
    width: 100%;
    max-width: none;
    min-width: 0;
}

.story-detail .story-reading-grid {
    width: 100%;
    grid-template-columns: minmax(0, 7fr) minmax(360px, 5fr);
    gap: 32px;
}

.story-detail .story-reading-main,
.story-detail .story-reading-sidebar {
    width: 100%;
    max-width: none;
    min-width: 0;
}

.story-detail .audio-box,
.story-detail .story-text,
.story-detail .parent-note,
.story-detail .paywall,
.story-detail .story-identity-card {
    width: 100%;
    max-width: none;
    box-sizing: border-box;
}

@media (max-width: 1180px) {
    .story-detail .story-layout {
        width: min(100% - 32px, 1100px);
        grid-template-columns: 72px minmax(0, 1fr);
        gap: 22px;
    }

    .story-detail .story-reading-grid {
        grid-template-columns: minmax(0, 3fr) minmax(320px, 2fr);
        gap: 24px;
    }
}

@media (max-width: 980px) {
    .story-detail .story-layout {
        grid-template-columns: 1fr;
    }

    .story-detail .story-tools {
        position: static;
        display: flex;
        gap: 10px;
        margin-bottom: 4px;
    }

    .story-detail .story-reading-grid {
        grid-template-columns: 1fr;
    }

    .story-detail .story-reading-sidebar {
        order: -1;
    }
}

@media (max-width: 700px) {
    .story-detail .story-layout {
        width: min(100% - 24px, 100%);
    }
}

/* =====================================================
   MASAL KARTLARI: YAŞ GRUBU VE BEĞENİ KIRMIZI ROZET
   ===================================================== */
.story-card .story-card-meta span:first-child {
    border: 1px solid #fecaca;
    background: #ef4444;
    color: #ffffff;
}

.story-card .story-card-stats > span:last-child {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 30px;
    padding: 5px 11px;
    border: 1px solid #fecaca;
    border-radius: 999px;
    background: #ef4444;
    color: #ffffff;
    font-weight: 800;
}

.story-card .story-card-stats > span:last-child:hover {
    background: #dc2626;
}

/* Ana sayfa hero ve detay beğeni butonları */
.like-button,
.detail-like-button {
    border-color: #ef4444;
    background: #ef4444;
    color: #ffffff;
}

.like-button:hover,
.detail-like-button:hover,
.like-button.is-liked,
.detail-like-button.is-liked {
    border-color: #dc2626;
    background: #dc2626;
    color: #ffffff;
}

/* =====================================================
   MASAL DETAYI: GECE MODU TAM RENK DÜZELTMESİ
   ===================================================== */
.reading-dark {
    --ink: #f8fafc;
    --muted: #cbd5e1;
    --card: #172033;
    --line: #334155;
    background: #0f172a;
    color: #f8fafc;
}

.reading-dark .story-detail,
.reading-dark .story-layout,
.reading-dark .story-content-wrap,
.reading-dark .story-reading-main,
.reading-dark .story-reading-sidebar {
    color: #f8fafc;
}

.reading-dark .story-hero,
.reading-dark .page-head {
    background: #172033;
    color: #f8fafc;
}

.reading-dark .story-hero h1,
.reading-dark .story-hero h2,
.reading-dark .story-hero h3,
.reading-dark .story-hero .lead,
.reading-dark .story-hero .breadcrumb,
.reading-dark .story-hero .story-meta,
.reading-dark .story-hero .story-meta span {
    color: #f8fafc;
}

.reading-dark .story-hero .lead,
.reading-dark .story-hero .breadcrumb {
    color: #cbd5e1;
}

.reading-dark .story-tools button {
    border-color: #475569;
    background: #172033;
    color: #ffffff;
}

.reading-dark .story-tools button:hover {
    background: #243047;
}

.reading-dark .audio-box,
.reading-dark .browser-narration,
.reading-dark .parent-note,
.reading-dark .paywall,
.reading-dark .story-identity-card {
    border-color: #334155;
    background: #172033;
    color: #f8fafc;
    box-shadow: none;
}

.reading-dark .audio-box h2,
.reading-dark .browser-narration h2,
.reading-dark .parent-note h2,
.reading-dark .paywall h2,
.reading-dark .story-identity-card h2 {
    color: #f8fafc;
}

.reading-dark .narration-note,
.reading-dark .narration-status,
.reading-dark .narration-speed {
    color: #cbd5e1;
}

.reading-dark .narration-btn,
.reading-dark .narration-speed select {
    border-color: #475569;
    background: #243047;
    color: #ffffff;
}

.reading-dark .narration-btn-primary {
    border-color: #2563eb;
    background: #2563eb;
    color: #ffffff;
}

.reading-dark .narration-btn:disabled {
    color: #94a3b8;
    opacity: 0.72;
}

.reading-dark .story-text,
.reading-dark .story-text p,
.reading-dark .story-text h1,
.reading-dark .story-text h2,
.reading-dark .story-text h3,
.reading-dark .story-text strong,
.reading-dark .story-text em,
.reading-dark .story-text li {
    color: #f8fafc !important;
}

.reading-dark .story-identity-item {
    border-color: #334155;
}

.reading-dark .story-identity-item dt {
    color: #93c5fd;
}

.reading-dark .story-identity-item dd {
    color: #f8fafc;
}

.reading-dark .eyebrow {
    color: #60a5fa;
}

.reading-dark .parent-note {
    background: #2b2618;
}

.reading-dark .site-footer {
    background: #080d18;
}

/* Gece modunda sabit beyaz arka plan kalmaması */
.reading-dark .story-detail .audio-box,
.reading-dark .story-detail .story-identity-card,
.reading-dark .story-detail .story-text,
.reading-dark .story-detail .parent-note,
.reading-dark .story-detail .paywall {
    color: #f8fafc;
}

/* Kart rozetleri mobilde de aynı görünür */
@media (max-width: 600px) {
    .story-card .story-card-stats > span:last-child {
        min-height: 28px;
        padding: 4px 10px;
    }
}

/* Gece modu: üst masal bilgi rozetleri */
.reading-dark .story-hero .story-meta span {
    border: 1px solid #475569;
    background: #243047;
    color: #f8fafc;
}

.reading-dark .story-hero .story-meta .stat-chip {
    border-color: #475569;
    background: #243047;
    color: #f8fafc;
}

.reading-dark .story-hero .story-meta .stat-chip strong,
.reading-dark .story-hero .story-meta .stat-chip span {
    color: #f8fafc;
}

/* Yaş grubu rozeti kırmızı kalsın */
.reading-dark .story-hero .story-meta span:first-child {
    border-color: #ef4444;
    background: #ef4444;
    color: #ffffff;
}

/* Beğeni butonu gece modunda da net görünsün */
.reading-dark .detail-like-button {
    border-color: #ef4444;
    background: #ef4444;
    color: #ffffff;
}

.reading-dark .detail-like-button:hover,
.reading-dark .detail-like-button.is-liked {
    border-color: #dc2626;
    background: #dc2626;
    color: #ffffff;
}

/* Premium sesli masallar - çok yakında */
.premium-coming-soon {
    border: 1px solid #f3d28a;
    background:
            radial-gradient(circle at top right, rgba(255, 216, 90, 0.22), transparent 38%),
            linear-gradient(135deg, #fffaf0, #ffffff);
}

.premium-coming-soon h2 {
    margin-bottom: 10px;
}

.premium-coming-soon p {
    max-width: 680px;
    margin: 0;
    color: var(--muted);
}

.premium-coming-soon-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-top: 22px;
    padding-top: 18px;
    border-top: 1px solid var(--line);
}

.premium-price {
    color: var(--ink);
    font-size: 14px;
    font-weight: 800;
}

.premium-coming-soon-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 11px 20px;
    border-radius: 999px;
    background: #ef4444;
    color: #ffffff;
    font-weight: 900;
    cursor: default;
}

/* Gece modu */
.reading-dark .premium-coming-soon {
    border-color: #6b5a2d;
    background:
            radial-gradient(circle at top right, rgba(250, 204, 21, 0.12), transparent 38%),
            #172033;
}

.reading-dark .premium-coming-soon p {
    color: #cbd5e1;
}

.reading-dark .premium-coming-soon-footer {
    border-color: #334155;
}

.reading-dark .premium-price {
    color: #f8fafc;
}

@media (max-width: 600px) {
    .premium-coming-soon-footer {
        align-items: stretch;
        flex-direction: column;
    }

    .premium-coming-soon-button {
        width: 100%;
    }
}
/* Masal arşivi sol filtre menüsü */
.filters {
    align-self: start;
}

.filters .filter-all {
    display: block;
    margin-bottom: 18px;
}

.filters .filter-section {
    padding: 14px 0;
    border-top: 1px solid #e6e9ee;
}

.filters .filter-section:first-of-type {
    border-top: 0;
    padding-top: 6px;
}

.filters .filter-section h3 {
    margin: 0 0 9px;
    font-size: 18px;
    line-height: 1.25;
}

.filters .filter-link-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 5px 8px;
}

.filters .filter-link-grid a {
    display: flex;
    align-items: center;
    min-height: 34px;
    margin: 0;
    padding: 7px 9px;
    border-radius: 8px;
    font-size: 15px;
    line-height: 1.25;
    color: #52709d;
    text-decoration: none;
}

.filters .filter-link-grid a:hover {
    background: #f4f6f9;
    color: #0a4d91;
}

.filters .filter-link-grid a.active {
    background: #edf4fb;
    color: #0a4d91;
    font-weight: 700;
}

/* Yaş grubu üç öğe olduğu için daha dengeli görünür */
.filters .filter-link-grid--ages {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.filters .filter-link-grid--ages a {
    justify-content: center;
    text-align: center;
    padding-left: 5px;
    padding-right: 5px;
}

@media (max-width: 991px) {
    .filters .filter-link-grid,
    .filters .filter-link-grid--ages {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 575px) {
    .filters .filter-link-grid,
    .filters .filter-link-grid--ages {
        grid-template-columns: 1fr;
    }
}