/* --- TEMİZLİK --- */
header, footer, #masthead, #colophon, .site-header, .site-footer, 
.admin-bar, #wpadminbar, .elementor-location-header, .elementor-location-footer,
.mobile-menu, .mobile-nav, .fixed-nav, .sticky-nav,
.prt-mobile-menu, .prt-footer-bar, .mobile-header-menu-container,
.wapp-bottom-navigation, .wd-toolbar, .woodmart-toolbar, .whb-header-bottom, 
.handheld-footer-bar, .mobile-footer, .footer-bar, .bottom-menu, .tab-bar,
div[class*="mobile-bottom"], div[class*="mobile-footer"], div[class*="footer-bar"],
div[class*="bottom-nav"], div[class*="tab-bar"], div[class*="tool-bar"],
#mobile-bar, #bottom-bar
{
    display: none !important; opacity: 0 !important; visibility: hidden !important;
    height: 0 !important; width: 0 !important; pointer-events: none !important;
    z-index: -9999 !important; position: absolute !important; top: -9999px !important;
}
html { margin-top: 0 !important; padding-bottom: 0 !important; } 

/* --- CSS --- */
:root { --bg-color: #0f0f0f; --text-primary: #ffffff; --accent: #ff3c00; --accent-text: #000; --glass: rgba(255, 255, 255, 0.05); --glass-heavy: rgba(15, 15, 15, 0.95); --border: rgba(255, 255, 255, 0.15); --font-display: 'Oswald', sans-serif; --font-body: 'Open Sans', sans-serif; --speed: 0.4s; }
body[data-mode="dark"], html[data-mode="dark"] { --bg-color: #0f0f0f; --text-primary: #ffffff; --accent: #ff3c00; --accent-text: #000; --glass: rgba(255, 255, 255, 0.05); --glass-heavy: rgba(15, 15, 15, 0.95); --border: rgba(255, 255, 255, 0.15); }
body[data-mode="light"], html[data-mode="light"] { --bg-color: #ffffff; --text-primary: #111111; --accent: #d63031; --accent-text: #fff; --border: rgba(0,0,0,0.1); --glass-heavy: rgba(255, 255, 255, 0.95); }
body[data-mode="book"], html[data-mode="book"] { --bg-color: #e3dcd2; --text-primary: #3d2f26; --accent: #a63e26; --accent-text: #fff; --border: rgba(61,47,38,0.1); --glass-heavy: rgba(227, 220, 210, 0.95); }

* { margin: 0; padding: 0; box-sizing: border-box; }

body { background-color: var(--bg-color); color: var(--text-primary); font-family: var(--font-body) !important; font-size: 16px; overflow-x: hidden; transition: background var(--speed), color var(--speed); will-change: overflow; }

body.no-scroll { overflow: hidden !important; height: 100vh !important; width: 100%; }

.library-container.php-hidden { display: none; }
.issue-detail-wrapper.php-active { transform: translateY(0) !important; opacity: 1 !important; pointer-events: auto !important; }

p, h1, h2, h3, h4, h5, h6, span, div, li { color: inherit; } 
h1, h2, h3, h4, h5, h6, .brand-logo, .menu-link, .issue-title, .issue-no-big, .issue-date-small, .massive-title, .read-btn, .editor-label, .stream-title, .reader-title, .back-cover-btn, .nav-meta h5, .search-input, .search-result-title, .mobile-search-input, .mobile-search-cancel { font-family: var(--font-display); }

.stream-tag { 
    font-family: var(--font-display); 
    display: inline-block; 
    background: #d63031;
    color: #ffffff !important; 
    padding: 8px 20px; 
    border-radius: 50px; 
    font-size: 0.9rem; 
    font-weight: 700; 
    letter-spacing: 2px; 
    text-transform: uppercase; 
    margin-bottom: 20px; 
    box-shadow: 
        0 4px 15px rgba(214, 48, 49, 0.5),
        0 0 20px rgba(214, 48, 49, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.2);
    position: relative;
    overflow: hidden;
}

/* Manşet etiketi için özel stil - animasyonsuz */
.headline-text .stream-tag {
    font-size: 1rem;
    padding: 10px 24px;
    letter-spacing: 3px;
}

/* REKLAM ALANLARI - GÜNCELLENMİŞ */
.nova-ad-container {
    width: 100%;
    text-align: center;
    margin: 0 auto;
    padding: 15px 20px;
    background: var(--bg-color);
    border-bottom: 1px solid var(--border);
    transition: 0.3s;
}
.nova-ad-header-top {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 600;
    padding: 10px 20px;
    max-height: 90px;
    overflow: hidden;
}
.nova-ad-header-bottom {
    margin-top: 80px;
    position: relative;
    z-index: 499;
}
.nova-ad-footer {
    position: fixed;
    bottom: 0;
    left: 0;
    z-index: 600;
    padding: 10px 20px;
    max-height: 90px;
    overflow: hidden;
    border-top: 1px solid var(--border);
    border-bottom: none;
}
.nova-ad-container img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
}
/* JS ile kontrol edilecek sınıflar */
body.has-ad-top .nav-bar {
    top: 90px !important;
}
body.has-ad-top {
    padding-top: 90px !important;
}
body.has-ad-footer {
    padding-bottom: 90px !important;
}

/* NAV BAR */
.nav-bar { 
    position: fixed; top: 0; left: 0; width: 100%; 
    padding: 20px 40px; 
    display: flex; justify-content: space-between; align-items: center; z-index: 500; 
    transition: all 0.4s ease; 
    background-color: var(--bg-color) !important; 
    color: var(--text-primary) !important;
    border-bottom: 1px solid var(--border);
    mix-blend-mode: normal !important; 
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
}

.brand-logo { font-size: 1.5rem; font-weight: 700; letter-spacing: -1px; text-transform: uppercase; cursor: pointer; flex-shrink: 0; display:flex; align-items:center; color: inherit; }
.brand-logo img { height: 45px; margin-right: 10px; }

.search-trigger-btn { font-size: 1.2rem; cursor: pointer; margin-right: 20px; opacity: 0.8; transition:0.3s; color:inherit; text-decoration:none; }
.search-trigger-btn:hover { opacity:1; color:var(--accent); }

.nav-controls { display: flex; gap: 20px; align-items: center; flex-shrink: 0; }
.theme-btn { cursor: pointer; font-size: 1.2rem; width: 40px; height: 40px; border: 1px solid currentColor; border-radius: 50%; display: flex; align-items: center; justify-content: center; transition: 0.3s; color: inherit; }
.theme-btn:hover { background: var(--text-primary); color: var(--bg-color); border-color:var(--text-primary); }
.menu-hamburger { display: flex; flex-direction: column; justify-content: space-between; width: 35px; height: 25px; cursor: pointer; }
.menu-hamburger span { display: block; width: 100%; height: 3px; background-color: currentColor; transition: 0.3s; }

.menu-overlay { position: fixed; inset: 0; background: var(--bg-color); z-index: 900; transform: translateY(-100%); transition: 0.5s cubic-bezier(0.77,0,0.175,1); display: flex; flex-direction: column; justify-content: center; align-items: center; }
.menu-overlay.active { transform: translateY(0); }
.menu-close { position: absolute; top: 35px; right: 40px; font-size: 2rem; cursor: pointer; color: var(--text-primary); }

.menu-link { font-size: 3rem; margin: 15px 0; color: var(--text-primary); text-decoration: none; font-weight: 700; text-transform: uppercase; cursor: pointer; transition: 0.3s; display: block; text-align: center; }
.menu-link:hover { color: var(--accent); letter-spacing: 5px; }

/* ToC Bar (Desktop & Mobile) */
.mobile-toc-bar {
    display: flex;
    position: fixed;
    top: 85px; /* nav-bar height approx */
    left: 0;
    width: 100%;
    background: var(--glass-heavy);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
    padding: 12px 40px;
    z-index: 495;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transform: translateY(-200%);
    transition: transform 0.4s cubic-bezier(0.77, 0, 0.175, 1);
    gap: 15px;
}
.mobile-toc-bar.active {
    transform: translateY(0);
}
.toc-bar-label {
    font-family: var(--font-display);
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 2px;
    color: var(--accent);
    text-transform: uppercase;
}
.mobile-toc-bar i {
    color: var(--text-primary);
    font-size: 0.9rem;
    transition: 0.3s;
}
.mobile-toc-bar:hover i {
    transform: translateY(3px);
}
.mobile-toc-bar:hover .toc-bar-label {
    color: var(--text-primary);
}

/* If top ad present, push down */
body.has-ad-top .mobile-toc-bar {
    top: 175px; 
}

/* iOS Install Modal */
.ios-install-modal {
    position: fixed; inset: 0; background: rgba(0,0,0,0.85);
    z-index: 2500; display: flex; align-items: flex-end; justify-content: center;
    opacity: 0; pointer-events: none; transition: 0.3s;
    backdrop-filter: blur(5px);
}
.ios-install-modal.active { opacity: 1; pointer-events: auto; }
.ios-install-box {
    background: var(--bg-color); width: 100%; max-width: 500px;
    border-top-left-radius: 20px; border-top-right-radius: 20px;
    padding: 30px; border: 1px solid var(--border); border-bottom: none;
    transform: translateY(100%); transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    padding-bottom: 50px; /* Safe area */
}
.ios-install-modal.active .ios-install-box { transform: translateY(0); }
.ios-install-box h3 { font-family: var(--font-display); color: var(--accent); margin-bottom: 15px; }
.ios-install-box p { margin-bottom: 15px; color: var(--text-primary); }
.ios-install-box ol { padding-left: 20px; color: var(--text-primary); }
.ios-install-box li { margin-bottom: 10px; }
.ios-install-box i { color: var(--accent); margin-left: 5px; }

/* PWA Install Button */
.pwa-install-btn {
    border: 2px solid var(--accent);
    color: var(--accent);
    border-radius: 50px;
    padding: 10px 30px;
    font-size: 1.2rem;
    margin-top: 30px;
}
.pwa-install-btn:hover {
    background: var(--accent);
    color: #fff;
}

@media (max-height: 500px) and (orientation: landscape) {
    .menu-overlay { justify-content: flex-start; padding-top: 80px; overflow-y: auto; }
    .menu-link { font-size: 1.5rem; margin: 8px 0; }
    .menu-close { top: 15px; right: 20px; font-size: 1.5rem; }
}

/* --- MASTHEAD --- */
.masthead-modal { 
    position: fixed; inset: 0; top: 0; left: 0; width: 100%; height: 100%; 
    background: rgba(0,0,0,0.85); backdrop-filter: blur(10px); 
    z-index: 1100; display: flex; align-items: center; justify-content: center; 
    opacity: 0; pointer-events: none; transition: 0.3s; 
}
.masthead-modal.active { opacity: 1; pointer-events: auto; }
.masthead-box { 
    background: var(--bg-color); padding: 60px 40px; 
    border: 1px solid var(--border); border-radius: 20px; 
    box-shadow: 0 20px 50px rgba(0,0,0,0.5); 
    text-align: center; max-width: 600px; width: 90%; 
    position: relative; max-height: 85vh; overflow-y: auto; 
    color: var(--text-primary); margin: auto; 
    transform: scale(0.95); transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275); 
}
.masthead-modal.active .masthead-box { transform: scale(1); }

.close-modal { 
    position: absolute; top: 20px; right: 20px; 
    width: 40px; height: 40px; 
    display: flex; align-items: center; justify-content: center; 
    border-radius: 50%; border: 1px solid currentColor; 
    font-size: 1.2rem; cursor: pointer; color: var(--text-primary); 
    opacity: 0.7; transition: 0.3s; 
}
.close-modal:hover { opacity: 1; transform: rotate(90deg); background: rgba(255,255,255,0.1); }

/* --- ARŞİV FİLTRE BUTONU --- */
.archive-filter-container {
    position: absolute; top: 110px; left: 40px; z-index: 400; font-family: var(--font-display);
}
.archive-filter-container.php-hidden { display: none !important; }

.archive-btn {
    background: transparent; border: 1px solid var(--border); color: var(--text-primary);
    padding: 10px 20px; cursor: pointer; font-size: 0.9rem; text-transform: uppercase; letter-spacing: 1px;
    display: flex; align-items: center; gap: 10px; transition: 0.3s;
}
.archive-btn:hover { background: var(--glass); border-color: var(--accent); }

/* Archive Filter Visibility Fix for Dark Mode */
html[data-mode="dark"] .archive-btn,
body[data-mode="dark"] .archive-btn,
html:not([data-mode="light"]):not([data-mode="book"]) .archive-btn,
body:not([data-mode="light"]):not([data-mode="book"]) .archive-btn {
    color: #ffffff !important;
    background: rgba(0, 0, 0, 0.5) !important;
    border-color: rgba(255, 255, 255, 0.2) !important;
}

/* --- KÜTÜPHANE VE SCROLL --- */
.library-container { 
    position: absolute; top: 0; left: 0; width: 100%; height: 100vh; 
    display: flex; align-items: center; overflow-x: auto; 
    padding-left: 15vw; padding-right: 15vw; gap: 10vw; 
    will-change: scroll-position; cursor: grab; 
    user-select: none;
}
.library-container.active { cursor: grabbing; cursor: -webkit-grabbing; }
.library-container::-webkit-scrollbar { display: none; }

.magazine-card { min-width: 40vw; height: 70vh; position: relative; transition: transform var(--speed); perspective: 1000px; pointer-events: auto; }
.magazine-card.filtered-out { display: none; }

.card-inner { width: 100%; height: 100%; position: relative; transform-style: preserve-3d; transition: 0.5s; }
.magazine-card:hover .card-inner { transform: scale(1.02) rotateY(-2deg); }
.card-img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(100%) contrast(1.2); transition: 0.5s; }
.magazine-card:hover .card-img { filter: grayscale(0%); }
.cover-design { 
    position: absolute; 
    top: 0; 
    left: 0; 
    display: flex; 
    flex-direction: column;
    align-items: flex-start; 
    z-index: 3;
    padding: 0;
    background: none;
    border: none;
    box-shadow: none;
    width: auto;
}
.issue-date-small { 
    font-family: var(--font-display);
    font-size: 1.1rem; 
    font-weight: 600; 
    text-transform: uppercase; 
    letter-spacing: 3px; 
    line-height: 1.4;
    color: #ffffff;
    background-color: #d63031;
    padding: 12px 24px;
    margin: 0;
    display: block;
    width: auto;
    min-width: fit-content;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}
.issue-no-big { 
    font-family: var(--font-display);
    font-size: 3.5rem; 
    font-weight: 700; 
    line-height: 1; 
    color: #000000;
    background-color: #ffffff;
    padding: 12px 20px 12px 35px;
    margin: 0;
    display: inline-block;
    letter-spacing: -1px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    position: relative;
}
.issue-no-big::before {
    content: 'SAYI';
    position: absolute;
    left: 8px;
    top: 50%;
    transform: translateY(-50%) rotate(-90deg);
    transform-origin: center;
    font-family: var(--font-display);
    font-size: 0.65rem;
    font-weight: 600;
    letter-spacing: 2px;
    color: #000000;
    white-space: nowrap;
    opacity: 0.6;
    height: auto;
}
.issue-title { position: absolute; bottom: -30px; left: -20px; font-size: 3.5rem; line-height: 1.1; text-transform: uppercase; background: var(--bg-color); color: var(--text-primary); padding: 10px 20px; transform: skewX(-10deg); box-shadow: 10px 10px 0 var(--accent); }

/* --- NAVIGASYON OKLARI --- */
.nav-arrow {
    position: fixed; top: 50%; transform: translateY(-50%);
    width: 50px; height: 50px; border: 1px solid var(--border);
    border-radius: 50%; display: flex; justify-content: center; align-items: center;
    font-size: 1.2rem; color: var(--text-primary); cursor: pointer;
    z-index: 450; transition: 0.3s; background: rgba(0,0,0,0.2); backdrop-filter: blur(5px);
}
.nav-arrow:hover { background: var(--accent); border-color: var(--accent); color: #fff; }
.nav-arrow.left { left: 30px; }
.nav-arrow.right { right: 30px; }
.nav-arrow.hidden { display: none !important; }

.issue-detail-wrapper { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: var(--bg-color); z-index: 200; transform: translateY(100%); transition: transform 0.5s cubic-bezier(0.77, 0, 0.175, 1); overflow-y: auto; opacity: 0; pointer-events: none; will-change: transform; color: var(--text-primary); }
.issue-detail-wrapper.active { transform: translateY(0); opacity: 1; pointer-events: auto; }

.headline-hero { min-height: 100vh; height: auto; width: 100%; position: relative; display: flex; align-items: flex-start; justify-content: flex-start; overflow: hidden; cursor: pointer; }
.headline-visual { position: absolute; inset: 0; width: 100%; height: 100%; background-size: cover; background-position: center center; z-index: 1; transition: transform 0.8s; object-fit: cover; }
.headline-visual::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,0.3) 0%, rgba(0,0,0,0.5) 50%, rgba(0,0,0,0.85) 100%); z-index: 2; }

