/*
 * Selahattin Demirtaş Dijital Edebiyat, Sanat, Hukuk ve Düşünce Arşivi v3.0
 * Simo Bilişim Yazılım Teknolojileri Ltd. Şti.
 */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,500;0,600;0,700;1,500;1,600&family=Outfit:wght@300;400;500;600;700;800&display=swap');

:root {
    --bg-base: #09090e;
    --bg-elevated: #12131c;
    --bg-surface: rgba(20, 21, 32, 0.65);
    --bg-surface-hover: rgba(255, 255, 255, 0.05);
    --bg-input: rgba(255, 255, 255, 0.04);
    --glass-border: rgba(255, 255, 255, 0.09);
    --glass-border-strong: rgba(212, 175, 55, 0.35);

    --text-primary: #f4f3ef;
    --text-secondary: #a9acb8;
    --text-muted: #707486;

    --accent-gold: #d4af37;
    --accent-gold-soft: rgba(212, 175, 55, 0.14);
    --accent-purple: #9d4edd;
    --accent-teal: #2dd4bf;
    --accent-crimson: #e05a6d;

    --header-bg: rgba(9, 9, 14, 0.82);
    --shadow-premium: 0 14px 40px rgba(0, 0, 0, 0.45);
    --transition-smooth: all 0.28s cubic-bezier(0.4, 0, 0.2, 1);

    --font-outfit: 'Outfit', system-ui, -apple-system, sans-serif;
    --font-serif: 'Cormorant Garamond', Georgia, serif;
}

/* Fildişi / Sepya Edebiyat Okuma Teması */
[data-theme="ivory"] {
    --bg-base: #f6f1e7;
    --bg-elevated: #ede4d3;
    --bg-surface: rgba(255, 252, 245, 0.82);
    --bg-surface-hover: rgba(44, 36, 29, 0.05);
    --bg-input: rgba(44, 36, 29, 0.05);
    --glass-border: rgba(60, 46, 30, 0.14);
    --glass-border-strong: rgba(154, 107, 22, 0.45);

    --text-primary: #1f1a15;
    --text-secondary: #4e4337;
    --text-muted: #7b6c5c;

    --accent-gold: #9a6b16;
    --accent-gold-soft: rgba(154, 107, 22, 0.12);
    --accent-purple: #6b3fa0;
    --accent-teal: #0f766e;

    --header-bg: rgba(246, 241, 231, 0.88);
    --shadow-premium: 0 12px 32px rgba(45, 34, 20, 0.1);
}

*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 90px;
    font-family: var(--font-outfit);
    background-color: var(--bg-base);
    color: var(--text-primary);
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
    ::view-transition-group(*),
    ::view-transition-old(*),
    ::view-transition-new(*) {
        animation: none !important;
    }
}

body {
    overflow-x: hidden;
    background-color: var(--bg-base);
    background-image:
        radial-gradient(circle at 12% 18%, rgba(212, 175, 55, 0.07) 0%, transparent 42%),
        radial-gradient(circle at 88% 75%, rgba(157, 78, 221, 0.07) 0%, transparent 42%);
    background-attachment: fixed;
    line-height: 1.65;
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* Okuma İlerleme Çubuğu (Scroll-Driven Animation + Fallback) */
#scroll-progress {
    position: fixed;
    left: 0;
    top: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--accent-gold), var(--accent-purple), var(--accent-teal));
    transform-origin: 0 50%;
    transform: scaleX(0);
    z-index: 1200;
    pointer-events: none;
}

@media (prefers-reduced-motion: no-preference) {
    @supports ((animation-timeline: scroll())) {
        @keyframes grow-progress {
            from { transform: scaleX(0); }
            to { transform: scaleX(1); }
        }
        #scroll-progress {
            animation: grow-progress auto linear;
            animation-timeline: scroll();
        }
    }
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}
::-webkit-scrollbar-track {
    background: var(--bg-base);
}
::-webkit-scrollbar-thumb {
    background: rgba(150, 150, 165, 0.25);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--accent-gold);
}

/* Glassmorphism Card */
.glass-card {
    background: var(--bg-surface);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid var(--glass-border);
    border-radius: 18px;
    box-shadow: var(--shadow-premium);
    transition: var(--transition-smooth);
}

.glass-card:hover {
    border-color: var(--glass-border-strong);
}

