/* --- AYARLAR --- */
:root {
    --bg-color: #0f0f0f; 
    --text-primary: #ffffff; 
    --accent: #ff3c00; 
    --accent-text: #000;
    --glass: rgba(255, 255, 255, 0.05); 
    --border: rgba(255, 255, 255, 0.15);
    
    --font-display: 'Oswald', sans-serif;
    --font-body: 'Merriweather', serif;
    --speed: 0.4s;
}

body[data-mode="light"] { --bg-color: #ffffff; --text-primary: #111; --accent: #d63031; --accent-text: #fff; --border: rgba(0,0,0,0.1); }
body[data-mode="book"] { --bg-color: #e3dcd2; --text-primary: #3d2f26; --accent: #a63e26; --accent-text: #fff; --border: rgba(61,47,38,0.1); }

.dg-body * { margin: 0; padding: 0; box-sizing: border-box; cursor: none; }

.dg-body {
    background-color: var(--bg-color);
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 16px;
    overflow-x: hidden;
    transition: background var(--speed), color var(--speed);
}

/* Başlık Fontları */
.dg-body h1, .dg-body h2, .dg-body h3, .dg-body h4, .dg-body h5, .dg-body h6, 
.brand-logo, .menu-link, .year-btn, 
.issue-title, .issue-no-big, .issue-date-small,
.massive-title, .read-btn, .editor-label,
.stream-title, .stream-tag, .reader-title, .back-cover-btn, .nav-meta h5,
.filter-pill, .search-input {
    font-family: var(--font-display);
}

/* --- CURSOR --- */
#cursor {
    position: fixed; top: 0; left: 0; width: 12px; height: 12px;
    border: 1.5px solid #ffffff; border-radius: 50%; pointer-events: none; z-index: 9999;
    transform: translate(-50%, -50%); transition: width 0.3s, height 0.3s, background 0.3s;
    mix-blend-mode: difference;
}
#cursor.hovered { width: 40px; height: 40px; background: rgba(255,255,255,0.1); border-color: #ffffff; opacity: 1; }

/* --- NAVBAR --- */
.nav-bar {
    position: fixed; top: 0; left: 0; width: 100%;
    padding: 30px 40px;
    display: flex; justify-content: space-between; align-items: center;
    z-index: 500; mix-blend-mode: difference; color: #fff;
    pointer-events: none;
}
.nav-bar > * { pointer-events: auto; }

.brand-logo {
    font-size: 1.5rem; font-weight: 700; letter-spacing: -1px; text-transform: uppercase; cursor: pointer;
    flex-shrink: 0;
}
.brand-logo img { max-height: 40px; width: auto; }

/* ARAMA ALANI */
.search-container {
    flex-grow: 1;
    display: flex; justify-content: center;
    margin: 0 20px;
}
.search-wrapper {
    position: relative;
    width: 100%; max-width: 400px;
    border-bottom: 1px solid rgba(255,255,255,0.5);
    transition: 0.3s;
}
.search-wrapper:hover, .search-wrapper:focus-within { border-color: #fff; }

.search-input {
    width: 100%; background: transparent; border: none; outline: none;
    color: #fff; font-size: 1rem; padding: 5px 30px 5px 5px;
    text-transform: uppercase; letter-spacing: 1px;
}
.search-input::placeholder { color: rgba(255,255,255,0.5); }
.search-icon {
    position: absolute; right: 0; top: 50%; transform: translateY(-50%);
    font-size: 0.9rem; opacity: 0.7; pointer-events: none;
}

.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 #fff; border-radius: 50%;
    display: flex; align-items: center; justify-content: center; transition: 0.3s;
}
.theme-btn:hover { background: #fff; color: #000; }

.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: #fff; transition: 0.3s;
}
.menu-hamburger:hover span { background-color: var(--accent); }

/* --- MENÜ OVERLAY --- */
.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; left: 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;
}
.menu-link:hover { color: var(--accent); letter-spacing: 5px; }