.headline-text { 
    position: relative; 
    z-index: 5; 
    padding: 120px 8% 50px; 
    max-width: 1200px; 
    color: #fff;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.headline-text .stream-tag {
    margin-bottom: 20px;
    order: 1;
    font-size: 0.85rem;
    padding: 7px 15px;
}

.massive-title { 
    font-size: 5.1vw; 
    line-height: 1.2; 
    text-transform: uppercase; 
    margin-bottom: 30px; 
    margin-top: 0;
    color: #fff; 
    text-shadow: 0 0 30px rgba(0,0,0,0.5); 
    mix-blend-mode: normal;
    order: 2;
}

.spot-text { 
    font-size: 1.3rem; 
    max-width: 600px; 
    line-height: 1.6; 
    margin-bottom: 40px; 
    margin-top: 0;
    border-left: 4px solid var(--accent); 
    padding-left: 20px; 
    color: rgba(255,255,255,0.9);
    order: 3;
}

.read-btn { 
    display: inline-block; 
    background: transparent; 
    border: 2px solid #fff; 
    color: #fff; 
    padding: 20px 50px; 
    cursor: pointer; 
    transition: 0.3s; 
    text-transform: uppercase; 
    letter-spacing: 3px; 
    font-weight: bold; 
    font-size: 1rem;
    margin-top: 0;
    order: 4;
}
.read-btn:hover { background: #fff; color: #000; }

.editor-note { max-width: 900px; margin: 0 auto; padding: 60px 40px; background: var(--glass); border-left: 4px solid var(--accent); font-size: 1.3rem; font-style: italic; position: relative; margin-top: 40px; margin-bottom: 80px; color: var(--text-primary) !important; }
.editor-note p { color: var(--text-primary) !important; }
.editor-label { font-size: 0.9rem; font-weight: bold; text-transform: uppercase; color: var(--accent); display: block; margin-bottom: 15px; font-style: normal; }

.content-stream { padding: 0 10vw 100px; max-width: 1400px; margin: 0 auto; display: flex; flex-direction: column; gap: 80px; }
.stream-card { position: relative; margin-bottom: 0; cursor: pointer; perspective: 1000px; border-radius: 12px; overflow: hidden; box-shadow: 0 10px 40px rgba(0,0,0,0.1); transition: transform 0.3s ease; }
.stream-card:hover { transform: translateY(-10px); }
.stream-inner { display: flex; align-items: center; position: relative; min-height: 400px; }
.stream-card:nth-child(even) .stream-inner { flex-direction: row-reverse; }
.stream-visual { width: 60%; height: 100%; min-height: 400px; overflow: hidden; }
.stream-img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(100%); transition: 0.6s; }
.stream-content { width: 45%; background: var(--bg-color); border: 1px solid var(--border); padding: 60px 40px; position: absolute; z-index: 2; right: 0; transition: 0.3s; color: var(--text-primary) !important; box-shadow: -10px 10px 30px rgba(0,0,0,0.1); border-radius: 8px; backdrop-filter: blur(5px); }
.stream-card:nth-child(even) .stream-content { right: auto; left: 0; box-shadow: 10px 10px 30px rgba(0,0,0,0.1); }
.stream-card:hover .stream-img { filter: grayscale(0%); transform: scale(1.05); }
.stream-card:hover .stream-content { border-color: var(--accent); }
.stream-title { font-size: 1.87rem; margin-bottom: 20px; text-transform: uppercase; line-height: 1.2; color: var(--text-primary) !important; }
.stream-desc { font-size: 1.1rem; opacity: 0.8; line-height: 1.6; margin-bottom: 20px; color: var(--text-primary) !important; }
.stream-card.read {
    opacity: 0.6;
    filter: grayscale(0.5);
}
.stream-card.read .stream-content {
    border-left: 5px solid #555;
}
.stream-card.read .stream-content::after {
    content: '\f00c';
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    position: absolute;
    top: 20px;
    right: 20px;
    color: #555;
    font-size: 1.5rem;
}