/* Duyuru Bandı */
.top-marquee {
    background: rgba(0, 0, 0, 0.45);
    border-bottom: 1px solid var(--glass-border);
    padding: 8px 0;
    overflow: hidden;
    white-space: nowrap;
    position: relative;
    z-index: 100;
}
[data-theme="ivory"] .top-marquee {
    background: rgba(154, 107, 22, 0.08);
}

.marquee-content {
    display: inline-block;
    animation: marquee-anim 34s linear infinite;
    color: var(--accent-gold);
    font-weight: 500;
    font-size: 0.88rem;
    letter-spacing: 0.2px;
}

@media (prefers-reduced-motion: reduce) {
    .marquee-content {
        animation: none;
        white-space: normal;
        padding: 0 5%;
        display: block;
        text-align: center;
    }
}

@keyframes marquee-anim {
    0% { transform: translateX(100vw); }
    100% { transform: translateX(-100%); }
}

/* Üst Navigasyon Barı */
.site-header {
    padding: 14px 4%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    position: sticky;
    top: 0;
    z-index: 110;
    background: var(--header-bg);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--glass-border);
}

.logo {
    font-family: var(--font-serif);
    font-size: 1.65rem;
    font-weight: 700;
    letter-spacing: 0.4px;
    flex-shrink: 0;
}

.logo a {
    color: var(--text-primary);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.logo-sub {
    font-family: var(--font-outfit);
    font-size: 0.68rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--accent-gold);
    display: block;
    line-height: 1;
    margin-top: 2px;
}

.desktop-nav ul {
    display: flex;
    list-style: none;
    gap: 18px;
    align-items: center;
}

.desktop-nav ul li a {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition-smooth);
    font-size: 0.9rem;
    position: relative;
    padding: 6px 0;
    white-space: nowrap;
}

.desktop-nav ul li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-gold);
    transition: var(--transition-smooth);
}

.desktop-nav ul li a:hover,
.desktop-nav ul li a:focus-visible {
    color: var(--text-primary);
}

.desktop-nav ul li a:hover::after {
    width: 100%;
}

/* Header Araç Çubuğu (Arama, Dil, Tema, Mobil Menü) */
.header-tools {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.tool-btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 7px 12px;
    border-radius: 999px;
    background: var(--bg-input);
    border: 1px solid var(--glass-border);
    color: var(--text-primary);
    font-family: var(--font-outfit);
    font-size: 0.82rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition-smooth);
    text-decoration: none;
}

.tool-btn:hover {
    border-color: var(--accent-gold);
    color: var(--accent-gold);
}

.kbd-hint {
    font-size: 0.7rem;
    padding: 1px 6px;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-muted);
}

.lang-switcher {
    display: inline-flex;
    background: var(--bg-input);
    border: 1px solid var(--glass-border);
    border-radius: 999px;
    padding: 2px;
}

.lang-btn {
    border: none;
    background: transparent;
    color: var(--text-secondary);
    padding: 4px 9px;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.lang-btn[aria-pressed="true"] {
    background: var(--accent-gold);
    color: #09090e;
}

.drawer-trigger {
    display: none;
}

/* ==========================================================
   MOBİL KAYDIRMALI ÇEKMECE (Navigation Drawer — Native <dialog>)
   ========================================================== */
.Drawer {
    --drawer-width: min(20em, 82dvw, 100dvw - 24px);
    --drawer-backdrop: 0;
    inset: 0;
    width: auto;
    height: auto;
    max-width: none;
    max-height: none;
    margin: 0;
    padding: 0;
    background: transparent;
    border: 0;
    overflow: visible;
}

.Drawer::backdrop {
    background: #000;
    opacity: calc(var(--drawer-backdrop) * 0.65);
    overflow: hidden;
    overscroll-behavior: contain;
}

.Drawer-scroller {
    position: relative;
    display: grid;
    grid-template-columns: var(--drawer-width) 100%;
    overflow-x: scroll;
    overscroll-behavior: none;
    scrollbar-width: none;
    scroll-snap-type: x mandatory;
}
.Drawer-scroller::-webkit-scrollbar {
    display: none;
}

@media (prefers-reduced-motion: no-preference) {
    .Drawer-scroller {
        scroll-behavior: smooth;
    }
}

.Drawer-scroller::after {
    content: '';
    scroll-snap-align: end;
    scroll-initial-target: nearest;
}

.Drawer-sheet {
    display: grid;
    grid-template-rows: auto 1fr auto;
    height: 100svh;
    background: var(--bg-elevated);
    color: var(--text-primary);
    border-right: 1px solid var(--glass-border);
    padding: 24px 20px;
    overflow-y: auto;
    scroll-snap-align: start;
    scrollbar-width: none;
}

.Drawer-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--glass-border);
}