/* --- REKLAM ALANLARI --- */
.dg-header-ad {
    position: fixed; top: 0; left: 0; width: 100%; z-index: 400;
    text-align: center; padding: 10px; background: rgba(0,0,0,0.8);
}
.dg-header-ad img { max-width: 100%; height: auto; max-height: 90px; }
.dg-footer-ad {
    position: fixed; bottom: 0; left: 0; width: 100%; z-index: 400;
    text-align: center; padding: 10px; background: rgba(0,0,0,0.8);
}
.dg-footer-ad img { max-width: 100%; height: auto; max-height: 90px; }

/* --- KÜNYE --- */
.masthead-modal {
    position: fixed; inset: 0; background: rgba(0,0,0,0.95); 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: 50px; border: 1px solid var(--accent);
    text-align: center; max-width: 500px; width: 90%; position: relative;
}
.close-modal { position: absolute; top: 15px; right: 20px; font-size: 1.5rem; cursor: pointer; }

/* --- FİLTRELER --- */
.year-sidebar {
    position: fixed; left: 40px; bottom: 40px;
    display: flex; flex-direction: column; gap: 20px; z-index: 90;
}
.year-btn {
    font-size: 1rem; opacity: 0.3; transform: rotate(-90deg); transform-origin: left bottom;
    width: 40px; height: 20px; white-space: nowrap; transition: 0.3s; cursor: pointer;
}
.year-btn.active { opacity: 1; color: var(--accent); font-weight: bold; }

.mobile-filter-bar {
    display: none; position: fixed; top: 100px; left: 0; width: 100%;
    padding: 10px 20px; overflow-x: auto; white-space: nowrap; z-index: 95;
    -webkit-overflow-scrolling: touch; 
}
.filter-pill {
    display: inline-block; padding: 5px 15px; border: 1px solid var(--border);
    border-radius: 20px; margin-right: 10px; font-size: 0.8rem; color: var(--text-primary); cursor: pointer;
}
.filter-pill.active { background: var(--accent); color: var(--accent-text); border-color: var(--accent); }

/* --- KÜTÜPHANE --- */
.library-container {
    position: absolute; top: 0; left: 0; width: 100%; height: 100vh;
    display: flex; align-items: center; overflow-x: auto; scroll-behavior: smooth;
    padding-left: 15vw; padding-right: 15vw; gap: 10vw;
}
.library-container::-webkit-scrollbar { display: none; }

.magazine-card {
    min-width: 40vw; height: 70vh; position: relative; transition: transform var(--speed); perspective: 1000px;
    cursor: pointer;
}
.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: 20px; left: 20px; display: flex; align-items: flex-start;
    color: #fff; mix-blend-mode: difference; z-index: 3;
}
.issue-no-big {
    font-size: 6rem; font-weight: 700; line-height: 0.8; -webkit-text-stroke: 2px #fff; color: transparent; margin-right: 10px;
}
.issue-date-small {
    font-size: 0.9rem; font-weight: 400; text-transform: uppercase; letter-spacing: 2px; margin-top: 5px; line-height: 1.2;
}
.issue-title {
    position: absolute; bottom: -30px; left: -20px; font-size: 3.5rem; line-height: 0.9; text-transform: uppercase;
    background: var(--bg-color); color: var(--text-primary); padding: 10px 20px; 
    transform: skewX(-10deg); box-shadow: 10px 10px 0 var(--accent);
}

/* --- ISSUE DETAIL --- */
#issue-detail {
    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;
}
#issue-detail.active { transform: translateY(0); }

.headline-hero {
    height: 100vh; width: 100%; display: grid; grid-template-columns: 1fr 1fr;
    position: relative; cursor: pointer;
}
.headline-hero:hover .headline-visual { transform: scale(1.02); }

.headline-visual {
    height: 100%; width: 100%; background-size: cover; background-position: center;
    position: relative; transition: transform 0.5s;
}
.headline-visual::after {
    content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, var(--bg-color) 0%, transparent 100%);
}

.headline-text {
    display: flex; flex-direction: column; justify-content: center; padding: 60px; z-index: 5;
}
.massive-title {
    font-size: 7vw; line-height: 1.1; text-transform: uppercase; margin-bottom: 30px; mix-blend-mode: difference;
}
.spot-text {
    font-size: 1.2rem; max-width: 400px; line-height: 1.6; margin-bottom: 40px;
    border-left: 3px solid var(--accent); padding-left: 20px;
}
.read-btn {
    background: transparent; border: 1px solid var(--text-primary); color: var(--text-primary);
    padding: 20px 40px; font-size: 1rem; text-transform: uppercase; letter-spacing: 3px; width: fit-content;
    cursor: pointer; transition: 0.3s;
}
.read-btn:hover { background: var(--text-primary); color: var(--bg-color); }