/* --- OKUMA İLERLEMESİ GÖSTERGESİ --- */
.reading-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: rgba(0, 0, 0, 0.1);
    z-index: 1000;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s;
}
.reading-progress.active {
    opacity: 1;
}
.reading-progress-bar {
    height: 100%;
    background: var(--accent);
    width: 0%;
    transition: width 0.1s ease-out;
    box-shadow: 0 0 10px var(--accent);
}

/* --- READER MODAL --- */
.reader-modal { position: fixed; inset: 0; background: var(--bg-color); z-index: 300; overflow-y: auto; will-change: opacity, transform; color: var(--text-primary); transition: 0.5s ease-in-out; }

@media (min-width: 769px) {
    .reader-modal { clip-path: circle(0% at 50% 50%); }
    .reader-modal.open { clip-path: circle(150% at 50% 50%); }
}
@media (max-width: 768px) {
    .reader-modal { clip-path: none !important; opacity: 0; pointer-events: none; transform: translateY(10%); }
    .reader-modal.open { opacity: 1; pointer-events: auto; transform: translateY(0); }
}

.reader-container { max-width: 800px; margin: 140px auto; padding: 0 20px; position: relative; }
.reader-header-row { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 30px; gap: 20px; }
.reader-title-wrapper { flex: 1; }
.reader-title { font-size: 3rem; line-height: 1.1; margin-bottom: 10px; text-transform: uppercase; color: var(--text-primary) !important; }
.meta-updated { font-size: 0.8rem; opacity: 0.7; color: var(--text-primary); display: flex; align-items: center; gap: 8px; font-family: var(--font-body); margin-bottom: 0; }
.meta-updated i { font-size: 0.75rem; }
.featured-image { width: 100%; height: auto; max-height: 500px; object-fit: cover; margin-bottom: 20px; }
.meta-elegant { display: flex; flex-wrap: wrap; gap: 20px; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); padding: 15px 0; margin-bottom: 40px; font-size: 0.85rem; color: var(--text-primary); }
.reader-body { position: relative; font-size: 1.1rem; line-height: 1.8; color: var(--text-primary) !important; font-family: var(--font-body) !important; }
.reader-body > p:first-of-type { padding-right: 20px; }