.Drawer-links {
    list-style: none;
    margin-top: 18px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.Drawer-links a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    border-radius: 10px;
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition-smooth);
}

.Drawer-links a:hover {
    background: var(--accent-gold-soft);
    color: var(--accent-gold);
}

@supports (animation-timeline: scroll()) {
    .Drawer {
        timeline-scope: --drawer-fade;
        animation: fade-drawer-backdrop linear both;
        animation-timeline: --drawer-fade;
    }
    .Drawer-scroller {
        scroll-timeline: --drawer-fade x;
    }
    @property --drawer-backdrop {
        syntax: '<number>';
        inherits: true;
        initial-value: 0;
    }
    @keyframes fade-drawer-backdrop {
        0% { --drawer-backdrop: 1; }
        100% { --drawer-backdrop: 0; }
    }
}

/* ==========================================================
   HERO BÖLÜMÜ
   ========================================================== */
.hero {
    min-height: 78vh;
    padding: 64px 5% 56px;
    display: grid;
    grid-template-columns: 1.25fr 0.75fr;
    align-items: center;
    gap: 48px;
    max-width: 1320px;
    margin: 0 auto;
}

.hero-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
}

.hero-tag {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 6px 14px;
    background: var(--accent-gold-soft);
    border: 1px solid var(--glass-border-strong);
    color: var(--accent-gold);
    border-radius: 999px;
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.4px;
}

.hero-status-pill {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 6px 14px;
    background: rgba(45, 212, 191, 0.1);
    border: 1px solid rgba(45, 212, 191, 0.28);
    color: var(--accent-teal);
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 500;
}

.hero-title {
    font-family: var(--font-serif);
    font-size: clamp(2.6rem, 4.6vw, 4.3rem);
    line-height: 1.1;
    margin-bottom: 20px;
    font-weight: 700;
}

.hero-title span {
    background: linear-gradient(135deg, var(--accent-gold), var(--accent-purple));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    font-style: italic;
}

.hero-desc {
    color: var(--text-secondary);
    font-size: 1.08rem;
    margin-bottom: 28px;
    max-width: 620px;
}

.hero-quote-strip {
    margin-bottom: 28px;
    padding: 14px 18px;
    border-left: 3px solid var(--accent-gold);
    background: var(--bg-input);
    border-radius: 0 12px 12px 0;
    max-width: 600px;
}

.hero-quote-strip p {
    font-family: var(--font-serif);
    font-style: italic;
    font-size: 1.2rem;
    color: var(--text-primary);
}

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

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: 999px;
    font-family: var(--font-outfit);
    font-weight: 600;
    text-decoration: none;
    font-size: 0.95rem;
    cursor: pointer;
    transition: var(--transition-smooth);
    border: 1px solid transparent;
}

.btn-primary {
    background: linear-gradient(135deg, #e0bd4c, #b88a1e);
    color: #09090e;
    box-shadow: 0 6px 20px rgba(212, 175, 55, 0.28);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 26px rgba(212, 175, 55, 0.42);
}

.btn-secondary {
    background: var(--bg-input);
    color: var(--text-primary);
    border-color: var(--glass-border);
}

.btn-secondary:hover {
    border-color: var(--accent-gold);
    color: var(--accent-gold);
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(4, minmax(110px, 1fr));
    gap: 14px;
    margin-top: 34px;
}

.stat-item {
    background: var(--bg-input);
    border: 1px solid var(--glass-border);
    padding: 14px 16px;
    border-radius: 14px;
    transition: var(--transition-smooth);
}

.stat-item:hover {
    border-color: var(--glass-border-strong);
    transform: translateY(-2px);
}

.stat-number {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--accent-gold);
    line-height: 1.1;
}

.stat-label {
    font-size: 0.76rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.6px;
    margin-top: 4px;
}

