/* =========================================
   1. GENEL AYARLAR & DEĞİŞKENLER
   ========================================= */
:root {
    --ana-renk: #0e3a6e;   /* Sultanbeyli Lacivert */
    --vurgu-renk: #f49e1e; /* Sultanbeyli Turuncu */
}

body {
    font-family: 'Roboto', sans-serif;
    background-color: #f8f9fa;
    overflow-x: hidden; /* Yatay taşmayı engeller */
}

a {
    text-decoration: none;
    transition: all 0.3s ease;
}

/* =========================================
   2. HEADER & NAVBAR ALANI
   ========================================= */
/* Top Header (En üstteki ince şerit) */
.top-header {
    background-color: #082546;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.9rem;
}

/* Navbar (Ana Menü) */
.navbar {
    background-color: var(--ana-renk);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.navbar-brand img {
    height: 60px;
    transition: transform 0.3s;
}

.navbar-brand:hover img {
    transform: scale(1.05);
}

.nav-link {
    color: white !important;
    font-family: 'Barlow', sans-serif;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.95rem;
    margin-left: 10px;
    transition: color 0.3s;
}

.nav-link:hover {
    color: var(--vurgu-renk) !important;
}

.nav-item.active .nav-link {
    color: var(--vurgu-renk) !important;
    border-bottom: 2px solid var(--vurgu-renk);
}

/* Mobil Menü Butonu (Hamburger) */
.navbar-toggler {
    border-color: rgba(255, 255, 255, 0.5);
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml;charset=utf8,%3Csvg viewBox='0 0 30 30' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath stroke='rgba(255, 255, 255, 1)' stroke-width='2' stroke-linecap='round' stroke-miterlimit='10' d='M4 7h22M4 15h22M4 23h22'/%3E%3C/svg%3E");
}

/* =========================================
   3. HABER KARTLARI (SLIDER ALANI)
   ========================================= */
.news-card {
    position: relative;
    display: block;
    border-radius: 8px;
    overflow: hidden;
    text-decoration: none;
    color: white;
    background: #000;
    height: 100%;
}

.news-card:hover {
    color: #fff;
}

.image-wrapper {
    position: relative;
    width: 100%;
    overflow: hidden;
}

.image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
    opacity: 0.9;
}

.news-card:hover .image-wrapper img {
    transform: scale(1.05);
    opacity: 0.6;
}

.content-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 20px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0.5) 60%, transparent 100%);
    z-index: 2;
}

.news-title {
    font-weight: 700;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.8);
    margin: 0;
    line-height: 1.3;
}

/* =========================================
   4. SIDEBAR (YAN MENÜ)
   ========================================= */
.sidebar-widget {
    background: #fff;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 20px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    border-top: 4px solid var(--ana-renk);
}

.sidebar-title {
    font-size: 1.1rem;
    font-weight: bold;
    color: var(--ana-renk);
    border-bottom: 2px solid #eee;
    padding-bottom: 10px;
    margin-bottom: 15px;
}

/* Puan Durumu Tablosu */
.table-sidebar th {
    font-size: 0.85rem;
    background-color: #f1f1f1;
    color: #333;
}

.table-sidebar td {
    font-size: 0.85rem;
    font-weight: 600;
    vertical-align: middle;
}

.table-sidebar .takim-adi {
    font-size: 0.8rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 120px;
}

/* =========================================
   5. OFFCANVAS (MOBİL MENÜ) AYARLARI 
   ========================================= */
/* Menü Arkaplanı */
.offcanvas {
    background-color: var(--ana-renk) !important;
    color: white;
    border-left: 1px solid rgba(255,255,255,0.1);
}

/* Kapatma Butonu (Beyaz) */
.offcanvas-header .btn-close {
    filter: invert(1);
    opacity: 0.8;
}

/* Menü Linkleri */
.offcanvas-body .nav-link {
    color: white !important;
    font-size: 1.1rem;
    border-bottom: 1px solid rgba(255,255,255,0.05); /* Hafif çizgi */
    padding: 12px 0;
}

.offcanvas-body .nav-link:hover {
    color: var(--vurgu-renk) !important;
    padding-left: 10px; /* Hover olunca hafif sağa kaysın */
}

/* =========================================
   6. MOBİL UYUMLULUK (RESPONSIVE)
   ========================================= */
@media (max-width: 991px) {
    
    /* Mobil Menü Genişliği: Ekranın %75'ini kaplasın */
    .offcanvas-end {
        width: 75% !important; 
        max-width: 300px; /* Maksimum 300px olsun */
    }

    /* Mobilde kart yükseklikleri */
    .main-card .image-wrapper, 
    .small-card .image-wrapper { 
        height: 250px; 
    }
    
    .news-title.fs-2 {
        font-size: 1.5rem !important;
    }
}