@media (max-width: 768px) {
    .reader-body > p:first-of-type { padding-right: 0; }
    .reader-header-row { flex-direction: column; gap: 15px; }
}
.reader-body p, .reader-body h1, .reader-body h2, .reader-body h3 { color: var(--text-primary) !important; margin-bottom: 20px; }
.reader-body h1, .reader-body h2, .reader-body h3, .reader-body h4, .reader-body h5, .reader-body h6 { font-family: var(--font-body) !important; line-height: 1.3; font-weight: 700; }
.reader-body.font-small { font-size: 1rem; line-height: 1.6; }
.reader-body.font-medium { font-size: 1.3rem; line-height: 1.9; }
.reader-body.font-large { font-size: 1.6rem; line-height: 2.1; }
.reader-body.font-xlarge { font-size: 1.9rem; line-height: 2.3; }

/* FONT BOYUTU KONTROLÜ */
.font-size-control {
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
}
.reader-modal.open .font-size-control {
    opacity: 1;
    pointer-events: auto;
}

/* Masaüstü: Reader body içinde, sağa hizalı */
.font-size-desktop {
    position: absolute;
    right: -120px;
    top: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
    z-index: 10;
    background: var(--glass-heavy);
    padding: 15px 10px;
    border-radius: 8px;
    border: 1px solid var(--border);
    backdrop-filter: blur(10px);
}