.hero-image-container {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-portrait-frame {
    position: relative;
    width: 100%;
    max-width: 410px;
    border-radius: 24px;
    padding: 10px;
    background: linear-gradient(145deg, rgba(212, 175, 55, 0.3), rgba(157, 78, 221, 0.15), transparent);
    box-shadow: var(--shadow-premium);
}

.hero-image {
    width: 100%;
    height: auto;
    aspect-ratio: 500 / 646;
    object-fit: cover;
    border-radius: 18px;
    display: block;
}

.portrait-caption {
    position: absolute;
    bottom: 22px;
    left: 22px;
    right: 22px;
    padding: 12px 16px;
    border-radius: 12px;
    background: rgba(9, 9, 14, 0.82);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #f4f3ef;
    font-size: 0.82rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* ==========================================================
   ORTAK BÖLÜM STİLLERİ VE FİLTRE ÇUBUKLARI
   ========================================================== */
section {
    padding: 80px 5%;
    max-width: 1320px;
    margin: 0 auto;
}

.section-divider {
    border-top: 1px solid var(--glass-border);
}

.section-eyebrow {
    display: block;
    text-align: center;
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--accent-gold);
    margin-bottom: 8px;
}

.section-title {
    font-family: var(--font-serif);
    font-size: clamp(2rem, 3.2vw, 2.85rem);
    font-weight: 700;
    margin-bottom: 12px;
    text-align: center;
}

.section-title span {
    color: var(--accent-gold);
    font-style: italic;
}

.section-subtitle {
    text-align: center;
    color: var(--text-secondary);
    max-width: 680px;
    margin: 0 auto 38px;
    font-size: 1rem;
}

.filter-bar {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 34px;
    flex-wrap: wrap;
}

.filter-pill {
    padding: 8px 18px;
    border-radius: 999px;
    background: var(--bg-input);
    border: 1px solid var(--glass-border);
    color: var(--text-secondary);
    font-family: var(--font-outfit);
    font-size: 0.86rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.filter-pill:hover,
.filter-pill[aria-pressed="true"],
.filter-pill.active {
    background: var(--accent-gold);
    color: #09090e;
    border-color: var(--accent-gold);
    font-weight: 600;
}

/* ==========================================================
   KİTAPLIK BÖLÜMÜ (8 Eser + İnceleme Rozetleri)
   ========================================================== */
.books-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(245px, 1fr));
    gap: 26px;
}

.book-card {
    padding: 18px;
    display: flex;
    flex-direction: column;
    cursor: pointer;
    position: relative;
}

.book-card:hover {
    transform: translateY(-6px);
}

.book-cover-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 2 / 2.9;
    margin-bottom: 16px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 12px 26px rgba(0, 0, 0, 0.4);
    background: #181924;
}

.book-cover {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.45s ease;
}

.book-card:hover .book-cover {
    transform: scale(1.05);
}

.book-lang-ribbon {
    position: absolute;
    top: 10px;
    right: 10px;
    padding: 4px 10px;
    border-radius: 999px;
    background: rgba(9, 9, 14, 0.82);
    backdrop-filter: blur(6px);
    color: #f4f3ef;
    font-size: 0.72rem;
    font-weight: 600;
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.book-title {
    font-family: var(--font-serif);
    font-size: 1.45rem;
    font-weight: 700;
    margin-bottom: 4px;
    color: var(--text-primary);
}

.book-meta {
    font-size: 0.82rem;
    color: var(--accent-gold);
    font-weight: 500;
    margin-bottom: 8px;
}

.book-short-desc {
    font-size: 0.86rem;
    color: var(--text-secondary);
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 14px;
    flex-grow: 1;
}

.book-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 12px;
    border-top: 1px solid var(--glass-border);
    font-size: 0.8rem;
    color: var(--text-muted);
}

.book-read-cta {
    color: var(--accent-gold);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

/* ==========================================================
   MAKALELER VE DENEMELER BÖLÜMÜ
   ========================================================== */
.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 24px;
}

.article-card {
    padding: 26px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    cursor: pointer;
}

.article-card:hover {
    transform: translateY(-4px);
}

.article-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    margin-bottom: 14px;
}

.article-tag {
    font-size: 0.74rem;
    font-weight: 600;
    padding: 4px 11px;
    border-radius: 999px;
    background: rgba(157, 78, 221, 0.14);
    color: #d8b4fe;
    border: 1px solid rgba(157, 78, 221, 0.3);
}
[data-theme="ivory"] .article-tag {
    color: #6b3fa0;
}

.article-date {
    font-size: 0.78rem;
    color: var(--text-muted);
}

.article-title {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 10px;
    line-height: 1.28;
}

