/* ============================================================
   MB AKILLI TAHTA - HAFİF HEADER & FOOTER STİLLERİ
   (Main.css yerine kullanılır)
   ============================================================ */

/* --- TEMEL AYARLAR (Reset) --- */
body {
    margin: 0;
    padding: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f1f5f9;
}

a { text-decoration: none; transition: all 0.3s ease; }
ul { list-style: none; margin: 0; padding: 0; }

/* --- 1. EN ÜST BAR (Top Bar) --- */
.bd-header-top {
    background-color: #0f172a; /* Koyu Lacivert */
    color: #cbd5e1;
    font-size: 13px;
    padding: 8px 0;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.bd-header-top-left ul {
    display: flex;
    gap: 20px;
    padding-left: 20px;
}

.bd-header-top-left a {
    color: #94a3b8;
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: 500;
}

.bd-header-top-left a:hover {
    color: #3b82f6; /* Hover Rengi: Mavi */
}

.bd-header-top-left i {
    font-size: 14px;
}

/* --- 2. ANA HEADER --- */
.bd-header-area {
    background: #ffffff;
    height: 80px;
    display: flex;
    align-items: center;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
    position: relative;
    /* Menü sisteminin çalışması için en üstte olmalı */
    z-index: 2147483647; 
}

.bd-header-inner {
    width: 100%;
    padding: 0 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Logo Alanı */
.bd-header-logo img {
    height: 50px;
    width: auto;
    display: block;
    transition: transform 0.3s;
}

.bd-header-logo:hover img {
    transform: scale(1.05);
}

/* Sağ Taraf (Hamburger Menü Alanı) */
.bd-header-right {
    display: flex;
    align-items: center;
    gap: 15px;
}

/* Sağ Üst Güncelleme Bilgisi */
.header-version-text {
    font-size: 13px;
    font-weight: 600;
    color: #64748b; /* Göz yormayan gri */
    margin-right: 30px; /* Sağ kenardan boşluk (Çok bitişik olmasın dediğin yer) */
    white-space: nowrap; /* Yazı alt satıra kaymasın */
    background: #f8fafc;
    padding: 6px 12px;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
}

/* Header içindeki Akıllı Tahta Menü Butonu (Mobilde Görünür) */
.header-board-toggle {
    display: none; /* Masaüstünde gizli */
    width: 42px;
    height: 42px;
    border-radius: 10px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    border: none;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.header-board-toggle:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(102, 126, 234, 0.4);
}

/* --- 3. FOOTER ALANI (SABİT / STICKY) - GÜNCELLENMİŞ --- */
.bd-footer-area {
    position: fixed; /* Sayfanın altına çivile */
    bottom: 0;
    left: 0;
    width: 100%;
    height: 40px; /* İnce ve zarif yükseklik */
    
    background-color: #1e293b; /* Koyu Lacivert Arka Plan (Boydan boya) */
    border-top: 3px solid #3b82f6; /* Üstteki ince mavi çizgi */
    
    z-index: 2147483640; /* Modalların altında, içeriğin üstünde */
    
    display: flex;
    justify-content: center; /* İÇERİĞİ EKRANIN ORTASINA HİZALA */
    align-items: center;
    
    box-shadow: 0 -4px 10px rgba(0,0,0,0.1);
}

.bd-footer-inner {
    width: 100%;
    
    /* EN ÖNEMLİ KISIM: İçeriği sınırla ve ortala */
    max-width: 1400px; 
    margin: 0 auto;    
    
    padding: 0 30px; /* Kenarlardan biraz daha fazla boşluk bırak */
    
    display: flex;
    justify-content: space-between; /* Sola ve Sağa yasla */
    align-items: center;
    
    font-size: 12px;
    color: #94a3b8;
    height: 100%; /* Kapsayıcı yüksekliğine uy */
}

/* Sol Taraf (Copyright) */
.footer-left {
    font-weight: 600;
    color: #cbd5e1;
    white-space: nowrap; /* Mobilde satır kırılmasını önle */
}

/* Sağ Taraf (Linkler) */
.footer-right {
    display: flex;
    align-items: center;
    gap: 15px; /* Linkler arasını biraz açtık */
}

.footer-right a {
    color: #94a3b8;
    text-decoration: none;
    transition: all 0.2s ease;
    font-weight: 500;
}

.footer-right a:hover {
    color: #3b82f6; /* Mavi yanma efekti */
    text-decoration: underline;
}

/* Ayırıcı Çizgi (|) */
.footer-sep {
    color: #475569;
    font-size: 10px;
    opacity: 0.5;
}

/* Sayfanın footer altında kalmaması için body'ye boşluk */
body {
    padding-bottom: 60px; /* Biraz daha pay bıraktık */
}

/* --- MOBİL UYUMLULUK (Responsive) --- */
@media (max-width: 991px) {
    .bd-footer-area {
        height: auto; /* Mobilde yükseklik esnek olsun */
        padding: 12px 0; /* Üstten alttan boşluk */
        position: relative; /* Mobilde sayfanın en altına it (sabit kalmasın, ekranı kapatmasın) */
    }

    .bd-footer-inner {
        flex-direction: column; /* Alt alta diz */
        gap: 10px;
        text-align: center;
        padding: 0 15px;
    }

    .footer-right {
        flex-wrap: wrap; /* Linkler sığmazsa alt satıra geçsin */
        justify-content: center;
        gap: 10px;
        line-height: 1.6;
    }
    
    .footer-right a {
        font-size: 11px;
    }
    
    /* Mobilde body padding'e gerek yok çünkü footer relative oldu */
    body {
        padding-bottom: 0;
    }
}

/* --- MOBİL UYUMLULUK (RESPONSIVE) --- */
@media (max-width: 991px) {
    /* Üstteki ince barı mobilde gizle (yer kazanmak için) */
    .bd-header-top {
        display: none;
    }
	
	.header-version-text {
        display: none;
    }

    /* Header boyunu mobilde biraz küçült */
    .bd-header-area {
        height: 65px;
    }

.bd-header-logo {
    /* Logoyu hafif sağa itiyoruz */
    margin-left: 20px; 
}
    .bd-header-logo img {
        height: 40px;
    }

    .bd-header-inner {
        padding: 0 15px;
    }

    /* Akıllı Tahta Butonunu Göster */
    .header-board-toggle {
        display: flex;
    }
}