/* ===================================================================
   TEKNOELEKTRIK.TR - STYLE.CSS (V15.0 - GRAND MASTER FULL)
   Kapsam: Orijinal Tasarım + Sidebar Fix + Gündüz Modu Onarımı
   Durum: %100 Eksiksiz Birleştirilmiş Dosya
   =================================================================== */

html, body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    font-feature-settings: "kern" 1, "liga" 1, "calt" 1;
}

.text-3d, h1, h2, h3, h4, h5, h6, .neon-header, .widget-title, .card-title {
    font-family: 'Orbitron', 'Exo 2', sans-serif !important;
    font-weight: 700;
}

:lang(tr) { text-transform: none; }

/* ===================================================================
   1. RENK PALETİ (VARIABLES) - GÜNCELLENDİ
   =================================================================== */
:root {
    /* GÜNDÜZ MODU (Varsayılan - Light) */
    --bg-color: #f0f4f8; 
    --surface-color: #ffffff;
    
    /* Metin Renkleri (Gündüz İçin KESİN KOYU) */
    --text-main: #000080; /* Lacivert */
    --text-sub: #556677;  /* Koyu Gri */
    --text-desc: #334455; /* Açıklama Metinleri */
    
    --circuit-color: #00d2ff; /* Neon Mavi */
    --circuit-glow: rgba(0, 210, 255, 0.6);
    --success-color: #009900;
    --danger-color: #cc0000;
    
    --shadow-dark: #d1d9e6;
    --shadow-light: #ffffff;
    --glass-bg: rgba(255, 255, 255, 0.75);
    --glass-border: rgba(255, 255, 255, 0.5);
    --radius-main: 20px;
    
    /* Prompt & Diğerleri */
    --prompt-bg: #000080; 
    --prompt-text: #ffffff;
    --text-color: var(--text-main);
    --text-color-secondary: var(--text-sub);
    --glow-color: var(--circuit-color);
    --glow-color-yellow: #ffd700;
    --border-color: rgba(0, 210, 255, 0.2);
    --bg-glass-container: var(--glass-bg);
}

/* GECE MODU (Dark) */
html.theme-dark {
    --bg-color: #0f172a; 
    --surface-color: #1e293b; 
    
    /* Metin Renkleri (Gece İçin KESİN AÇIK) */
    --text-main: #e2e8f0; /* Açık Gri/Beyaz */
    --text-sub: #94a3b8;  /* Orta Gri */
    --text-desc: #cbd5e1; /* Açık Gri */
    
    --circuit-color: #00d2ff;
    --success-color: #4ade80; 
    --danger-color: #f87171;
    
    --shadow-dark: #020617; 
    --shadow-light: #334155;
    --glass-bg: rgba(30, 41, 59, 0.8);
    --glass-border: rgba(255, 255, 255, 0.1);
    
    --prompt-bg: #0f172a;
    --border-color: rgba(255, 255, 255, 0.1);
}

/* ===================================================================
   2. GENEL AYARLAR & RESET
   =================================================================== */
* { box-sizing: border-box; margin: 0; padding: 0; }

body {
    background-color: var(--bg-color);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
    padding-top: 0;
}

a { text-decoration: none; color: inherit; transition: 0.3s; }
ul { list-style: none; }

.container {
    max-width: 1450px; margin: 0 auto; padding: 0 20px; position: relative; z-index: 2;
}

/* ===================================================================
   3. ARKA PLAN ANİMASYONU (HEXAGON)
   =================================================================== */
.background-animation { 
    position: fixed; top: 0; left: 0; width: 100%; height: 100vh; z-index: 0; pointer-events: none; 
}
.background-animation svg { 
    position: absolute; width: 150%; height: 150%; top: -25%; left: -25%; 
}
.hexagon { 
    fill: rgba(255, 255, 255, 0.3); stroke: rgba(0, 210, 255, 0.1); stroke-width: 1; 
    transition: fill 0.5s ease, stroke 0.5s ease; 
}
html.theme-dark .hexagon { fill: rgba(30, 41, 59, 0.4); }
.hexagon.neon-pulse {
    stroke: var(--circuit-color); stroke-width: 2; fill: rgba(0, 210, 255, 0.1); 
    filter: drop-shadow(0 0 5px var(--circuit-color));
}

/* ===================================================================
   4. ÖZEL EFEKT SINIFLARI (CORE DESIGN)
   =================================================================== */
.box-3d, .module-3d { 
    background: var(--surface-color);
    border-radius: var(--radius-main);
    box-shadow: 10px 10px 20px var(--shadow-dark), -10px -10px 20px var(--shadow-light);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative; z-index: 1; overflow: hidden;
    border: 1px solid transparent;
}
.box-3d:hover, .module-3d:hover {
    transform: translateY(-5px);
    box-shadow: 15px 15px 30px var(--shadow-dark), -15px -15px 30px var(--shadow-light);
}

.text-3d {
    color: var(--text-main);
    text-shadow: 1px 1px 0px #a0a0c0, 2px 2px 4px rgba(0,0,0,0.1);
    font-weight: 800; letter-spacing: 0.5px; font-family: 'Orbitron', sans-serif;
}
html.theme-dark .text-3d { text-shadow: none; }

.circuit-border { position: relative; }
.circuit-border::before {
    content: ''; position: absolute; top: -50%; left: -50%; width: 200%; height: 200%;
    background: conic-gradient(transparent, transparent, transparent, var(--circuit-color));
    animation: rotateCircuit 4s linear infinite; z-index: -2;
}
.circuit-border::after {
    content: ''; position: absolute; inset: 3px; background: var(--surface-color);
    border-radius: calc(var(--radius-main) - 3px); z-index: -1;
}
@keyframes rotateCircuit { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }

.flash-effect { position: relative; overflow: hidden; }
.flash-effect::before {
    content: ''; position: absolute; top: 0; left: -100%; width: 50%; height: 100%;
    background: linear-gradient(to right, transparent, rgba(255,255,255,0.8), transparent);
    transform: skewX(-25deg); transition: 0.6s; z-index: 10; pointer-events: none;
}
.flash-effect:hover::before { left: 150%; }

/* ===================================================================
   5. HEADER, NAVBAR VE FİNANSAL BAR
   =================================================================== */
.financial-bar {
    /* Genişliği Kapsayıcıya Değil, Ekrana Göre Ayarla */
    width: 100vw; 
    max-width: 100vw;
    
    /* Ortalamayı Boz ve Sola Yasla */
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    
    /* Görünüm Ayarları */
    background: var(--surface-color);
    border-bottom: 1px solid rgba(0,0,0,0.05);
    height: 40px;
    z-index: 100;
    
    /* İçerik Hizalama */
    display: flex;
    align-items: center;
    overflow: hidden; /* Taşan yazıları gizle */
    box-sizing: border-box;
}

/* Kayan Yazı Alanı */
.financial-track { 
    display: flex; 
    animation: scrollInfinite 60s linear infinite; /* Hız ayarı */
    white-space: nowrap; 
    padding-left: 0;
    width: 100%;
}

/* Global Scrollbar Oluşmasını Engelle (Body'e ekli değilse ekle) */
html, body {
    overflow-x: hidden !important;
}
.fin-item { margin-right: 30px; display: flex; align-items: center; gap: 5px; color: var(--text-sub); }
.rate-up { color: var(--success-color); font-weight: bold; margin-left: 5px; }
.rate-down { color: var(--danger-color); font-weight: bold; margin-left: 5px; }
.rate-icon { font-size: 10px; vertical-align: middle; }

header { padding-top: 10px; padding-bottom: 20px; margin-top: 0 !important; position: relative; z-index: 10; }
.header-inner { display: flex; justify-content: space-between; align-items: center; min-height: 70px; }
.nav-group { display: flex; gap: 12px; align-items: center; }
.nav-item {
    padding: 10px 18px; font-size: 13px; font-weight: 700; cursor: pointer;
    min-width: 85px; text-align: center; display: flex; align-items: center; justify-content: center;
}
.logo { font-size: 28px; text-transform: uppercase; letter-spacing: 1px; margin: 0 20px; text-align: center; }

/* HEADER USER DROPDOWN (GÜNCEL) */
.user-dropdown { position: relative; display: inline-block; height: 100%; z-index: 100; }
.user-dropdown::after {
    content: ''; position: absolute; top: 100%; left: 0; width: 100%; height: 15px; background: transparent; display: block;
}
.user-dropdown-content {
    display: none; position: absolute; right: 0; top: calc(100% + 10px);
    min-width: 240px; padding: 5px 0; background-color: var(--surface-color) !important;
    border: 1px solid var(--circuit-color); border-radius: 12px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.2); z-index: 1000;
}
.user-dropdown:hover .user-dropdown-content {
    display: block; animation: slideDownFade 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.user-dropdown-content a {
    display: flex; align-items: center; gap: 10px; padding: 12px 20px;
    text-decoration: none; font-size: 0.9rem; font-weight: 600;
    color: var(--text-main) !important; border-bottom: 1px solid rgba(0,0,0,0.05);
    transition: 0.2s; background: transparent;
}
.user-dropdown-content a:last-child { border-bottom: none; }
.user-dropdown-content a:hover {
    background-color: rgba(0, 210, 255, 0.08); color: var(--circuit-color) !important; padding-left: 25px;
}
.user-dropdown-content a i { width: 20px; text-align: center; color: var(--text-sub); }
.user-dropdown-content a:hover i { color: var(--circuit-color); }
@keyframes slideDownFade { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: translateY(0); } }
html.theme-dark .user-dropdown-content { background-color: #1e293b !important; border-color: rgba(255,255,255,0.1); }

/* ===================================================================
   6. SAYFA İÇERİK BİLEŞENLERİ (TICKER, BANNER, FORMS, FOOTER)
   =================================================================== */
.news-ticker-wrapper { height: 70px; margin-bottom: 30px; display: flex; align-items: center; padding: 5px; }
.news-label {
    background: var(--text-main); color: #fff; padding: 0 30px; height: 100%;
    display: flex; align-items: center; justify-content: center; border-radius: var(--radius-main);
    z-index: 5; font-weight: bold;
}
html.theme-dark .news-label { background: var(--circuit-color); color: #000; }
.news-track { display: flex; align-items: center; animation: scrollRightToLeft 40s linear infinite; white-space: nowrap; height: 100%; padding-left: 100%; }
.news-item {
    display: flex; align-items: center; margin-right: 50px; background: var(--surface-color);
    padding: 5px 20px 5px 5px; border-radius: 50px; border: 1px solid var(--shadow-light);
    box-shadow: 2px 2px 5px var(--shadow-dark); color: var(--text-sub);
}
.news-img { width: 45px; height: 45px; border-radius: 50%; object-fit: cover; margin-right: 12px; border: 2px solid var(--circuit-color); }

.main-banner { width: 100%; height: 450px; margin-bottom: 50px; }
.glass-caption {
    position: absolute; bottom: 30px; left: 30px; right: 30px; height: 100px;
    background: var(--glass-bg); backdrop-filter: blur(15px); border: 1px solid var(--glass-border);
    border-radius: var(--radius-main); display: flex; justify-content: space-between; align-items: center;
    padding: 0 50px;
}
.caption-btn {
    background: var(--text-main); color: #fff; padding: 15px 40px; border-radius: 50px;
    font-weight: bold; box-shadow: 0 5px 15px rgba(0,0,128,0.3);
}

.split-container { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; margin-bottom: 60px; }
.split-box { min-height: 400px; padding: 40px; display: flex; flex-direction: column; }
.stats-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 25px; margin-top: 20px; }
.stat-item {
    background: linear-gradient(145deg, var(--surface-color), var(--bg-color)); border-radius: 15px;
    display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 20px;
    box-shadow: 5px 5px 10px var(--shadow-dark), -5px -5px 10px var(--shadow-light);
}
.stat-num { font-size: 28px; font-weight: 800; color: var(--circuit-color); font-family: 'Orbitron'; }

.login-form { display: flex; flex-direction: column; gap: 20px; margin-top: 20px; }
.form-input {
    width: 100%; padding: 18px; border-radius: 12px; border: none;
    background: var(--bg-color); box-shadow: inset 4px 4px 8px var(--shadow-dark), inset -4px -4px 8px var(--shadow-light);
    outline: none; color: var(--text-main);
}
.form-input:focus { box-shadow: 0 0 5px var(--circuit-color); }
.form-btn {
    padding: 18px; border-radius: 12px; border: none; background: var(--text-main); color: #fff;
    font-weight: bold; cursor: pointer; box-shadow: 0 10px 20px rgba(0,0,128,0.2);
}

.modules-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; margin-bottom: 60px; }
.module-widget { height: 300px; padding: 25px; display: flex; flex-direction: column; }
.module-header { text-align: center; border-bottom: 2px solid var(--bg-color); padding-bottom: 15px; margin-bottom: 15px; font-weight: 700; }
.module-content { flex: 1; position: relative; overflow: hidden; text-align: center; color: var(--text-sub); }
.v-scroll { position: absolute; width: 100%; animation: scrollUp 15s linear infinite; }