.article-excerpt {
    font-size: 0.92rem;
    color: var(--text-secondary);
    margin-bottom: 20px;
    flex-grow: 1;
}

.article-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 14px;
    border-top: 1px solid var(--glass-border);
}

.read-article-btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: var(--accent-gold);
    font-weight: 600;
    font-size: 0.88rem;
}

/* ==========================================================
   HUKUK & AİHM BÜYÜK DAİRE KARARLARI DOSYASI (#hukuk)
   ========================================================== */
.legal-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
}

.legal-card {
    padding: 26px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    border-top: 3px solid var(--accent-gold);
    cursor: pointer;
}

.legal-card:hover {
    transform: translateY(-4px);
}

.legal-meta-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
    flex-wrap: wrap;
}

.legal-court-badge {
    font-size: 0.75rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 6px;
    background: var(--accent-gold-soft);
    color: var(--accent-gold);
}

.legal-status-badge {
    font-size: 0.73rem;
    font-weight: 600;
    padding: 3px 9px;
    border-radius: 999px;
    background: rgba(45, 212, 191, 0.12);
    color: var(--accent-teal);
    border: 1px solid rgba(45, 212, 191, 0.28);
}

.legal-title {
    font-family: var(--font-serif);
    font-size: 1.38rem;
    font-weight: 700;
    margin-bottom: 8px;
    line-height: 1.3;
}

.legal-articles-cited {
    font-size: 0.78rem;
    color: var(--accent-gold);
    margin-bottom: 12px;
    font-weight: 500;
}

.legal-summary {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 18px;
    flex-grow: 1;
}

/* ==========================================================
   CEZAEVİ BESTELERİ & POLİFONİK BAĞLAMA STÜDYOSU (#muzik)
   ========================================================== */
.music-container {
    display: grid;
    grid-template-columns: 0.95fr 1.25fr;
    gap: 36px;
    padding: 36px;
    align-items: stretch;
}

.player-stage {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 24px;
    border-radius: 16px;
    background: var(--bg-input);
    border: 1px solid var(--glass-border);
}

.vinyl-disc {
    width: 184px;
    height: 184px;
    border-radius: 50%;
    background: repeating-radial-gradient(circle, #181924 0px, #181924 4px, #101119 5px, #101119 9px);
    border: 3px solid rgba(212, 175, 55, 0.35);
    box-shadow: 0 16px 38px rgba(0, 0, 0, 0.55);
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 18px;
}

.vinyl-disc.playing {
    animation: spin-vinyl 9s linear infinite;
}

@keyframes spin-vinyl {
    100% { transform: rotate(360deg); }
}

.vinyl-center {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent-gold), var(--accent-purple));
    border: 4px solid #09090e;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #09090e;
    font-size: 1.2rem;
}

.eq-bars {
    display: flex;
    align-items: flex-end;
    justify-content: center;
    gap: 4px;
    height: 24px;
    margin-bottom: 12px;
}

.eq-bar {
    width: 4px;
    height: 5px;
    border-radius: 2px;
    background: var(--accent-gold);
    transition: height 0.15s ease;
}

.eq-bars.active .eq-bar {
    animation: eq-bounce 0.85s ease-in-out infinite alternate;
}
.eq-bars.active .eq-bar:nth-child(2n) { animation-duration: 0.62s; }
.eq-bars.active .eq-bar:nth-child(3n) { animation-duration: 0.98s; }
.eq-bars.active .eq-bar:nth-child(5n) { animation-duration: 0.52s; }

@keyframes eq-bounce {
    0% { height: 4px; opacity: 0.45; }
    100% { height: 24px; opacity: 1; }
}

.now-playing-title {
    font-family: var(--font-serif);
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: 2px;
}

.now-playing-sub {
    font-size: 0.84rem;
    color: var(--accent-gold);
    margin-bottom: 14px;
}

.audio-progress-wrap {
    width: 100%;
    max-width: 320px;
    margin-bottom: 14px;
}

.audio-progress-bar {
    width: 100%;
    height: 6px;
    border-radius: 999px;
    background: rgba(150, 150, 165, 0.2);
    overflow: hidden;
    cursor: pointer;
}

.audio-progress-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, var(--accent-gold), var(--accent-teal));
    transition: width 0.25s linear;
}

.audio-time-row {
    display: flex;
    justify-content: space-between;
    font-size: 0.74rem;
    color: var(--text-muted);
    margin-top: 5px;
}