/* Mobil: Meta altında, yan yana */
.font-size-mobile {
    display: none;
}
.font-size-btn {
    width: 40px;
    height: 40px;
    border: 1px solid var(--border);
    background: var(--bg-color);
    color: var(--text-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: 0.3s;
    font-size: 1.2rem;
}
.font-size-btn.active {
    background: var(--accent);
    color: #fff;
    border-color: var(--accent);
}
.font-size-btn:hover {
    background: var(--accent);
    color: #fff;
    border-color: var(--accent);
}

/* --- SOSYAL MEDYA --- */
.social-sticky { position: fixed; left: 30px; top: 50%; transform: translateY(-50%); display: flex; flex-direction: column; gap: 15px; z-index: 305; }
.social-btn { width: 45px; height: 45px; border-radius: 50%; border: 1px solid var(--border); display: flex; justify-content: center; align-items: center; color: var(--text-primary); transition: 0.3s; cursor: pointer; font-size: 1.2rem; position: relative; background: var(--bg-color); }
.social-btn:hover { background: var(--accent); color: #fff; border-color: var(--accent); }

.social-mobile-flow { display: none; } 

#copyToast { position: fixed; bottom: 30px; left: 50%; transform: translateX(-50%); background: var(--accent); color: #fff; padding: 10px 20px; border-radius: 5px; opacity: 0; pointer-events: none; transition: 0.3s; z-index: 1000; font-family: var(--font-display); }
#copyToast.show { opacity: 1; bottom: 50px; }

.article-footer { margin-top: 100px; padding-top: 50px; border-top: 1px solid var(--border); }
.back-cover-btn { display: block; width: 100%; padding: 20px; border: 2px solid var(--text-primary); background: transparent; color: var(--text-primary); margin-bottom: 40px; font-size: 1.2rem; cursor: pointer; text-transform: uppercase; letter-spacing: 2px; }
.back-cover-btn:hover { background: var(--text-primary); color: var(--bg-color); }
.nav-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; }
.nav-item { display: flex; gap: 15px; align-items: center; cursor: pointer; padding: 15px; border: 1px solid transparent; transition: 0.3s; color: var(--text-primary); }
.nav-item:hover { background: var(--glass); border-color: var(--border); }
.nav-thumb { width: 80px; height: 80px; object-fit: cover; }
.nav-meta h5 { font-size: 0.8rem; opacity: 0.6; margin-bottom: 5px; text-transform: uppercase; color: var(--text-primary); }
.nav-meta h4 { font-size: 1.1rem; line-height: 1.2; text-transform: uppercase; color: var(--text-primary); }

/* --- İÇİNDEKİLER PANELİ --- */
.toc-toggle-btn { position: fixed; top: 90px; left: 40px; font-size: 2rem; cursor: pointer; z-index: 305; transition: 0.3s; color: var(--text-primary); }
.toc-toggle-btn:hover { color: var(--accent); transform: scale(1.1); }
.toc-panel {
    position: fixed; top: 0; left: 0; width: 350px; height: 100%; background: var(--glass-heavy);
    z-index: 1200; transform: translateX(-100%); transition: transform 0.4s cubic-bezier(0.77, 0, 0.175, 1);
    backdrop-filter: blur(20px); border-right: 1px solid var(--border); display: flex; flex-direction: column;
}
.toc-panel.active { transform: translateX(0); }
.toc-header { padding: 30px; border-bottom: 1px solid var(--border); display: flex; justify-content: space-between; align-items: center; }
.toc-header h3 { font-family: var(--font-display); font-size: 1.5rem; text-transform: uppercase; margin: 0; }
.toc-close { font-size: 1.5rem; cursor: pointer; color: var(--text-primary); transition: 0.3s; }
.toc-close:hover { color: var(--accent); transform: rotate(90deg); }
.toc-content { flex: 1; overflow-y: auto; padding: 20px; }
.toc-item { display: flex; gap: 15px; padding: 15px; border-bottom: 1px solid var(--border); cursor: pointer; transition: 0.2s; }
.toc-item:hover { background: var(--glass); }
.toc-item.active { border-left: 3px solid var(--accent); background: var(--glass); }
.toc-item.read .toc-title { color: #888; text-decoration: line-through; }
.toc-thumb { width: 60px; height: 60px; object-fit: cover; border-radius: 4px; }
.toc-info { flex: 1; }
.toc-title { font-size: 0.95rem; font-weight: 600; line-height: 1.3; margin-bottom: 5px; color: var(--text-primary); }
.toc-meta { font-size: 0.8rem; opacity: 0.6; }
.toc-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.5); z-index: 1199; opacity: 0; pointer-events: none; transition: 0.3s; }
.toc-overlay.active { opacity: 1; pointer-events: auto; }