/* --- EDİTÖRÜN NOTU --- */
.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; color: var(--text-primary);
    position: relative; margin-top: 40px; margin-bottom: 80px;
}
.editor-note::before {
    content: '\201C'; font-family: var(--font-display); font-size: 4rem; color: var(--accent);
    position: absolute; top: 20px; left: 20px; opacity: 0.3;
}
.editor-label {
    font-size: 0.9rem; font-weight: bold; text-transform: uppercase; letter-spacing: 2px; 
    color: var(--accent); display: block; margin-bottom: 15px; font-style: normal;
}

/* --- ASİMETRİK İÇERİK AKIŞI --- */
.content-stream { padding: 0 10vw 100px; max-width: 1400px; margin: 0 auto; }
.stream-card { position: relative; margin-bottom: 120px; cursor: pointer; perspective: 1000px; }
.stream-inner { display: flex; align-items: center; position: relative; }
.stream-card:nth-child(even) .stream-inner { flex-direction: row-reverse; }

.stream-visual { width: 65%; height: 500px; overflow: hidden; position: relative; border-radius: 2px; }
.stream-img {
    width: 100%; height: 100%; object-fit: cover; filter: grayscale(100%) contrast(1.1);
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94), filter 0.6s;
}

.stream-content {
    width: 45%; background: rgba(15, 15, 15, 0.85); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--border); padding: 50px; position: absolute; z-index: 2;
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94), border-color 0.3s; right: 0;
}
.stream-card:nth-child(even) .stream-content { right: auto; left: 0; }

body[data-mode="light"] .stream-content { background: rgba(255,255,255,0.9); }
body[data-mode="book"] .stream-content { background: rgba(253, 246, 227, 0.9); }

.stream-tag { display: inline-block; color: var(--accent); font-size: 0.9rem; font-weight: bold; letter-spacing: 2px; text-transform: uppercase; margin-bottom: 20px; }
.stream-title { font-size: 3rem; line-height: 1; text-transform: uppercase; color: var(--text-primary); margin-bottom: 20px; }
.stream-desc { font-size: 1.1rem; line-height: 1.6; color: var(--text-primary); opacity: 0.8; margin-bottom: 30px; }
.stream-meta { font-size: 0.8rem; color: var(--text-primary); opacity: 0.5; display: flex; gap: 15px; border-top: 1px solid var(--border); padding-top: 15px; }

.stream-card:hover .stream-img { filter: grayscale(0%); transform: scale(1.05); }
.stream-card:hover .stream-content { border-color: var(--accent); transform: translateY(-20px); box-shadow: 0 30px 60px rgba(0,0,0,0.2); }

/* --- READER MODAL --- */
.reader-modal {
    position: fixed; inset: 0; background: var(--bg-color); z-index: 300;
    clip-path: circle(0% at 50% 50%); transition: clip-path 0.5s ease-in-out; overflow-y: auto;
}
.reader-modal.open { clip-path: circle(150% at 50% 50%); }

.reader-container { max-width: 800px; margin: 100px auto; padding: 0 20px; position: relative; }

.reader-title { font-size: 3.5rem; line-height: 1.1; margin-bottom: 30px; color: var(--text-primary); text-transform: uppercase; }
.featured-image { width: 100%; height: auto; max-height: 500px; object-fit: cover; border-radius: 4px; margin-bottom: 20px; }

.meta-elegant {
    display: flex; align-items: center; justify-content: flex-start; gap: 30px;
    font-size: 0.85rem; letter-spacing: 1px; color: var(--text-primary); opacity: 0.8;
    border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
    padding: 15px 0; margin-bottom: 40px;
}
.meta-item { display: flex; align-items: center; gap: 8px; }
.meta-item i { color: var(--accent); font-size: 0.9rem; }

.reader-body { font-size: 1.3rem; line-height: 1.9; margin-top: 30px; }
.reader-body p { margin-bottom: 20px; }