.player-controls {
    display: flex;
    align-items: center;
    gap: 14px;
}

.player-btn {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: var(--bg-surface);
    border: 1px solid var(--glass-border);
    color: var(--text-primary);
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.player-btn:hover {
    border-color: var(--accent-gold);
    color: var(--accent-gold);
}

.player-btn.play-main {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, #e0bd4c, #b88a1e);
    color: #09090e;
    border: none;
    font-size: 1.2rem;
    box-shadow: 0 6px 20px rgba(212, 175, 55, 0.35);
}

.volume-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 14px;
    color: var(--text-muted);
    font-size: 0.82rem;
}

.volume-row input[type="range"] {
    accent-color: var(--accent-gold);
    width: 110px;
}

.track-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.track-item {
    padding: 13px 16px;
    border-radius: 12px;
    background: var(--bg-input);
    border: 1px solid var(--glass-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.track-item:hover,
.track-item.active {
    background: var(--accent-gold-soft);
    border-color: var(--accent-gold);
}

.track-info h4 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 2px;
}

.track-info p {
    font-size: 0.78rem;
    color: var(--text-muted);
}

.track-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.track-duration {
    font-size: 0.76rem;
    color: var(--text-muted);
    font-variant-numeric: tabular-nums;
}

.lyrics-btn {
    background: var(--bg-surface);
    border: 1px solid var(--glass-border);
    color: var(--text-primary);
    padding: 6px 11px;
    border-radius: 8px;
    font-size: 0.76rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.lyrics-btn:hover {
    background: var(--accent-gold);
    color: #09090e;
    border-color: var(--accent-gold);
}

/* ==========================================================
   SÖZLER & SAVUNMA ALINTILARI (#savunmalar)
   ========================================================== */
.quotes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
}

.quote-card {
    padding: 28px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.quote-icon {
    font-size: 1.8rem;
    color: var(--accent-gold);
    opacity: 0.45;
    margin-bottom: 12px;
}

.quote-text {
    font-family: var(--font-serif);
    font-size: 1.32rem;
    font-style: italic;
    color: var(--text-primary);
    line-height: 1.48;
    margin-bottom: 12px;
}

.quote-sub-translation {
    font-size: 0.84rem;
    color: var(--text-muted);
    margin-bottom: 18px;
}

.quote-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid var(--glass-border);
    padding-top: 14px;
}

.quote-source {
    font-size: 0.82rem;
    color: var(--accent-gold);
    font-weight: 600;
}

.copy-quote-btn {
    background: var(--bg-input);
    border: 1px solid var(--glass-border);
    color: var(--text-secondary);
    border-radius: 8px;
    padding: 5px 10px;
    cursor: pointer;
    font-size: 0.78rem;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: var(--transition-smooth);
}

.copy-quote-btn:hover {
    border-color: var(--accent-gold);
    color: var(--accent-gold);
}

/* ==========================================================
   SANAT & RESİM GALERİSİ (#galeri)
   ========================================================== */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(310px, 1fr));
    gap: 22px;
}

.gallery-card {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    aspect-ratio: 4 / 3;
    border: 1px solid var(--glass-border);
    cursor: pointer;
    background: #14151f;
}

.gallery-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-card:hover img {
    transform: scale(1.05);
}

.gallery-overlay {
    position: absolute;
    inset: auto 0 0 0;
    background: linear-gradient(transparent, rgba(7, 7, 11, 0.92));
    padding: 24px 18px 16px;
    transition: var(--transition-smooth);
}

.gallery-title {
    font-family: var(--font-serif);
    font-size: 1.25rem;
    font-weight: 700;
    color: #f4f3ef;
    margin-bottom: 4px;
}

.gallery-tag {
    display: inline-block;
    padding: 3px 9px;
    font-size: 0.72rem;
    background: rgba(212, 175, 55, 0.22);
    border: 1px solid rgba(212, 175, 55, 0.45);
    color: #ffe29a;
    border-radius: 999px;
}

/* ==========================================================
   KRONOLOJİ / ZAMAN TÜNELİ (#kronoloji)
   ========================================================== */
.timeline {
    position: relative;
    max-width: 880px;
    margin: 0 auto;
}

.timeline::after {
    content: '';
    position: absolute;
    width: 2px;
    background: var(--glass-border-strong);
    top: 0;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
}

