/* --- TEMEL AYARLAR --- */
:root {
    --bg-body: #050505; --bg-card: #121212; --bg-hover: #222222;
    --text-main: #ffffff; --text-muted: #808080; --accent: #ffffff;
    --border: #333333; --red: #e50914;
}
* { box-sizing: border-box; }
body { background: var(--bg-body); color: var(--text-main); font-family: 'Inter', sans-serif; margin: 0; line-height: 1.6; transition: 0.3s; opacity: 0; }
body.yuklendi { opacity: 1; }
a { color: var(--text-main); text-decoration: none; transition: 0.3s; }
.container { max-width: 1100px; margin: 0 auto; padding: 0 20px; }

/* --- HEADER (YENİLENMİŞ YAPI) --- */
header {
    background-color: #000; /* Gri/Siyah Header Arka Planı */
    border-bottom: 1px solid #222;
    padding: 20px 0 0 0; /* Üst boşluk var, alt boşluk yok (Menü yapışsın diye) */
    margin-bottom: 30px;
}

.header-inner {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Üst Satır: Logo ve Search */
.top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.logo-area {
    display: flex;
    align-items: center;
    gap: 15px; /* Logo ve slogan arası */
}

header h1 {
    margin: 0;
    line-height: 1;
    padding-right: 15px;
    border-right: 2px solid var(--red);
}

header h1 a {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 3.5rem;
    color: #fff;
    display: block;
    transform: translateY(3px);
}

header p {
    margin: 0;
    color: var(--text-muted);
    font-size: 0.9em;
    font-weight: 500;
    letter-spacing: 2px;
    text-transform: uppercase;
    white-space: nowrap; /* Slogan asla alt satıra inmez */
}

/* Search Container */
.search-container {
    width: 250px;
}
.search-container input {
    background: #111;
    border: 1px solid #333;
    padding: 10px 15px;
    color: #fff;
    font-family: 'Inter', sans-serif;
    width: 100%;
    border-radius: 4px;
    transition: 0.3s;
}
.search-container input:focus { border-color: var(--red); outline: none; background: #000; }

/* --- SEKMELER (ARTIK HEADER İÇİNDE) --- */
.tab-buttons {
    display: flex;
    gap: 25px;
    padding-bottom: 0; /* Çizgiyle birleşsin */
    overflow-x: auto;
    white-space: nowrap;
    /* Kaydırma çubuğunu gizle */
    scrollbar-width: none; 
    -ms-overflow-style: none;
}
.tab-buttons::-webkit-scrollbar { display: none; }

.tab-btn {
    background: transparent;
    border: none;
    color: var(--text-muted);
    padding: 10px 0 15px 0; /* Alt boşluk çizgiye değer */
    cursor: pointer;
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.4em;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    border-bottom: 3px solid transparent;
    opacity: 0.7;
}
.tab-btn:hover { color: #fff; opacity: 1; }
.tab-btn.active {
    color: #fff;
    border-bottom: 3px solid var(--red);
    opacity: 1;
}

/* --- İÇERİK BİLEŞENLERİ --- */
.welcome-box { background: url('https://www.transparenttextures.com/patterns/cubes.png'), linear-gradient(to bottom, #1a1a1a, #0a0a0a); padding: 50px; border-radius: 4px; border: 1px solid #222; text-align: center; margin-bottom: 30px; }
.welcome-box h2 { font-family: 'Bebas Neue', sans-serif; font-size: 3em; margin: 0 0 10px 0; letter-spacing: 1px; }
.quote-box { margin-top: 20px; padding-top: 20px; border-top: 1px solid #333; font-style: italic; color: var(--text-muted); }
.quote-author { display: block; margin-top: 5px; font-size: 0.9em; font-weight: 600; color: var(--red); font-style: normal; }

.timeline { position: relative; max-width: 800px; margin: 40px auto; }
.timeline::after { content: ''; position: absolute; width: 2px; background-color: #333; top: 0; bottom: 0; left: 20px; }
.timeline-item { padding: 10px 40px; position: relative; background-color: inherit; width: 100%; }
.timeline-item::after { content: ''; position: absolute; width: 12px; height: 12px; left: 15px; top: 15px; background-color: var(--bg-card); border: 2px solid var(--red); border-radius: 50%; z-index: 1; }
.timeline-date { font-family: 'Bebas Neue', sans-serif; font-size: 1.2em; color: var(--red); margin-bottom: 5px; }
.timeline-content { background: var(--bg-card); padding: 15px 20px; border-radius: 4px; border: 1px solid #222; }
.timeline-content h3 { margin: 0 0 5px 0; color: #fff; font-size: 1.1em; }

.link-list { list-style: none; padding: 0; display: grid; gap: 15px; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); }
.link-list li a { display: block; padding: 25px; background: var(--bg-card); border: 1px solid #222; border-radius: 4px; font-weight: 500; font-size: 1.1em; color: #ddd; position: relative; overflow: hidden; transition: all 0.5s cubic-bezier(0.2, 0.8, 0.2, 1); }
.link-list li a::before { content: ""; position: absolute; left: 0; top: 0; height: 100%; width: 4px; background: var(--red); transform: scaleY(0); transition: transform 0.2s; }
.link-list li a:hover { background: var(--bg-hover); color: #fff; transform: translateY(-5px) scale(1.02); border-color: #444; box-shadow: 0 20px 40px rgba(0,0,0,0.6); }
.link-list li a:hover::before { transform: scaleY(1); }

/* Odak Modu ve Diğerleri */
body.focus-mode header, body.focus-mode footer, body.focus-mode .back-link, body.focus-mode .related-notes, body.focus-mode .bibliography { display: none !important; }
body.focus-mode .container { max-width: 800px; }
body.focus-mode .paper { margin-top: 50px; border: none; background: transparent; }
body.focus-mode .content { border: none; background: transparent; padding: 0; }

.focus-btn { float: right; background: transparent; border: 1px solid #333; color: #666; padding: 5px 15px; border-radius: 20px; font-size: 0.8em; cursor: pointer; transition: 0.3s; }
.focus-btn:hover { color: #fff; border-color: #fff; }

.meta-data { font-size: 0.85em; color: #555; margin-bottom: 25px; padding-bottom: 15px; border-bottom: 1px solid #222; letter-spacing: 0.5px; }
.meta-icon { margin-right: 5px; color: var(--red); }

.term { border-bottom: 1px dashed var(--red); cursor: help; position: relative; }
.term:hover { color: #fff; }
.term::after { content: attr(data-tooltip); position: absolute; bottom: 100%; left: 50%; transform: translateX(-50%); background: #000; color: #fff; padding: 10px; border: 1px solid #333; border-radius: 4px; width: 200px; font-size: 0.85em; white-space: normal; visibility: hidden; opacity: 0; transition: 0.2s; z-index: 999; box-shadow: 0 5px 15px rgba(0,0,0,0.8); pointer-events: none; margin-bottom: 10px; }
.term:hover::after { visibility: visible; opacity: 1; }

.related-notes { margin-top: 50px; padding-top: 30px; border-top: 1px solid #222; }
.related-notes h3 { font-family: 'Bebas Neue'; color: #888; font-size: 1.5em; margin-bottom: 15px; }
.related-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 15px; }
.related-card { display: block; background: #111; padding: 15px; border: 1px solid #222; border-radius: 4px; font-size: 0.9em; color: #ccc; transition: 0.2s; }
.related-card:hover { border-color: var(--red); color: #fff; transform: translateY(-3px); }

.paper { margin-top: 20px; }
.content { background: var(--bg-card); padding: 60px; border-radius: 4px; border: 1px solid #222; font-size: 1.15em; line-height: 1.8; color: #ccc; }
.content h1 { font-family: 'Bebas Neue', sans-serif; font-size: 3.5em; color: #fff; margin-top: 0; letter-spacing: 1px; }
.content h2 { font-family: 'Bebas Neue', sans-serif; font-size: 2em; color: #fff; margin-top: 50px; letter-spacing: 1px; border-left: 4px solid var(--red); padding-left: 15px; }
.content strong { color: #fff; }

.bibliography { margin-top: 60px; padding-top: 20px; border-top: 1px solid #333; font-size: 0.9em; color: #666; }
.bibliography h3 { font-family: 'Bebas Neue'; color: #888; font-size: 1.5em; margin-bottom: 10px; }

@keyframes sahneGiris {
    0% { opacity: 0; transform: translateY(30px) scale(0.99); filter: blur(12px); }
    100% { opacity: 1; transform: translateY(0) scale(1); filter: blur(0); }
}
.tab-content.show, .paper:not(.gizli) .content { animation: sahneGiris 1.5s cubic-bezier(0.2, 0.8, 0.2, 1) forwards; }
.tab-content { display: none; }
.tab-content.show { display: block; }
footer { text-align: center; padding: 50px; color: #444; font-size: 0.8em; margin-top: 50px; border-top: 1px solid #111; letter-spacing: 1px; text-transform: uppercase; }

/* =========================================
   MOBİL DÜZENLEMELER (YENİ - FIXED)
   ========================================= */
@media screen and (max-width: 768px) {
    /* Genel Container */
    .container { padding: 0 15px; }

    /* Header'ı Dikey Yapıyoruz (Logo Üstte, Search Altta) */
    .top-bar {
        flex-direction: column;
        align-items: flex-start; /* Sola hizala */
        gap: 15px;
    }

    /* Logo ve Slogan Hizalama */
    .logo-area {
        width: 100%;
        justify-content: flex-start;
        /* Flex-wrap kapalı, yazı sıkışmaz */
        flex-wrap: nowrap; 
    }

    header h1 {
        padding-right: 5px;
        margin-right: 5px;
    }
    header h1 a { font-size: 2.2rem; }
    
    header p {
        font-size: 0.75rem; /* Slogan fontu */
        margin-top: 5px; /* Logoya hiza */
    }

    /* Arama Çubuğu - Tam Genişlik ve Logo Altında */
    .search-container {
        width: 100%;
    }
    .search-container input {
        width: 100%;
        height: 40px;
    }

    /* Menü - Header içinde ve Kaydırılabilir */
    .tab-buttons {
        margin-top: 10px;
        gap: 15px;
        width: 100%;
        padding-bottom: 0;
    }
    .tab-btn {
        font-size: 14px;
        padding-bottom: 10px;
    }

    /* İçerik Font Ayarları */
    .content { padding: 20px; }
    .content h1 { font-size: 2rem; }
    .content p, .content li { font-size: 1rem; }
    
    .link-list { grid-template-columns: 1fr; }
}