.close-reader-btn {
    position: fixed; top: 90px; right: 40px; font-size: 2rem; cursor: pointer; z-index: 305; color: var(--text-primary); transition: 0.3s;
}
.close-reader-btn:hover { color: var(--accent); transform: rotate(90deg); }

.social-sticky {
    position: fixed; left: 30px; top: 50%; transform: translateY(-50%);
    display: flex; flex-direction: column; gap: 15px; z-index: 305;
}
.social-btn {
    width: 40px; height: 40px; 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; text-decoration: none;
}
.social-btn:hover { background: var(--accent); color: #fff; border-color: var(--accent); }

.article-footer { margin-top: 100px; padding-top: 50px; border-top: 1px solid var(--border); }
.nav-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; margin-top: 40px; }
.nav-item { display: flex; gap: 15px; align-items: center; cursor: pointer; padding: 10px; border: 1px solid transparent; text-decoration: none; color: var(--text-primary); }
.nav-item:hover { background: var(--glass); border-color: var(--border); }
.nav-thumb { width: 80px; height: 80px; object-fit: cover; }

.back-cover-btn {
    display: block; width: 100%; padding: 20px; text-align: center;
    border: 2px solid var(--text-primary); background: transparent; color: var(--text-primary);
    font-size: 1.2rem; text-transform: uppercase; letter-spacing: 2px; cursor: pointer; margin-bottom: 20px;
    text-decoration: none; transition: 0.3s;
}
.back-cover-btn:hover { background: var(--text-primary); color: var(--bg-color); }

/* --- RESPONSIVE CSS --- */
@media (max-width: 768px) {
    #cursor { display: none; } 
    .dg-body * { cursor: auto; }
    .nav-bar { padding: 20px; }
    .brand-logo { font-size: 1.2rem; }
    .nav-controls { gap: 15px; }
    
    .search-container { margin: 0 10px; }
    .search-wrapper { max-width: 150px; }
    .search-input { font-size: 0.8rem; padding: 5px; }

    .mobile-filter-bar { display: block; }
    .year-sidebar { display: none; }

    .library-container { flex-direction: column; height: auto; padding: 130px 20px 50px; overflow-y: auto; gap: 80px;}
    .magazine-card { width: 100%; min-width: auto; height: 500px; margin-bottom: 0; }
    .issue-title { font-size: 2.5rem; bottom: -30px; }

    .headline-hero { display: block; height: 100vh; position: relative; }
    .headline-visual { position: absolute; top: 0; left: 0; width: 100%; height: 100%; z-index: 1; }
    .headline-visual::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.2) 60%, transparent 100%); }
    .headline-text { 
        position: relative; z-index: 5; height: 100%; justify-content: flex-end; 
        padding: 40px 20px 80px 20px; background: none; 
    }
    .massive-title { font-size: 3.5rem; color: #fff; mix-blend-mode: normal; text-shadow: 0 2px 10px rgba(0,0,0,0.5); }
    .spot-text { color: rgba(255,255,255,0.9); border-color: var(--accent); margin-bottom: 20px;}

    .editor-note { padding: 40px 20px; margin: 20px; font-size: 1.1rem; }

    .content-stream { padding: 40px 20px; }
    .stream-card { margin-bottom: 60px; }
    .stream-inner, .stream-card:nth-child(even) .stream-inner { flex-direction: column; align-items: flex-start; }
    .stream-visual { width: 100%; height: 300px; }
    .stream-content, .stream-card:nth-child(even) .stream-content {
        width: 90%; position: relative; margin-top: -50px; 
        margin-left: auto; margin-right: auto; right: auto; left: auto;
        padding: 30px; border: 1px solid var(--accent);
        background: var(--bg-color);
    }
    .stream-title { font-size: 2rem; }
    
    .social-sticky {
        display: flex; flex-direction: row; position: fixed; bottom: 0; top: auto; left: 0; width: 100%;
        background: var(--bg-color); padding: 15px; border-top: 1px solid var(--border); justify-content: center;
    }
    .reader-container { padding: 80px 20px 100px 20px; }
    .nav-grid { grid-template-columns: 1fr; }
    .meta-elegant { flex-direction: column; align-items: flex-start; gap: 10px; }
    
    .reader-title { font-size: 2.5rem; }
    .close-reader-btn { top: 80px; right: 20px; }
}