.timeline-item {
    padding: 12px 38px;
    position: relative;
    width: 50%;
}

.timeline-item::after {
    content: '';
    position: absolute;
    width: 14px;
    height: 14px;
    right: -7px;
    background-color: var(--accent-gold);
    border: 3px solid var(--bg-base);
    top: 24px;
    border-radius: 50%;
    z-index: 1;
    box-shadow: 0 0 10px var(--accent-gold);
}

.timeline-item.left {
    left: 0;
    text-align: right;
}

.timeline-item.right {
    left: 50%;
}

.timeline-item.right::after {
    left: -7px;
}

.timeline-content {
    padding: 22px;
    background: var(--bg-surface);
    border: 1px solid var(--glass-border);
    border-radius: 14px;
    transition: var(--transition-smooth);
}

.timeline-content:hover {
    border-color: var(--glass-border-strong);
}

.timeline-year {
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--accent-gold);
    margin-bottom: 6px;
}

.timeline-item h3 {
    font-family: var(--font-serif);
    font-size: 1.3rem;
    margin-bottom: 6px;
}

.timeline-item p {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* ==========================================================
   BASIN ODASI & İLETİŞİM FORMLARI
   ========================================================== */
.press-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-bottom: 28px;
}

.press-info-box {
    background: var(--bg-input);
    border: 1px solid var(--glass-border);
    padding: 18px;
    border-radius: 14px;
}

.press-info-box h4 {
    color: var(--accent-gold);
    font-size: 0.92rem;
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.press-info-box p {
    font-size: 0.84rem;
    color: var(--text-secondary);
}

.form-container {
    max-width: 860px;
    margin: 0 auto 80px;
    padding: 42px;
}

.form-row-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.form-group {
    margin-bottom: 18px;
}

.form-group label {
    display: block;
    margin-bottom: 7px;
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 0.9rem;
}

.form-control {
    width: 100%;
    padding: 12px 15px;
    background: var(--bg-input);
    border: 1px solid var(--glass-border);
    border-radius: 10px;
    color: var(--text-primary);
    font-family: var(--font-outfit);
    font-size: 0.95rem;
    transition: var(--transition-smooth);
}

select.form-control option {
    background: var(--bg-elevated);
    color: var(--text-primary);
}

.form-control:focus {
    outline: none;
    border-color: var(--accent-gold);
    box-shadow: 0 0 0 3px var(--accent-gold-soft);
}

textarea.form-control {
    resize: vertical;
    min-height: 130px;
}

/* ==========================================================
   NATIVE <dialog> MODALLARI (Erişilebilir + Light Dismiss)
   ========================================================== */
dialog.archive-dialog {
    margin: auto;
    width: min(92vw, 840px);
    max-height: 88svh;
    background: var(--bg-elevated);
    color: var(--text-primary);
    border: 1px solid var(--glass-border-strong);
    border-radius: 20px;
    padding: 0;
    box-shadow: 0 25px 70px rgba(0, 0, 0, 0.7);
}

/* MANDATORY scroll containment rules from modern-web-guidance */
dialog:modal {
    overscroll-behavior: contain;
}

dialog::backdrop {
    overflow: hidden;
    overscroll-behavior: contain;
}

dialog.archive-dialog::backdrop {
    background: rgba(5, 5, 9, 0.78);
    backdrop-filter: blur(8px);
}

.dialog-inner {
    padding: 32px;
    overflow-y: auto;
    max-height: 86svh;
}

.dialog-topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--glass-border);
}

.dialog-close-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid var(--glass-border);
    background: var(--bg-input);
    color: var(--text-primary);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    transition: var(--transition-smooth);
}

.dialog-close-btn:hover {
    background: var(--accent-gold);
    color: #09090e;
    border-color: var(--accent-gold);
}

/* Kitap İnceleme ve Tadımlık Okuyucu Dialogu */
.modal-book-detail {
    display: grid;
    grid-template-columns: 210px 1fr;
    gap: 28px;
    align-items: start;
}

.modal-book-img {
    width: 100%;
    border-radius: 12px;
    box-shadow: 0 14px 28px rgba(0, 0, 0, 0.5);
}

.reader-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    margin: 14px 0;
    padding: 10px 14px;
    border-radius: 10px;
    background: var(--bg-input);
    border: 1px solid var(--glass-border);
}

