/* =======================================================
   VOICERO ULTIMATE DOCS THEME (100% FIXED & LOCKED)
   ======================================================= */
:root {
    --bg-dark: #0B0E14;
    --text-main: #FFFFFF;
    --text-muted: #A1A1AA;
    --primary-color: #5865F2;
    --gradient-1: #8A2387;
    --gradient-2: #E94057;
    --gradient-3: #F27121;
    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.08);
    --code-bg: rgba(11, 14, 20, 0.8);
}

* { box-sizing: border-box; }

/* KİLİT NOKTASI: body ve html tamamen sabitlendi. */
body, html {
    margin: 0; padding: 0; 
    width: 100vw; height: 100vh;
    position: fixed; 
    top: 0; left: 0; right: 0; bottom: 0;
    font-family: 'Poppins', sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-main);
    overflow: hidden; 
    overscroll-behavior: none;
    -webkit-font-smoothing: antialiased;
}

/* --- Glow Efektleri --- */
.glow-orb { position: absolute; border-radius: 50%; filter: blur(120px); z-index: 1; opacity: 0.3; pointer-events: none; }
.orb-1 { top: -100px; left: -100px; width: 500px; height: 500px; background: var(--primary-color); }
.orb-2 { bottom: -100px; right: 20%; width: 400px; height: 400px; background: var(--gradient-2); }

/* --- Ortak Glass --- */
.glass-panel { background: var(--glass-bg); backdrop-filter: blur(12px); border: 1px solid var(--glass-border); }
.glass-card { background: var(--glass-bg); backdrop-filter: blur(12px); border: 1px solid var(--glass-border); border-radius: 20px; transition: transform 0.3s, border-color 0.3s; }

/* --- Ana Layout --- */
.doc-wrapper { display: flex; width: 100%; height: 100%; position: relative; z-index: 10; overflow: hidden; }