/* --- RESUME TOAST --- */
.resume-toast {
    position: fixed; bottom: 30px; right: 30px; z-index: 2000;
    background: var(--glass-heavy); border: 1px solid var(--accent);
    padding: 20px; border-radius: 8px; backdrop-filter: blur(10px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    transform: translateY(100px); opacity: 0; transition: 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    pointer-events: none; max-width: 350px;
}
.resume-toast.show { transform: translateY(0); opacity: 1; pointer-events: auto; }
.resume-content { display: flex; flex-direction: column; gap: 15px; }
.resume-content span { font-size: 1rem; line-height: 1.4; color: var(--text-primary); }
.resume-actions { display: flex; gap: 10px; }
.resume-btn { padding: 8px 15px; border: none; border-radius: 4px; cursor: pointer; font-weight: bold; transition: 0.2s; }
.resume-btn.accept { background: var(--accent); color: #fff; flex: 1; }
.resume-btn.accept:hover { background: #fff; color: #000; }
.resume-btn.close { background: transparent; color: var(--text-primary); border: 1px solid var(--border); }
.resume-btn.close:hover { background: var(--glass); }

/* --- TTS BUTTON --- */
.tts-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border); 
    color: var(--text-primary);
    padding: 10px 20px; 
    border-radius: 50px; 
    cursor: pointer; 
    display: flex; 
    align-items: center; 
    gap: 10px;
    font-size: 0.95rem; 
    font-weight: 600;
    transition: all 0.3s ease; 
    height: fit-content; 
    margin-left: 20px; 
    white-space: nowrap;
    backdrop-filter: blur(5px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}
/* Dark Mode Specific Override */
html[data-mode="dark"] .tts-btn {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.3);
}

.tts-btn:hover { 
    border-color: var(--accent); 
    color: #fff; 
    background: var(--accent);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 60, 0, 0.4);
}
.tts-btn i { font-size: 1.1rem; }
.tts-btn.playing { 
    background: var(--accent); 
    color: #fff; 
    border-color: var(--accent); 
    animation: pulse 1.5s infinite; 
    box-shadow: 0 0 20px rgba(255, 60, 0, 0.6);
}
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(255, 60, 0, 0.7); } 70% { box-shadow: 0 0 0 10px rgba(255, 60, 0, 0); } 100% { box-shadow: 0 0 0 0 rgba(255, 60, 0, 0); } }

/* --- FLIPBOOK MODU --- */
.content-stream.flip-mode {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    gap: 40px;
    padding: 50px 5vw;
    height: 80vh;
    align-items: center;
    scroll-snap-type: x mandatory;
}
.content-stream.flip-mode .stream-card {
    min-width: 45vw;
    max-width: 45vw;
    height: 100%;
    margin-bottom: 0;
    scroll-snap-align: center;
    background: var(--bg-color);
    border: 1px solid var(--border);
    display: flex;
    flex-direction: column;
}
.content-stream.flip-mode .stream-inner {
    flex-direction: column !important;
    height: 100%;
}
.content-stream.flip-mode .stream-visual {
    width: 100%;
    height: 50%;
}
.content-stream.flip-mode .stream-content {
    width: 100%;
    height: 50%;
    position: static;
    padding: 30px;
    border: none;
    transform: none !important;
}
.content-stream.flip-mode .stream-card:hover .stream-content {
    transform: none;
}