.reader-passage-box {
    padding: 22px 24px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.03);
    border-left: 3px solid var(--accent-gold);
    font-family: var(--font-serif);
    font-size: var(--reader-font-size, 1.22rem);
    line-height: 1.8;
    white-space: pre-line;
}

.reader-passage-box.sepia-paper {
    background: #f4ecd8;
    color: #241c15;
    border-left-color: #8b5e1a;
}

/* Hızlı Arama (⌘K Spotlight) Dialogu */
dialog#search-dialog {
    width: min(92vw, 680px);
}

.search-input-wrap {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-radius: 12px;
    background: var(--bg-input);
    border: 1px solid var(--accent-gold);
    margin-bottom: 18px;
}

.search-input-wrap input {
    flex: 1;
    border: none;
    background: transparent;
    color: var(--text-primary);
    font-family: var(--font-outfit);
    font-size: 1rem;
    outline: none;
}

.search-results-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-height: 52svh;
    overflow-y: auto;
}

.search-hit-item {
    padding: 12px 14px;
    border-radius: 10px;
    background: var(--bg-input);
    border: 1px solid var(--glass-border);
    cursor: pointer;
    transition: var(--transition-smooth);
}

.search-hit-item:hover {
    border-color: var(--accent-gold);
    background: var(--accent-gold-soft);
}

.search-hit-type {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--accent-gold);
    letter-spacing: 0.8px;
}

/* Footer */
footer {
    padding: 48px 5%;
    border-top: 1px solid var(--glass-border);
    background: rgba(5, 5, 8, 0.55);
    text-align: center;
}
[data-theme="ivory"] footer {
    background: rgba(230, 220, 202, 0.6);
}

.footer-logo {
    font-family: var(--font-serif);
    font-size: 1.7rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.footer-tagline {
    font-family: var(--font-serif);
    font-size: 1.1rem;
    color: var(--text-secondary);
    font-style: italic;
}

.footer-links-row {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 18px;
    margin: 18px 0;
    font-size: 0.86rem;
}

.footer-links-row a {
    color: var(--text-secondary);
    text-decoration: none;
}
.footer-links-row a:hover {
    color: var(--accent-gold);
}

.footer-copy {
    font-size: 0.84rem;
    color: var(--text-muted);
    margin-top: 14px;
}

/* Toast Bildirim */
.toast-notification {
    position: fixed;
    bottom: 26px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: var(--bg-elevated);
    border: 1px solid var(--accent-gold);
    color: var(--text-primary);
    padding: 12px 24px;
    border-radius: 999px;
    font-weight: 500;
    font-size: 0.9rem;
    box-shadow: var(--shadow-premium);
    z-index: 9999;
    opacity: 0;
    pointer-events: none;
    transition: all 0.32s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    gap: 10px;
}

.toast-notification.show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

/* ==========================================================
   RESPONSIVE KURALLAR
   ========================================================== */
@media (max-width: 1120px) {
    .desktop-nav {
        display: none;
    }
    .drawer-trigger {
        display: inline-flex;
    }
    .kbd-hint {
        display: none;
    }
}

@media (max-width: 920px) {
    .hero {
        grid-template-columns: 1fr;
        text-align: center;
        padding-top: 36px;
    }
    .hero-badges,
    .hero-buttons {
        justify-content: center;
    }
    .hero-desc,
    .hero-quote-strip {
        margin-inline: auto;
    }
    .hero-stats {
        grid-template-columns: repeat(2, 1fr);
    }
    .hero-portrait-frame {
        max-width: 320px;
    }
    .music-container {
        grid-template-columns: 1fr;
        padding: 22px;
    }
    .press-grid {
        grid-template-columns: 1fr;
    }
    .timeline::after {
        left: 24px;
    }
    .timeline-item {
        width: 100%;
        padding-left: 58px;
        padding-right: 12px;
        text-align: left !important;
    }
    .timeline-item.left,
    .timeline-item.right {
        left: 0;
    }
    .timeline-item::after,
    .timeline-item.right::after {
        left: 17px;
    }
    .modal-book-detail {
        grid-template-columns: 1fr;
    }
    .modal-book-img {
        max-width: 180px;
        margin: 0 auto;
    }
}

@media (max-width: 600px) {
    .form-row-2 {
        grid-template-columns: 1fr;
    }
    .form-container {
        padding: 24px 18px;
    }
    .articles-grid {
        grid-template-columns: 1fr;
    }
    .dialog-inner {
        padding: 20px;
    }
}