/* --- Sol Menü (Sidebar) --- */
.doc-sidebar { width: 300px; height: 100%; flex-shrink: 0; display: flex; flex-direction: column; border-top: none; border-bottom: none; border-left: none; z-index: 20; }
.doc-brand { padding: 30px; display: flex; align-items: center; gap: 10px; border-bottom: 1px solid var(--glass-border); flex-shrink: 0; }
.gradient-text { font-size: 24px; font-weight: 800; background: linear-gradient(135deg, var(--gradient-1), var(--gradient-2), var(--gradient-3)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.badge { background: rgba(88, 101, 242, 0.1); border: 1px solid var(--primary-color); color: #a4adff; padding: 4px 10px; border-radius: 20px; font-size: 11px; font-weight: 600; }

#doc-nav { padding: 25px; overflow-y: auto; flex: 1; }
#doc-nav::-webkit-scrollbar { width: 6px; }
#doc-nav::-webkit-scrollbar-track { background: transparent; }
#doc-nav::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, 0.1); border-radius: 10px; }

#doc-nav ul { list-style: none; padding: 0; margin: 0; }
#doc-nav li { margin-bottom: 10px; }
#doc-nav a { display: block; padding: 12px 18px; border-radius: 12px; color: var(--text-muted); text-decoration: none; font-size: 15px; font-weight: 500; transition: 0.3s; }
#doc-nav a:hover { background: rgba(255, 255, 255, 0.05); color: var(--text-main); transform: translateX(5px); }
#doc-nav a.active { background: linear-gradient(135deg, rgba(88, 101, 242, 0.2), transparent); border-left: 3px solid var(--primary-color); color: var(--text-main); font-weight: 600; box-shadow: 0 4px 15px rgba(88, 101, 242, 0.1); }

/* --- TOC (Menü Altı İçindekiler) --- */
.toc-list { list-style: none; padding-left: 20px !important; margin: 5px 0 15px 0 !important; border-left: 1px solid var(--glass-border); }
.toc-list li { margin-bottom: 2px !important; }
.toc-list a { padding: 6px 12px !important; font-size: 13px !important; color: var(--text-muted) !important; border-radius: 6px !important; }
.toc-list a:hover { color: var(--text-main) !important; background: rgba(255,255,255,0.03) !important; transform: none !important; }
.toc-h2 { font-weight: 500; }
.toc-h3 { padding-left: 15px; font-size: 12px !important; opacity: 0.8; }

/* --- Sağ İçerik Alanı (Main) --- */
.doc-main { flex: 1; height: 100%; display: flex; flex-direction: column; overflow-y: auto; overflow-x: hidden; scroll-behavior: smooth; position: relative; z-index: 15; }
.doc-main::-webkit-scrollbar { width: 8px; }
.doc-main::-webkit-scrollbar-track { background: transparent; }
.doc-main::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, 0.15); border-radius: 10px; }

/* --- Header --- */
.doc-header { position: sticky; top: 0; z-index: 100; flex-shrink: 0; padding: 15px 40px; display: flex; justify-content: space-between; align-items: center; border-left: none; border-right: none; border-top: none; }
.breadcrumb { font-weight: 600; color: var(--text-muted); font-size: 14px; }
.btn-glass { background: var(--glass-bg); border: 1px solid var(--glass-border); color: var(--text-main); padding: 8px 20px; border-radius: 30px; text-decoration: none; font-weight: 600; font-size: 13px; transition: 0.3s; }
.btn-glass:hover { background: rgba(255, 255, 255, 0.1); }

/* --- İçerik Sarmalayıcı --- */
.doc-content-wrapper { padding: 50px 40px 100px; max-width: 900px; margin: 0 auto; width: 100%; }
.doc-content { width: 100%; }

/* --- Typography --- */
.gradient-title { font-size: 50px; font-weight: 800; margin-bottom: 40px; background: linear-gradient(135deg, var(--text-main), var(--text-muted)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; letter-spacing: -1px; }
.doc-content h2 { font-size: 28px; font-weight: 700; margin-top: 60px; margin-bottom: 25px; display: flex; align-items: center; gap: 10px; }
.doc-content h2::before { content: ''; display: block; width: 6px; height: 28px; background: var(--primary-color); border-radius: 4px; }
.doc-content h3 { font-size: 20px; font-weight: 600; margin-top: 40px; margin-bottom: 15px; }
.doc-content p { font-size: 16px; line-height: 1.8; color: var(--text-muted); margin-bottom: 25px; }
.doc-content a { color: var(--primary-color); text-decoration: none; font-weight: 600; }
.doc-content a:hover { text-shadow: 0 0 10px rgba(88, 101, 242, 0.4); }
.doc-content ul, .doc-content ol { color: var(--text-muted); margin-bottom: 25px; padding-left: 20px; line-height: 1.8; }
.doc-content li { margin-bottom: 10px; }

/* --- Anchors (Linklenebilir Başlıklar) --- */
.heading-anchor { position: relative; display: flex; align-items: center; gap: 8px; scroll-margin-top: 100px; }
.anchor-link { opacity: 0; color: var(--primary-color) !important; font-weight: normal !important; text-decoration: none !important; font-size: 80%; transition: opacity 0.2s; }
.heading-anchor:hover .anchor-link { opacity: 1; }

/* --- Kod Blokları --- */
.doc-content p code, .doc-content li code { background: rgba(88, 101, 242, 0.15); color: #a4adff; padding: 4px 8px; border-radius: 8px; font-family: 'Consolas', monospace; font-size: 14px; font-weight: 500; }
.doc-content pre { background: var(--code-bg) !important; padding: 25px; border-radius: 20px; border: 1px solid var(--glass-border); margin: 30px 0; box-shadow: inset 0 0 20px rgba(0,0,0,0.5); overflow-x: auto; }
.doc-content pre code { font-family: 'Consolas', monospace; font-size: 14px; line-height: 1.6; background: transparent !important; color: #E4E4E7; padding: 0; border: none; }
.doc-content pre::-webkit-scrollbar { height: 6px; }
.doc-content pre::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.1); border-radius: 4px; }

/* =======================================================
   UYARI KUTULARI VE ALINTILAR (YENİLENDİ)
   ======================================================= */
.doc-alert { margin: 30px 0; padding: 20px 25px; display: flex; gap: 15px; align-items: center; }
.doc-alert:hover { border-color: rgba(255,255,255,0.15); transform: translateY(-3px); }
.alert-icon { font-size: 24px; line-height: 1; flex-shrink: 0; }
.alert-content p { margin: 0; color: var(--text-main); font-size: 15px; line-height: 1.6; }
.alert-content strong { font-weight: 700; color: #FFFFFF; } /* "İPUCU:" gibi bold yazılar daha parlak olsun */

/* Uyarı Renkleri */
.alert-info { background: linear-gradient(135deg, rgba(88, 101, 242, 0.15), transparent); border-left: 4px solid var(--primary-color); }
.alert-warning { background: linear-gradient(135deg, rgba(242, 113, 33, 0.15), transparent); border-left: 4px solid #F5A623; }
.alert-danger { background: linear-gradient(135deg, rgba(233, 64, 87, 0.15), transparent); border-left: 4px solid #E94057; }

/* Normal Alıntı (> işareti ile yapılanlar) */
.standard-quote {
    margin: 30px 0; padding: 18px 24px;
    background: var(--glass-bg); backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-left: 4px solid var(--text-muted); border-radius: 0 16px 16px 0;
    font-style: italic; color: var(--text-muted);
}
.standard-quote p { margin: 0; }


/* --- Tablolar --- */
.doc-table-wrapper { overflow-x: auto; margin: 40px 0; padding: 0; width: 100%; border-radius: 16px; border: 1px solid var(--glass-border); background: var(--glass-bg); backdrop-filter: blur(10px); }
.doc-content table { width: 100%; border-collapse: collapse; min-width: 600px; }
.doc-content th, .doc-content td { padding: 20px 25px; border-bottom: 1px solid var(--glass-border); text-align: left; }
.doc-content th { background: rgba(255,255,255,0.02); color: var(--text-main); font-weight: 600; }
.doc-content td { color: var(--text-muted); font-size: 15px; }
.doc-content tr:last-child td { border-bottom: none; }
.doc-content tr:hover td { background: rgba(255,255,255,0.02); }

/* --- Görseller --- */
.doc-image { margin: 40px 0; padding: 20px; display: flex; flex-direction: column; align-items: center; width: 100%; box-sizing: border-box;}
.doc-image img { max-width: 100%; height: auto; border-radius: 12px; }
.doc-image figcaption { margin-top: 15px; font-size: 14px; color: var(--text-muted); text-align: center; }

/* --- Pagination (Sayfa Altı Yönlendirme) --- */
.doc-pagination { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 60px; padding-top: 40px; border-top: 1px solid var(--glass-border); width: 100%; }
.page-nav { display: flex; flex-direction: column; padding: 20px; background: var(--glass-bg); border: 1px solid var(--glass-border); border-radius: 16px; text-decoration: none; transition: all 0.3s; }
.page-nav:hover { background: rgba(255,255,255,0.05); border-color: rgba(255,255,255,0.2); transform: translateY(-3px); }
.page-nav.next { text-align: right; align-items: flex-end; }
.nav-label { font-size: 13px; color: var(--text-muted); text-transform: uppercase; letter-spacing: 1px; margin-bottom: 5px; }
.nav-title { font-size: 18px; font-weight: 600; color: var(--primary-color); }

/* --- Mobil Uyum --- */
/* @media (max-width: 768px) {
    .doc-wrapper { flex-direction: column; }
    .doc-sidebar { width: 100%; height: auto; max-height: 35vh; flex-shrink: 0; overflow-y: auto; border-right: none; border-bottom: 1px solid var(--glass-border); position: relative; z-index: 100; background: rgba(11, 14, 20, 0.95); backdrop-filter: blur(15px); }
    .doc-header { display: none; }
    .doc-main { flex: 1; }
    .doc-content-wrapper { padding: 30px 20px 80px; }
    .gradient-title { font-size: 36px; }
    .doc-content h2 { font-size: 24px; }
    .doc-pagination { grid-template-columns: 1fr; gap: 15px; margin-top: 40px; }
} */
 /* =======================================================
   MOBİL MENÜ BUTONLARI (Sadece Mobilde Görünür)
   ======================================================= */
.mobile-menu-btn {
    display: none; position: absolute; top: 15px; left: 15px; z-index: 100;
    width: 45px; height: 45px; border-radius: 12px;
    align-items: center; justify-content: center;
    color: var(--text-main); cursor: pointer; border: 1px solid var(--glass-border);
}
.mobile-close-btn {
    display: none; background: transparent; border: none; color: var(--text-muted);
    cursor: pointer; padding: 5px; margin-left: auto;
}
.mobile-overlay {
    display: none; position: fixed; inset: 0; background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px); z-index: 90; opacity: 0; transition: opacity 0.3s;
}

/* --- Mobil Uyum (Hamburger Menü Mantığı) --- */
@media (max-width: 768px) {
    .mobile-menu-btn { display: flex; }
    .mobile-close-btn { display: block; }
    
    .doc-sidebar { 
        position: fixed; top: 0; left: -320px; /* Ekranın sol dışına sakla */
        height: 100vh; width: 280px; max-height: none; z-index: 110; 
        background: rgba(11, 14, 20, 0.98); border-right: 1px solid var(--glass-border); 
        transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1); 
    }
    
    /* Menü açıldığında devreye girecek class'lar */
    .doc-sidebar.active { transform: translateX(320px); }
    .mobile-overlay.active { display: block; opacity: 1; }

    .doc-header { display: none; } /* Üst menüyü mobilde gizle */
    .doc-main { width: 100vw; padding-top: 60px; /* Hamburger butonu için boşluk */ }
    .doc-content-wrapper { padding: 20px 20px 80px; }
    .gradient-title { font-size: 32px; margin-bottom: 20px; }
    .doc-content h2 { font-size: 24px; margin-top: 40px; }
    .doc-pagination { grid-template-columns: 1fr; gap: 15px; margin-top: 40px; }
}