.main-footer { 
    margin-top: 30px; padding: 20px 20px 10px; background: var(--surface-color); 
    border-top: 1px solid var(--shadow-dark); 
}
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 50px; margin-bottom: 50px; }
.f-col h4 { font-size: 18px; margin-bottom: 25px; position: relative; display: inline-block; color: var(--text-main); }
.f-col h4::after { content: ''; position: absolute; bottom: -8px; left: 0; width: 40px; height: 3px; background: var(--circuit-color); }
.f-links li { margin-bottom: 12px; }
.f-links a:hover { color: var(--text-main); padding-left: 5px; }
.social-icons { display: flex; gap: 15px; }
.s-icon {
    width: 45px; height: 45px; border-radius: 50%; background: var(--bg-color); display: flex; align-items: center; justify-content: center;
    color: var(--text-main); box-shadow: 5px 5px 10px var(--shadow-dark), -5px -5px 10px var(--shadow-light);
}
.copyright-bar { border-top: 1px solid var(--bg-color); padding-top: 25px; text-align: center; font-size: 13px; color: var(--text-sub); display:flex; justify-content:space-between; }

/* ===================================================================
   7. EK BİLEŞENLER
   =================================================================== */
#search-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(15, 23, 42, 0.95); backdrop-filter: blur(10px); z-index: 9999;
    display: none; align-items: center; justify-content: center;
}
#search-overlay.active { display: flex; }
.search-form-overlay { width: 80%; max-width: 800px; position: relative; }
.search-form-overlay input { width: 100%; font-size: 32px; border: none; border-bottom: 3px solid var(--circuit-color); background: transparent; padding: 20px; outline: none; color: #fff; }
.search-form-overlay button { position: absolute; right: 0; top: 20px; font-size: 32px; border: none; background: transparent; color: var(--circuit-color); cursor: pointer; }
#close-search-overlay { position: absolute; top: 30px; right: 30px; font-size: 40px; border: none; background: transparent; cursor: pointer; color: #fff; }

#membership-prompt-wrapper {
    background-color: var(--prompt-bg); color: var(--prompt-text);
    border: 2px solid var(--circuit-color); border-radius: 20px; padding: 40px;
    margin: 40px auto; max-width: 900px; text-align: center;
    box-shadow: 0 0 20px rgba(0, 210, 255, 0.2);
}
#membership-prompt-wrapper .content-title { color: var(--circuit-color); font-family: 'Orbitron'; text-transform: uppercase; margin-bottom: 15px; font-size: 1.5rem; }
#membership-prompt-wrapper .prompt-text { color: #e0e0e0; font-size: 16px; margin-bottom: 30px; }
#membership-prompt-wrapper .prompt-buttons { display: flex; gap: 20px; justify-content: center; }