/* --- ARCHIVE MODAL --- */
.archive-modal {
    position: fixed; inset: 0; background: rgba(0,0,0,0.85);
    z-index: 1500; opacity: 0; pointer-events: none; transition: 0.3s;
    display: flex; align-items: center; justify-content: center;
    backdrop-filter: blur(10px);
}
.archive-modal.active { opacity: 1; pointer-events: auto; }
.archive-modal-content {
    width: 90%; height: 90%; background: var(--bg-color);
    border: 1px solid var(--border); display: flex; flex-direction: column;
    position: relative;
}
.archive-close {
    position: absolute; top: 20px; right: 20px;
    width: 40px; height: 40px; font-size: 1.5rem;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer; z-index: 10; border: 1px solid var(--border);
    border-radius: 50%; transition: 0.3s; color: var(--text-primary);
}
.archive-close:hover { background: var(--accent); border-color: var(--accent); color: #fff; }
.archive-layout {
    display: flex; height: 100%;
}
.archive-sidebar {
    width: 250px; border-right: 1px solid var(--border);
    padding: 40px 20px; overflow-y: auto; background: var(--glass);
}
.archive-sidebar h3 {
    margin-bottom: 20px; font-family: var(--font-display);
    color: var(--accent);
}
.year-list { display: flex; flex-direction: column; gap: 10px; }
.year-item {
    padding: 10px 15px; cursor: pointer; border-bottom: 1px solid var(--border);
    transition: 0.2s; font-size: 1.1rem; color: var(--text-primary);
}
.year-item:hover, .year-item.active { background: var(--accent); color: #fff; padding-left: 20px; }
.archive-grid {
    flex: 1; padding: 40px; overflow-y: auto;
    display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 30px; align-content: flex-start;
}
.archive-card {
    cursor: pointer; transition: 0.3s;
}
.archive-card:hover { transform: translateY(-5px); }
.archive-thumb {
    width: 100%; height: 280px; position: relative; overflow: hidden;
    border: 1px solid var(--border); margin-bottom: 15px;
}
.archive-thumb img { width: 100%; height: 100%; object-fit: cover; }
.archive-issue-no {
    position: absolute; top: 10px; right: 10px;
    background: #fff; color: #000; padding: 5px 10px;
    font-weight: bold; font-family: var(--font-display);
}
.archive-info h4 { font-size: 1rem; margin-bottom: 5px; color: var(--text-primary); }
.archive-info span { font-size: 0.85rem; opacity: 0.6; color: var(--text-primary); }
.archive-card.filtered-out { display: none; }

@media (max-width: 768px) {
    .nav-bar { padding: 20px; border-bottom: 1px solid var(--border); } 
    .menu-close { top: 20px; right: 20px; }
    .archive-filter-container { top: 90px; left: 20px; } 
    .nav-arrow { display: none; }

    .library-container { flex-direction: column; height: auto; padding: 150px 20px 50px; overflow-y: auto; gap: 80px; cursor: auto; }
    .magazine-card { width: 100%; min-width: auto; height: 500px; }
    
    .reader-header-row { flex-direction: column; gap: 15px; margin-bottom: 20px; }
    .reader-title { font-size: 2rem; margin-bottom: 8px; }
    .meta-updated { font-size: 0.75rem; margin-bottom: 5px; }
    .tts-btn { margin-left: 0; width: 100%; justify-content: center; }
    .meta-elegant { gap: 15px; padding: 12px 0; margin-bottom: 20px; font-size: 0.8rem; }
    .headline-hero {
        align-items: flex-start;
        justify-content: flex-start;
        height: auto;
        min-height: auto;
    }
    
    .headline-visual {
        background-position: center center;
        object-position: center center;
        height: 100%;
    }
    
    .headline-visual::after {
        background: linear-gradient(180deg, rgba(0,0,0,0.2) 0%, rgba(0,0,0,0.4) 40%, rgba(0,0,0,0.85) 100%);
    }
    
    .headline-text { 
        padding: 140px 20px 30px; 
        justify-content: flex-start; 
        align-items: flex-start;
        max-width: 100%;
        width: 100%;
        position: relative;
        z-index: 5;
    }
    
    .headline-text .stream-tag {
        margin-bottom: 25px;
        font-size: 0.85rem;
        padding: 7px 15px;
    }
    
    .massive-title { 
        font-size: 9.35vw; 
        text-shadow: 2px 2px 15px rgba(0,0,0,0.9), 0 0 30px rgba(0,0,0,0.7); 
        margin-bottom: 20px;
        line-height: 1.2;
        max-width: 100%;
    }
    
    .spot-text { 
        font-size: 0.95rem; 
        border-left: 3px solid var(--accent); 
        margin-bottom: 25px;
        max-width: 100%;
        line-height: 1.5;
    }
    
    .read-btn {
        padding: 15px 35px;
        font-size: 0.85rem;
        letter-spacing: 2px;
        margin-bottom: 0;
    }
    .editor-note { padding: 30px 20px; margin: 30px 0; font-size: 1.1rem; }
    .content-stream { padding: 0 20px 100px; display: flex; flex-direction: column; gap: 40px; }
    .stream-card { margin-bottom: 20px; height: auto; display: block; box-shadow: 0 5px 20px rgba(0,0,0,0.1); }
    .stream-inner { flex-direction: column !important; min-height: auto; }
    .stream-card:nth-child(even) .stream-inner { flex-direction: column !important; } 
    .stream-visual { width: 100%; height: 250px; min-height: auto; }
    .stream-content { width: 100%; position: relative; right: auto; left: auto; top: auto; bottom: auto; padding: 30px 20px; margin-top: -20px; border: none; border-bottom: 1px solid var(--border); background: var(--bg-color); color: var(--text-primary) !important; box-shadow: none; border-radius: 0; }
    .stream-card:nth-child(even) .stream-content { transform: none; left: auto; box-shadow: none; }
    .stream-card:hover .stream-content { transform: none; }
    .stream-title { font-size: 1.8rem; }
    
    .social-sticky { display: none !important; } 
    .reader-title { margin-bottom: 15px; }
    .featured-image { margin-bottom: 10px; }
    .meta-elegant { margin-bottom: 10px; }
    .font-size-mobile {
        display: flex;
        flex-direction: row;
        justify-content: center;
        gap: 15px;
        margin: 8px 0;
        padding: 8px 0;
        background: transparent;
        border: none;
        backdrop-filter: none;
        position: static;
    }
    .social-mobile-flow { display: flex; justify-content: center; gap: 25px; margin: 8px 0 10px 0; padding: 8px 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
    .social-mobile-flow .social-btn { width: 40px; height: 40px; font-size: 1.2rem; border: none; background: transparent; color: var(--text-primary); }
    .social-mobile-flow .social-btn:hover { color: var(--accent); background: transparent; }
    .nav-grid { grid-template-columns: 1fr; }
    .font-size-desktop {
        display: none;
    }
    .reader-body > p:first-of-type {
        padding-right: 0;
    }
    .font-size-btn {
        width: 35px;
        height: 35px;
        font-size: 1rem;
    }
    /* Mobile ToC Adjustments */
    .toc-toggle-btn { display: none; }
    .mobile-toc-bar { display: flex; }
    .toc-panel { width: 100%; border-right: none; z-index: 1300; }
    .content-stream.flip-mode {
        padding: 20px;
        gap: 20px;
    }
    .content-stream.flip-mode .stream-card {
        min-width: 85vw;
        max-width: 85vw;
    }
    /* Mobile Archive Adjustments */
    .archive-layout { flex-direction: column; }
    .archive-sidebar { width: 100%; height: auto; max-height: 200px; padding: 20px; border-right: none; border-bottom: 1px solid var(--border); }
    .year-list { flex-direction: row; overflow-x: auto; padding-bottom: 10px; }
    .year-item { white-space: nowrap; border-bottom: none; border: 1px solid var(--border); padding: 5px 15px; border-radius: 20px; }
    .year-item:hover, .year-item.active { padding-left: 15px; }
    .archive-grid { padding: 20px; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 15px; }
    .archive-thumb { height: 200px; }
}

/* Dropdown specific overrides for better readability in Light and Book modes */
html[data-mode="light"] .archive-filter-container .archive-dropdown,
html[data-mode="light"] .archive-dropdown {
    background: #ffffff !important;
    border-color: #e0e0e0 !important;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1) !important;
}
html[data-mode="light"] .archive-filter-container .archive-option,
html[data-mode="light"] .archive-option {
    color: #000000 !important;
    border-bottom-color: #f0f0f0 !important;
}
html[data-mode="light"] .archive-filter-container .archive-option:hover,
html[data-mode="light"] .archive-option:hover {
    background: var(--accent) !important;
    color: #ffffff !important;
}

html[data-mode="book"] .archive-filter-container .archive-dropdown,
html[data-mode="book"] .archive-dropdown {
    background: #e3dcd2 !important;
    border-color: rgba(61,47,38,0.2) !important;
    box-shadow: 0 5px 15px rgba(61,47,38,0.1) !important;
}
html[data-mode="book"] .archive-filter-container .archive-option,
html[data-mode="book"] .archive-option {
    color: #3d2f26 !important;
    border-bottom-color: rgba(61,47,38,0.1) !important;
}
html[data-mode="book"] .archive-filter-container .archive-option:hover,
html[data-mode="book"] .archive-option:hover {
    background: var(--accent) !important;
    color: #ffffff !important;
}

/* Masthead specific overrides - Enhanced Specificity */
/* LIGHT MODE */
html[data-mode="light"] #mastheadModal .masthead-box {
    background: #ffffff !important;
    color: #000000 !important;
    border-color: #e0e0e0 !important;
}
html[data-mode="light"] #mastheadModal .masthead-box * {
    color: #000000 !important;
}

/* BOOK MODE */
html[data-mode="book"] #mastheadModal .masthead-box {
    background: #e3dcd2 !important;
    color: #3d2f26 !important;
    border-color: rgba(61,47,38,0.2) !important;
}
html[data-mode="book"] #mastheadModal .masthead-box * {
    color: #3d2f26 !important;
}

