/* ----------------------------------------------------------------------
 * SPOR CSS - Spor Sayfası Özel Tasarımı
 * ---------------------------------------------------------------------- */

/* --- RENK PALETİ (Spora Özel) --- */
:root {
    --spor-primary: #10B981;        /* Canlı Yeşil */
    --spor-dark: #065F46;           /* Koyu Yeşil */
    --spor-bg: #F0FDF4;             /* Açık Yeşil Arkaplan */
    --spor-border: #D1FAE5;         /* Kenarlık */
}

/* --- GENEL YAPI --- */
.spor-page-wrapper {
    min-height: 100vh;
    padding-bottom: 50px;
}

/* --- SPOR MANŞET SLIDER --- */
.spor-headline-wrapper {
    width: 100%;
    height: 450px; /* Slider yüksekliği */
    background: #000;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.2);
    margin-bottom: 40px;
    position: relative;
}

/* Swiper Slider Ayarları */
.spor-slider {
    width: 100%;
    height: 100%;
}

.spor-slider .slide-content {
    background: linear-gradient(to top, rgba(0,0,0,0.95) 0%, rgba(0,0,0,0.5) 60%, transparent 100%);
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    height: 100%;
    width: 100%;
}

.spor-slider .slide-title {
    font-size: 36px;
    font-weight: 900;
    letter-spacing: -0.5px;
    color: #fff;
    text-shadow: 0 2px 10px rgba(0,0,0,0.5);
    margin: 0;
    line-height: 1.2;
}

.spor-badge {
    background-color: var(--spor-primary) !important;
    color: #fff;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    align-self: flex-start;
    margin-bottom: 15px;
}

/* --- GRID DÜZENİ (Sol İçerik + Sağ Sidebar) --- */
.spor-grid-layout {
    display: grid;
    grid-template-columns: 1fr 340px; /* Geniş Sidebar */
    gap: 40px;
    align-items: start;
}

.spor-main-content {
    min-width: 0;
}

/* --- HABER KARTLARI (Yatay Liste) --- */
.news-list-vertical {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.news-card-horizontal {
    display: flex;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: transform 0.2s, box-shadow 0.2s;
    height: 180px; /* Sabit yükseklik */
}

.news-card-horizontal:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
    border-color: var(--spor-primary);
}

.card-img-left {
    width: 260px; /* Görsel genişliği */
    flex-shrink: 0;
    position: relative;
    overflow: hidden;
}

.card-img-left img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.news-card-horizontal:hover .card-img-left img {
    transform: scale(1.05);
}

.card-body-right {
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    flex: 1;
}

.card-title {
    margin: 0 0 10px;
    font-size: 20px;
    font-weight: 700;
    line-height: 1.3;
    color: var(--text-heading);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-title a { text-decoration: none; color: inherit; transition: color 0.2s; }
.card-title a:hover { color: var(--spor-primary); }

.card-desc {
    font-size: 14px;
    color: var(--text-body);
    margin-bottom: 15px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.5;
}

.card-meta {
    font-size: 12px;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: auto;
}

/* --- SIDEBAR & WIDGETLAR --- */
.spor-sidebar {
    position: sticky;
    top: 90px;
    z-index: 10;
}

.sidebar-widget {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    overflow: hidden;
    margin-bottom: 30px;
    box-shadow: var(--shadow-sm);
}

.widget-header {
    background: var(--spor-bg);
    padding: 15px 20px;
    border-bottom: 1px solid var(--spor-border);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.widget-header h3 {
    margin: 0;
    font-size: 16px;
    font-weight: 800;
    color: var(--spor-dark);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* --- PUAN DURUMU TABLOSU --- */
.league-table-widget .p-20 { padding: 0; } 

.table-responsive { overflow-x: auto; }

.league-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

.league-table th {
    background: #F9FAFB;
    color: var(--text-muted);
    font-weight: 600;
    text-align: center;
    padding: 12px 8px;
    border-bottom: 2px solid var(--border-color);
    white-space: nowrap;
}

.league-table td {
    padding: 10px 8px;
    border-bottom: 1px solid var(--border-color);
    text-align: center;
    color: var(--text-body);
    font-weight: 500;
}

.league-table tr:last-child td { border-bottom: none; }

/* Takım Kolonu Sola Yaslı */
.league-table .team-col {
    text-align: left;
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    color: var(--text-heading);
    min-width: 120px;
}

.team-logo { width: 24px; height: 24px; object-fit: contain; }

/* Sıra Numaraları ve Renkler */
.rank-col { font-weight: 700; color: var(--text-muted); width: 40px; }
.rank-1 { background-color: #DCFCE7; color: #166534; } /* Şampiyonlar Ligi */
.rank-2, .rank-3 { background-color: #E0F2FE; color: #075985; } /* Avrupa */
.rank-16, .rank-17, .rank-18, .rank-19 { background-color: #FEF2F2; color: #991B1B; } /* Düşme Hattı */

.points { font-weight: 800; color: var(--spor-dark); background: var(--spor-bg); padding: 4px 8px; border-radius: 4px; }

/* --- RESPONSIVE --- */
@media (max-width: 992px) {
    .spor-grid-layout {
        grid-template-columns: 1fr; /* Mobilde tek sütun */
    }
    
    .spor-sidebar {
        position: static; /* Sidebar sticky özelliğini kaldır */
    }
}

@media (max-width: 768px) {
    .spor-headline-wrapper { height: 300px; }
    .spor-slider .slide-title { font-size: 24px; }
    
    .news-card-horizontal { 
        flex-direction: column; 
        height: auto; 
    }
    .card-img-left { width: 100%; height: 200px; }
    .card-body-right { padding: 15px; }
    .card-title { font-size: 18px; }
}