.cta-content-box {
    background: linear-gradient(135deg, var(--surface-color) 0%, var(--bg-color) 100%); border-radius: 25px; padding: 50px 70px;
    margin: 60px 0; display: flex; align-items: center; justify-content: space-between; border: 1px solid rgba(0, 210, 255, 0.2);
}
.cta-btn { background: linear-gradient(90deg, var(--text-main), var(--circuit-color)); color: #fff; padding: 20px 50px; border-radius: 50px; font-weight: 800; font-size: 18px; box-shadow: 0 10px 25px rgba(0, 210, 255, 0.4); }

body.admin-bar-visible { padding-top: 40px; }
#tekno-admin-bar { position: fixed; top: 0; left: 0; width: 100%; height: 40px; background-color: #1a1d24; border-bottom: 2px solid var(--circuit-color); z-index: 99999; color: #fff; display:flex; align-items:center; padding: 0 20px; }
.admin-bar-inner { width: 100%; display: flex; justify-content: space-between; }
.admin-bar-item { margin-right: 15px; color: #eee; font-size: 13px; }
.admin-bar-item:hover { color: var(--circuit-color); }

.section-separator { display: flex; align-items: center; margin: 60px 0 40px 0; }
.sec-line { flex: 1; height: 3px; background: linear-gradient(90deg, transparent, var(--circuit-color), transparent); opacity: 0.6; }
.sec-title { margin: 0 30px; font-size: 22px; text-transform: uppercase; padding: 15px 50px; text-align: center; }

.slider-viewport { overflow: hidden; padding: 20px 0; }
.scroll-track { display: flex; gap: 30px; }
.media-card { min-width: 320px; height: 220px; border-radius: var(--radius-main); position: relative; background: #000; overflow: hidden; flex-shrink: 0; }
.media-thumb { width: 100%; height: 100%; object-fit: cover; opacity: 0.85; transition: 0.5s; }
.media-card:hover .media-thumb { transform: scale(1.1); opacity: 1; }
.media-text { position: absolute; bottom: 15px; left: 15px; right: 15px; background: rgba(0,0,128,0.75); color: #fff; padding: 10px; border-radius: 10px; font-size: 13px; }

/* ===================================================================
   8. ANİMASYONLAR & RESPONSIVE
   =================================================================== */
@keyframes scrollInfinite { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }
@keyframes scrollRightToLeft { 0% { transform: translateX(0); } 100% { transform: translateX(-100%); } }
@keyframes scrollLeftToRight { 0% { transform: translateX(-50%); } 100% { transform: translateX(0); } }
@keyframes scrollUp { 0% { top: 100%; } 100% { top: -150%; } }

@media (max-width: 1024px) {
    .header-inner { flex-direction: column; height: auto; gap: 20px; }
    .logo { order: -1; margin-bottom: 10px; }
    .split-container { grid-template-columns: 1fr; }
    .modules-grid { grid-template-columns: repeat(2, 1fr); }
    .cta-content-box { flex-direction: column; text-align: center; gap: 20px; padding: 30px; }
    .glass-caption { height: auto; flex-direction: column; text-align: center; gap: 15px; padding: 20px; }
}
@media (max-width: 768px) {
    .modules-grid { grid-template-columns: 1fr; }
    .news-ticker-wrapper { flex-direction: column; height: auto; }
    .news-track { padding-left: 0; width: 100%; }
    .financial-bar { width: 100vw; overflow: hidden; padding: 0; }
    .financial-track { padding-left: 0; animation: scrollInfinite 45s linear infinite; }
    .fin-item { font-size: 11px; margin-right: 15px; }
}
@media (min-width: 1024px) {
    .header-inner { justify-content: space-between; }
    .nav-group:first-child { order: 1; justify-content: flex-start; flex: 1; }
    .logo { order: 2; flex: 0 0 auto; margin: 0 40px; }
    .nav-group:last-child { order: 3; justify-content: flex-end; flex: 1; }
}

/* ===================================================================
   GHOST BUSTER PATCH (Sidebar Temizliği - V-FINAL)
   "Kutu içinde Kutu" ve "Kırmızı Çizgi" sorununu çözen kodlar.
   =================================================================== */
   
/* 1. Sidebar içindeki TÜM widget kapsayıcılarını "Düz/Flat" yap */
.left-sidebar .module-widget-wrapper,
.right-sidebar .module-widget-wrapper,
.sidebar .module-widget-wrapper,
.left-sidebar .tender-block-stacked, 
.right-sidebar .tender-block-stacked {
    box-shadow: none !important;       
    border: none !important;           
    background: transparent !important; 
    margin: 0 !important;              
    padding: 0 !important;             
    transform: none !important; 
    overflow: hidden !important;
}

/* 2. Pseudo-elementleri (Hayalet Çizgileri) SİL */
.left-sidebar .module-widget-wrapper::before, .left-sidebar .module-widget-wrapper::after,
.right-sidebar .module-widget-wrapper::before, .right-sidebar .module-widget-wrapper::after,
.left-sidebar .tender-block-stacked::before, .left-sidebar .tender-block-stacked::after,
.right-sidebar .tender-block-stacked::before, .right-sidebar .tender-block-stacked::after {
    content: none !important; display: none !important;
}

/* 3. İçerik Çizgisi */
.left-sidebar .widget-item, .right-sidebar .widget-item {
    border-bottom: 1px solid rgba(0,0,0,0.05) !important; padding: 8px 0 !important; background: transparent !important;
}

/* 4. Başlık Hizası */
.left-sidebar .widget-title, .right-sidebar .widget-title, .sidebar .widget-title {
    background: var(--surface-color) !important;
    border-bottom: 2px solid var(--circuit-color) !important;
    margin-bottom: 10px !important; padding: 10px !important;
    color: var(--text-main) !important;
    box-shadow: none !important;
}

/* ===================================================================
   BLOCK RENDERER PATCH (V-FINAL)
   Renderer tarafından basılan widget-group sınıfını Sidebar'a alıştırır.
   =================================================================== */

/* Sidebar içindeki widget gruplarını tamamen şeffaf ve hizalı yap */
.left-sidebar .widget-group,
.right-sidebar .widget-group,
.sidebar .widget-group {
    background: transparent !important;
    box-shadow: none !important;
    border: none !important;
    margin-bottom: 30px !important;
    padding: 0 !important;
    height: auto !important;
    min-height: 0 !important;
}

/* Renderer'ın bastığı H3 başlıklarını Sidebar stiline zorla */
.left-sidebar .widget-group .widget-title,
.right-sidebar .widget-group .widget-title,
.sidebar .widget-group .widget-title {
    margin: 0 !important;
    padding: 15px 20px !important;
    background: var(--surface-color) !important;
    border-bottom: 2px solid var(--circuit-color) !important;
    color: var(--text-main) !important;
    font-size: 1.1rem !important;
    font-family: 'Orbitron', sans-serif !important;
    border-radius: 12px 12px 0 0 !important;
}

/* Renderer içindeki içerik alanını Sidebar'a uydur */
.left-sidebar .widget-group .module-widget,
.right-sidebar .widget-group .module-widget,
.sidebar .widget-group .module-widget {
    background: var(--surface-color) !important;
    padding: 10px 20px !important;
    border-radius: 0 0 12px 12px !important;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05) !important;
    border: 1px solid rgba(0,0,0,0.05) !important;
    border-top: none !important;
}

/* İKON DÜZELTMESİ */
.widget-title i { margin-right: 10px; color: var(--circuit-color); }

/* ===================================================================
   COLOR ENFORCER (RENK ZORLAYICI)
   Gündüz modunda görünmeyen beyaz yazıları onarır.
   =================================================================== */

/* Sadece Gündüz Modu (theme-dark SINIFI YOKSA) */
body:not(.theme-dark) .widget-title,
body:not(.theme-dark) .card-title,
body:not(.theme-dark) .content-title,
body:not(.theme-dark) h1, 
body:not(.theme-dark) h2, 
body:not(.theme-dark) h3 {
    color: #000080 !important; /* Lacivert */
}

body:not(.theme-dark) p,
body:not(.theme-dark) span,
body:not(.theme-dark) li,
body:not(.theme-dark) .widget-item,
body:not(.theme-dark) .menu-link {
    color: #556677; /* Koyu Gri */
}

/* Widget İçi Özel */
body:not(.theme-dark) .widget-item span { color: #334455 !important; }
body:not(.theme-dark) .widget-item:hover span { color: var(--circuit-color) !important; }

/* Footer */
.footer-grid h4, .user-summary .panel-role { color: var(--text-main); }
/* ===================================================================
   SMART CONTRAST PATCH (AKILLI KONTRAST YAMASI) - V16.0
   Amaç: Gündüz modunda;
   1. Beyaz zemin üzerindeki yazıları LACİVERT yap.
   2. Koyu zemin (Banner, Buton) üzerindeki yazıları BEYAZ koru.
   =================================================================== */

/* --- GRUP 1: BEYAZ KORUMA TİMİ (Bunlar KESİN BEYAZ kalmalı) --- */
/* Gündüz modunda olsa bile arka planı koyu olan alanlar */

body:not(.theme-dark) .welcome-banner h1,
body:not(.theme-dark) .welcome-banner p,
body:not(.theme-dark) .welcome-banner strong,
body:not(.theme-dark) .btn-primary,
body:not(.theme-dark) .caption-btn,
body:not(.theme-dark) .news-label,
body:not(.theme-dark) .badge-count,
body:not(.theme-dark) .media-text,
body:not(.theme-dark) .mini-thumb {
    color: #ffffff !important;
    text-shadow: none !important;
}

/* --- GRUP 2: LACİVERT TİMİ (Bunlar KESİN LACİVERT olmalı) --- */
/* Arka planı beyaz olan kartların başlıkları */

body:not(.theme-dark) .live-card h3,
body:not(.theme-dark) .live-card h4,
body:not(.theme-dark) .module-widget-wrapper .widget-title,
body:not(.theme-dark) .sidebar .widget-title,
body:not(.theme-dark) .content-title,
body:not(.theme-dark) .card-title,
body:not(.theme-dark) .article-title-stacked,
body:not(.theme-dark) .tender-title-stacked,
body:not(.theme-dark) .panel-username {
    color: #000080 !important; /* Lacivert */
    text-shadow: none !important; /* Gündüz neon parlamasını kapat */
}

/* --- GRUP 3: OKUNABİLİRLİK TİMİ (Açıklama Metinleri) --- */
/* Beyaz zeminde kaybolan gri/beyaz detay yazıları */

body:not(.theme-dark) .live-card p,
body:not(.theme-dark) .article-content,
body:not(.theme-dark) .article-content p,
body:not(.theme-dark) .article-meta-stacked,
body:not(.theme-dark) .tender-meta-grid,
body:not(.theme-dark) .widget-item span,
body:not(.theme-dark) .menu-link {
    color: #445566 !important; /* Koyu Gri (Okunur) */
}

/* Hover durumunda İkon ve Linkler (Canlılık kalsın) */
body:not(.theme-dark) a:hover,
body:not(.theme-dark) .widget-item:hover span,
body:not(.theme-dark) .menu-link:hover {
    color: var(--circuit-color) !important; /* Mavi */
}

/* --- GRUP 4: WIDGET İÇİ DÜZELTMELER --- */
/* Widget scroller içindeki linkler beyaz kalmış olabilir */
body:not(.theme-dark) .widget-scroller .widget-item {
    color: #445566 !important;
}
body:not(.theme-dark) .widget-scroller .widget-item i {
    color: var(--circuit-color) !important; /* İkonlar mavi kalsın */
}
/* --- HABERLER PORTALI YÜKSEKLİK SINIRI (S2 FIX) --- */
.haber-blogu .widget-scroller-wrapper,
.haber-blogu .widget-scroller {
    max-height: 450px !important; /* 450px ile sınırla */
    overflow: hidden !important; /* Taşmayı gizle */
    position: relative;
}

/* Eğer bu bir dikey kayan yazı değilse ve scroll gerekiyorsa: */
.haber-blogu.statik-liste {
    max-height: 450px;
    overflow-y: auto;
}
/* --- MODERN SOSYAL PAYLAŞIM --- */
.share-container-pro {
    display: flex;
    align-items: center;
    gap: 15px; /* İkonlar arası boşluk */
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid rgba(0,0,0,0.05);
}

.share-label {
    font-size: 14px;
    font-weight: 700;
    color: #6c757d;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-right: 10px;
}

.social-circle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    background: #fff;
    border-radius: 50%;
    color: #555; /* Varsayılan ikon rengi */
    font-size: 18px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08); /* Hafif gölge */
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275); /* Yaylanma efekti */
    text-decoration: none !important;
    position: relative;
}

/* Hover Efektleri - Mikro Animasyonlar */
.social-circle:hover {
    transform: translateY(-5px) scale(1.1); /* Yukarı çık ve büyü */
    color: #fff !important; /* İkon beyaz olsun */
}

/* Marka Renkleri ve Glow Efektleri */
.sc-linkedin:hover { background: #0077b5; box-shadow: 0 8px 20px rgba(0, 119, 181, 0.4); }
.sc-whatsapp:hover { background: #25d366; box-shadow: 0 8px 20px rgba(37, 211, 102, 0.4); }
.sc-facebook:hover { background: #1877f2; box-shadow: 0 8px 20px rgba(24, 119, 242, 0.4); }
.sc-twitter:hover  { background: #000000; box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4); }
.sc-pinterest:hover{ background: #bd081c; box-shadow: 0 8px 20px rgba(189, 8, 28, 0.4); }
.sc-email:hover    { background: #ea4335; box-shadow: 0 8px 20px rgba(234, 67, 53, 0.4); }
.sc-copy:hover     { background: #6c757d; box-shadow: 0 8px 20px rgba(108, 117, 125, 0.4); }

/* Tooltip (İpucu) */
.social-circle::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: -30px;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    background: rgba(0,0,0,0.8);
    color: #fff;
    font-size: 10px;
    padding: 4px 8px;
    border-radius: 4px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s ease;
    white-space: nowrap;
    pointer-events: none;
}
.social-circle:hover::after {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}
/* DOSYA: /assets/css/control-bars.css */

:root {
    --admin-bar-height: 40px;
    --editor-bar-height: 50px;
    --admin-bg: #1a1a1a;
    --editor-bg: rgba(23, 32, 42, 0.95); /* Yarı saydam koyu lacivert */
    --accent-color: #3498db;
    --alert-color: #e74c3c;
    --success-color: #2ecc71;
}

/* --- 1. ADMIN BAR (ÜST - STRATEJİK) --- */
#te-admin-bar {
    position: fixed; top: 0; left: 0; width: 100%; height: var(--admin-bar-height);
    background: var(--admin-bg); color: #bdc3c7; z-index: 99999;
    display: flex; justify-content: space-between; align-items: center;
    padding: 0 20px; font-family: 'Inter', sans-serif; font-size: 12px;
    border-bottom: 2px solid #f39c12; /* Admin Gold Çizgi */
    box-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

body.admin-bar-visible { margin-top: var(--admin-bar-height); }

.ab-left, .ab-right { display: flex; align-items: center; gap: 15px; }

.ab-item { 
    color: #ecf0f1; text-decoration: none; display: flex; align-items: center; gap: 6px; 
    transition: all 0.2s; padding: 5px 8px; border-radius: 4px;
}
.ab-item:hover { background: rgba(255,255,255,0.1); color: #fff; text-decoration: none; }
.ab-brand { font-weight: 800; color: #f39c12; text-transform: uppercase; letter-spacing: 1px; }

/* --- 2. EDITOR DOCK (ALT - TAKTİKSEL) --- */
#te-editor-dock {
    position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%);
    width: auto; min-width: 600px; max-width: 90%; height: var(--editor-bar-height);
    background: var(--editor-bg); backdrop-filter: blur(10px);
    border-radius: 12px; border: 1px solid rgba(255,255,255,0.1);
    z-index: 99998; display: flex; justify-content: space-between; align-items: center;
    padding: 0 20px; box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    animation: slideUp 0.5s ease-out;
}

/* Editör bar varsa footer'ın altında kalmasın */
body.editor-bar-visible { padding-bottom: 80px; }

.ed-section { display: flex; align-items: center; gap: 15px; }
.ed-divider { width: 1px; height: 25px; background: rgba(255,255,255,0.2); }

/* Context Butonu (O anki sayfayı düzenle) */
.ed-context-btn {
    background: linear-gradient(135deg, #3498db, #2980b9);
    color: white; padding: 6px 15px; border-radius: 6px; font-weight: 600; font-size: 13px;
    display: flex; align-items: center; gap: 8px; text-decoration: none;
    box-shadow: 0 4px 15px rgba(52, 152, 219, 0.4); transition: transform 0.2s;
}
.ed-context-btn:hover { transform: translateY(-2px); color: white; text-decoration: none; }

/* Canlı Radar */
.ed-radar {
    display: flex; align-items: center; gap: 8px; font-size: 12px; color: #bdc3c7;
    cursor: pointer; padding: 5px 10px; border-radius: 5px;
}
.ed-radar:hover { background: rgba(255,255,255,0.05); color: #fff; }
.radar-pulse {
    width: 8px; height: 8px; background: #2ecc71; border-radius: 50%;
    box-shadow: 0 0 0 0 rgba(46, 204, 113, 0.7);
    animation: pulse-green 2s infinite;
}

@keyframes slideUp { from { bottom: -60px; opacity: 0; } to { bottom: 20px; opacity: 1; } }
@keyframes pulse-green {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(46, 204, 113, 0.7); }
    70% { transform: scale(1); box-shadow: 0 0 0 10px rgba(46, 204, 113, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(46, 204, 113, 0); }
}

/* Responsive */
@media (max-width: 768px) {
    #te-editor-dock { bottom: 0; left: 0; transform: none; width: 100%; border-radius: 0; min-width: 100%; }
    .ed-label { display: none; } /* Mobilde yazıları gizle */
}
/* ==========================================================================
   ADIM 1 REVİZYON: HEADER & USER UX (İNCE İŞÇİLİK)
   ========================================================================== */

/* 1. Header Genel Yapı */
.nav-link-item {
    color: var(--text-main);
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    padding: 8px 12px;
    border-radius: 6px;
    transition: all 0.3s ease;
    text-transform: uppercase;
    font-family: 'Orbitron', sans-serif;
    letter-spacing: 0.5px;
}
.nav-link-item:hover {
    background: rgba(0,0,0,0.05);
    color: var(--circuit-color);
}

/* 2. İkon Butonları (Avatar ve Zil) */
.header-icon-btn {
    background: transparent;
    border: none;
    cursor: pointer;
    position: relative;
    padding: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-sub);
    font-size: 1.2rem;
    transition: 0.2s;
}
.header-icon-btn:hover { color: var(--circuit-color); transform: scale(1.1); }
.header-icon-btn:focus { outline: none; }

/* 3. Şık Kırmızı Nokta (Badge) */
.badge-dot {
    position: absolute;
    top: 0px;
    right: 0px;
    width: 10px;
    height: 10px;
    background-color: #ef4444; /* Parlak Kırmızı */
    border: 2px solid var(--surface-color); /* Etrafında beyaz halka olsun ki temiz dursun */
    border-radius: 50%;
    box-shadow: 0 2px 4px rgba(239, 68, 68, 0.4);
}

/* 4. Dropdown Menüler (ŞEFFAFLIK SORUNU ÇÖZÜMÜ) */
.header-dropdown-wrap { position: relative; }

.header-dropdown-menu {
    position: absolute;
    top: 140%; /* Butonun biraz altı */
    right: 0;
    width: 280px;
    background: #ffffff; /* KESİN RENK - Şeffaflık Yok */
    border: 1px solid rgba(0,0,0,0.1);
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.15); /* Yumuşak Gölge */
    padding: 10px 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.2s cubic-bezier(0.165, 0.84, 0.44, 1);
    z-index: 9999;
}

/* Dark Mode Uyumu */
html.theme-dark .header-dropdown-menu {
    background: #1e293b; /* Koyu Lacivert */
    border-color: rgba(255,255,255,0.1);
}

/* Hover veya Active Durumu (JS ile .active class eklenecek) */
.header-dropdown-wrap:hover .header-dropdown-menu,
.header-dropdown-wrap.active .header-dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Dropdown İçerik Tasarımı */
.dropdown-header {
    padding: 10px 20px;
    border-bottom: 1px solid rgba(0,0,0,0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--text-main);
}
.dropdown-body { max-height: 300px; overflow-y: auto; }
.dropdown-footer { padding: 10px 20px; border-top: 1px solid rgba(0,0,0,0.05); text-align: center; }
.dropdown-footer a { font-size: 0.8rem; font-weight: 600; color: var(--circuit-color); text-decoration: none; }

/* Kullanıcı Karşılama Alanı */
.user-welcome {
    padding: 15px 20px;
    background: linear-gradient(135deg, rgba(0,0,0,0.02), rgba(0,0,0,0.05));
    border-bottom: 1px solid rgba(0,0,0,0.05);
}
.user-welcome small { display: block; color: var(--text-sub); font-size: 0.8rem; }
.user-welcome strong { display: block; color: var(--text-main); font-size: 1rem; margin-top: 2px; }

/* Menü Linkleri */
.menu-link {
    display: flex; align-items: center; gap: 10px;
    padding: 10px 20px;
    color: var(--text-sub);
    text-decoration: none;
    font-size: 0.9rem;
    transition: 0.2s;
}
.menu-link:hover { background: rgba(0,0,0,0.03); color: var(--circuit-color); }
.menu-link.logout { color: #ef4444; }
.menu-link.logout:hover { background: rgba(239, 68, 68, 0.1); }

/* Giriş/Kayıt Butonları */
.auth-buttons { display: flex; gap: 10px; }
.btn-auth-login {
    padding: 8px 20px;
    border: 1px solid var(--text-sub);
    border-radius: 50px;
    color: var(--text-main);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: 0.2s;
}
.btn-auth-register {
    padding: 8px 20px;
    background: var(--text-main); /* Ana Renk */
    color: #fff;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    transition: 0.2s;
}
.btn-auth-register:hover { transform: translateY(-2px); box-shadow: 0 6px 15px rgba(0,0,0,0.3); color: #fff; }

/* Mobil Uyumluluk */
@media (max-width: 768px) {
    .nav-link-item { display: none; } /* Mobilde menüyü sonra hamburger yapacağız */
    .user-welcome { text-align: center; }
}
/* --- AVATAR DÜZELTMESİ --- */
.nav-avatar-wrapper {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    overflow: hidden; /* Dışarı taşanı kes */
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #eee; /* Resim yoksa gri zemin */
}

/* Helper'dan gelen IMG etiketini zorla sığdır */
.nav-avatar-wrapper img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important; /* Resmi bozmadan doldur */
    display: block;
}

/* Helper'dan gelen İkon varsa onu da ortala */
.nav-avatar-wrapper i {
    font-size: 18px;
    color: #555;
}
/* ===================================================================
   AUTH PAGES (GİRİŞ & KAYIT) - SPLIT 3D CONSOLE DESIGN
   =================================================================== */

.auth-wrapper {
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    position: relative;
    z-index: 5; /* Hexagon background üzerinde kalsın */
}

/* 3D Konsol Kutusu */
.auth-box {
    display: grid;
    grid-template-columns: 2fr 3fr; /* Sol (Bilgi) %40 - Sağ (Form) %60 */
    width: 100%;
    max-width: 1000px;
    background: var(--surface-color);
    border-radius: var(--radius-main);
    overflow: hidden;
    /* style.css'deki module-3d gölgelerini miras alması için class ekleyeceğiz */
}

/* SOL TARAF: Bilgi Paneli (Koyu Tekno) */
.auth-sidebar {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    color: #fff;
    position: relative;
    overflow: hidden;
}

/* Sol taraf süslemeleri */
.auth-sidebar::before {
    content: '';
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background-image: 
        radial-gradient(circle at 10% 20%, rgba(0, 210, 255, 0.1) 0%, transparent 20%),
        radial-gradient(circle at 90% 80%, rgba(0, 210, 255, 0.1) 0%, transparent 20%);
    pointer-events: none;
}
.auth-sidebar h2 { font-family: 'Orbitron'; font-size: 2rem; margin-bottom: 20px; color: var(--circuit-color); }
.auth-sidebar p { opacity: 0.8; font-size: 0.95rem; margin-bottom: 30px; line-height: 1.6; }
.auth-features { list-style: none; padding: 0; }
.auth-features li { margin-bottom: 15px; display: flex; align-items: center; gap: 10px; font-weight: 500; font-size: 0.9rem; }
.auth-features li i { color: var(--circuit-color); font-size: 1.1rem; }

/* SAĞ TARAF: Form Alanı */
.auth-form-area {
    padding: 50px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* Giriş Başlığı */
.auth-header { text-align: center; margin-bottom: 30px; }
.auth-header h3 { font-size: 1.8rem; color: var(--text-main); font-family: 'Orbitron'; }
.auth-header span { color: var(--text-sub); font-size: 0.9rem; }

/* Form Elemanları (Mevcut style.css ile uyumlu) */
.form-floating { position: relative; margin-bottom: 20px; }
.form-floating i {
    position: absolute; left: 15px; top: 50%; transform: translateY(-50%);
    color: var(--text-sub); opacity: 0.7; transition: 0.3s;
}
.form-floating input {
    padding-left: 45px !important; /* İkon boşluğu */
    transition: 0.3s;
}
.form-floating input:focus + i { color: var(--circuit-color); opacity: 1; }

/* Sosyal Butonlar */
.social-login-gap { display: flex; justify-content: center; gap: 15px; margin: 20px 0; }
.social-btn {
    width: 45px; height: 45px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    background: var(--bg-color); color: var(--text-sub);
    box-shadow: 3px 3px 6px var(--shadow-dark), -3px -3px 6px var(--shadow-light);
    transition: 0.3s; font-size: 1.1rem;
}
.social-btn:hover { transform: translateY(-3px); color: var(--circuit-color); }

/* Mobil Uyumluluk */
@media (max-width: 768px) {
    .auth-box { grid-template-columns: 1fr; }
    .auth-sidebar { padding: 30px; text-align: center; display: none; /* Mobilde sadece form kalsın diyorsan */ }
    /* Veya mobilde üstte kalsın diyorsan: display: block; */
    .auth-form-area { padding: 30px; }
}
/* ===================================================================
   V-FINAL: "RED PEN" COMPACT MODE (KIRMIZI KALEM DÜZELTMESİ)
   Amaç: Satır içi (Inline) stilleri ezerek boşlukları kapatmak.
   =================================================================== */

/* 1. TÜM BLOKLARIN DIŞ BOŞLUĞUNU SIFIRLA */
.section, 
.container, 
.module-grid-section, 
.content-slider-section,
.announcements-banner-section {
    margin-top: 5px !important;    /* Üst boşluk min */
    margin-bottom: 5px !important; /* Alt boşluk min */
    padding-top: 0 !important;
    padding-bottom: 0 !important;
}

/* 2. ANA SLIDER YÜKSEKLİĞİ VE BOŞLUĞU */
.main-banner {
    height: 380px !important; /* Yüksekliği kıstık */
    margin-bottom: 5px !important;
}

/* 3. İSTATİSTİK VE LOGIN ALANI (YÜKSEKLİK OTOMATİK) */
.neural-wrapper {
    height: auto !important; /* Sabit 320px iptal, içeriğe göre */
    align-items: stretch;    /* İki kutu eşit boyda */
    gap: 10px !important;    /* Araları açılmasın */
}

/* Kutuların İç Boşluğu */
.neural-cloud-box, 
.compact-login-box {
    padding: 15px !important; /* 40px padding yerine 15px */
    min-height: 240px !important; /* Minimum yükseklik */
}

/* Kelime Bulutu Alanı */
.cloud-container {
    height: 150px !important; /* Bulut alanı daraltıldı */
}

/* 4. MODÜL GRID (Sektörün Kalbi) */
.module-grid-wrapper {
    gap: 15px !important;
}
.module-widget-wrapper {
    height: 280px !important; /* Kartları daha basık yap */
}

/* 5. AYIRAÇ ÇİZGİLERİ */
.section-separator {
    margin: 10px 0 !important;
}
/* PREMIUM ROZET TASARIMI */
.badge-premium {
    background: linear-gradient(45deg, #FFD700, #FDB931);
    color: #000;
    font-weight: bold;
    font-size: 0.75rem;
    padding: 3px 8px;
    border-radius: 4px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    display: inline-flex;
    align-items: center;
    border: 1px solid #eebb00;
}
.badge-premium i {
    margin-right: 4px;
    font-size: 0.8rem;
}
/* Kilitli İçerik Kartı Efekti (Opsiyonel) */
.premium-locked {
    position: relative;
    opacity: 0.9;
}
.premium-locked::after {
    content: "\f023"; /* FontAwesome Lock */
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 1.5rem;
    color: #ddd;
}
/* --- ZİYARETÇİ UYARI KUTUSU DÜZELTMESİ --- */
#membership-prompt-wrapper .prompt-text,
#membership-prompt-wrapper p {
    color: #FFD700 !important; /* Altın Sarısı (Kilit Rengi) */
    font-weight: 600;
    text-shadow: 0 1px 2px rgba(0,0,0,0.8); /* Okunurluk için gölge */
}

#membership-prompt-wrapper .content-title {
    color: #00d2ff !important; /* Başlık Neon Mavi Kalsın */
    text-shadow: 0 0 10px rgba(0, 210, 255, 0.5);
}