/* DARK MODE */
html[data-mode="dark"] #mastheadModal .masthead-box {
    background: #0f0f0f !important;
    color: #ffffff !important;
    border-color: var(--accent) !important;
}
html[data-mode="dark"] #mastheadModal .masthead-box *,
html[data-mode="dark"] #mastheadModal .masthead-box p,
html[data-mode="dark"] #mastheadModal .masthead-box span,
html[data-mode="dark"] #mastheadModal .masthead-box div,
html[data-mode="dark"] #mastheadModal .masthead-box li,
html[data-mode="dark"] #mastheadModal .masthead-box a,
html[data-mode="dark"] #mastheadModal .masthead-box strong,
html[data-mode="dark"] #mastheadModal .masthead-box b,
html[data-mode="dark"] #mastheadModal .masthead-box em,
html[data-mode="dark"] #mastheadModal .masthead-box i,
html[data-mode="dark"] #mastheadModal .masthead-box h1,
html[data-mode="dark"] #mastheadModal .masthead-box h2,
html[data-mode="dark"] #mastheadModal .masthead-box h3,
html[data-mode="dark"] #mastheadModal .masthead-box h4,
html[data-mode="dark"] #mastheadModal .masthead-box h5,
html[data-mode="dark"] #mastheadModal .masthead-box h6 {
    color: #ffffff !important;
}
html[data-mode="dark"] #mastheadModal .masthead-box h2 {
    color: var(--accent) !important;
}
/* Close modal color fix - ID Specificity */
html[data-mode="light"] #mastheadModal .close-modal { color: #000000 !important; border-color: rgba(0,0,0,0.3) !important; }
html[data-mode="book"] #mastheadModal .close-modal { color: #3d2f26 !important; border-color: rgba(61,47,38,0.3) !important; }
html[data-mode="dark"] #mastheadModal .close-modal { color: #ffffff !important; border-color: rgba(255,255,255,0.3) !important; }

/* Archive Modal Light/Book Mode Specifics */
html[data-mode="light"] .archive-modal-content {
    background: #ffffff !important;
    color: #000000 !important;
    border-color: #e0e0e0 !important;
}
html[data-mode="light"] .archive-sidebar { background: #f8f8f8 !important; border-right-color: #e0e0e0 !important; }
html[data-mode="light"] .archive-item, html[data-mode="light"] .archive-card h4, html[data-mode="light"] .year-item { color: #000000 !important; }
html[data-mode="light"] .archive-close { color: #000000 !important; border-color: #e0e0e0 !important; }

html[data-mode="book"] .archive-modal-content {
    background: #e3dcd2 !important;
    color: #3d2f26 !important;
    border-color: rgba(61,47,38,0.2) !important;
}
html[data-mode="book"] .archive-sidebar { background: rgba(61,47,38,0.05) !important; border-right-color: rgba(61,47,38,0.2) !important; }
html[data-mode="book"] .archive-item, html[data-mode="book"] .archive-card h4, html[data-mode="book"] .year-item { color: #3d2f26 !important; }
html[data-mode="book"] .archive-close { color: #3d2f26 !important; border-color: rgba(61,47,38,0.2) !important; }
