/* LİGLER SAYFASI - EXCEL TARZI MİNİMALİST TASARIM */

/* Ana Wrapper */
.leagues-wrapper {
    background: #fff;
    padding: 20px 0;
}

/* Lig Header - Sezon ve Lig Seçimi */
.league-header {
    background: #fff;
    padding: 20px 0;
    margin-bottom: 30px;
}

.league-selector {
    display: flex;
    align-items: center;
    gap: 15px;
    justify-content: center;
}

.league-selector label {
    font-size: 14px;
    font-weight: 600;
    color: #000;
    margin: 0;
    white-space: nowrap;
}

.league-selector select {
    min-width: 250px;
    height: 38px;
    border: 1px solid #d1d5db;
    border-radius: 4px;
    padding: 8px 12px;
    font-size: 13px;
    font-weight: 500;
    color: #000;
    background: #fff;
}

.league-selector select:focus {
    border-color: #af232e;
    outline: none;
    box-shadow: 0 0 0 1px #af232e;
}

/* HAFTA SEÇİCİ - EXCEL TABLOSU GİBİ */
.week-selector-top {
    margin: 30px 0;
    background: #fff;
}

.week-buttons {
    max-width: 100%;
    margin: 0 auto;
}

/* Devre Başlığı ve Haftalar - Excel Grid Yapısı */
.devre-container {
    display: table;
    width: 100%;
    margin-bottom: 0;
    border-collapse: collapse;
}

.devre-row {
    display: table-row;
}

.devre-baslik {
    display: table-cell;
    font-size: 13px;
    font-weight: 600;
    color: #000;
    text-align: left;
    padding: 8px 12px;
    background: #fff;
    border: 1px solid #d1d5db;
    vertical-align: middle;
    width: 100px;
    white-space: nowrap;
}

.devre-haftalar {
    display: table-cell;
    padding: 0;
    border: 1px solid #d1d5db;
    border-left: 0;
}

.devre-haftalar-inner {
    display: flex;
    flex-wrap: nowrap;
}

.week-btn {
    flex: 1;
    min-width: 40px;
    height: 38px;
    border: none;
    border-right: 1px solid #d1d5db;
    background: #fff;
    color: #000;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    margin: 0;
}

.week-btn:last-child {
    border-right: none;
}

.week-btn:hover {
    background: #f3f4f6;
}

.week-btn.active {
    background: #af232e;
    color: #fff;
    font-weight: 600;
}

/* MAÇLAR BÖLÜMÜ - EXCEL TABLOSU GİBİ */
.fixtures-section {
    background: #fff;
    margin-bottom: 40px;
}

.fixtures-section .section-header {
    background: #d1d5db;
    color: #000;
    padding: 12px 20px;
    margin: 0;
    border: 1px solid #d1d5db;
    text-align: center;
}

.fixtures-section .section-header h3 {
    margin: 0;
    font-size: 14px;
    font-weight: 600;
    text-transform: none;
    letter-spacing: normal;
}

.fixtures-container {
    padding: 0;
}

.fixture-item {
    background: #fff;
    border: 1px solid #d1d5db;
    border-top: none;
    margin: 0;
    padding: 12px 20px;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.fixture-item:hover {
    background: #f9fafb;
}

.fixture-teams {
    display: flex;
    align-items: center;
    gap: 15px;
    flex: 1;
    padding: 0;
    background: transparent;
}

.fixture-datetime {
    display: flex;
    align-items: center;
    gap: 5px;
    min-width: 120px;
}

.fixture-date,
.fixture-time {
    font-size: 13px;
    color: #000;
    font-weight: 500;
}

.home-team {
    text-align: right;
    min-width: 250px;
    font-size: 13px;
    font-weight: 500;
    color: #000;
}

.fixture-score {
    background: transparent;
    color: #000;
    padding: 0;
    border-radius: 0;
    font-size: 14px;
    font-weight: 600;
    min-width: 50px;
    text-align: center;
    margin: 0;
}

.away-team {
    text-align: left;
    min-width: 250px;
    font-size: 13px;
    font-weight: 500;
    color: #000;
}

.fixture-info {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0;
    background: transparent;
    border: none;
}

.fixture-actions {
    margin: 0;
}

.btn-fixture-detail {
    background: transparent;
    border: none;
    color: #2563eb;
    padding: 0;
    border-radius: 0;
    font-size: 13px;
    font-weight: 500;
    text-transform: none;
    letter-spacing: normal;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    text-decoration: none;
}

.btn-fixture-detail:hover {
    color: #1d4ed8;
    text-decoration: underline;
    background: transparent;
    transform: none;
}

.btn-fixture-detail i {
    display: none;
}

/* PUAN DURUMU BÖLÜMÜ */
.standings-section {
    background: #fff;
    margin-bottom: 40px;
}

/* Puan Durumu Başlığı - Kırmızı */
.standings-section .section-header {
    background: #af232e;
    color: #fff;
    padding: 15px 20px;
    margin: 0;
    border: 1px solid #af232e;
}

.standings-section .section-header h3 {
    margin: 0;
    font-size: 15px;
    font-weight: 700;
    text-transform: none;
    letter-spacing: normal;
}

.standings-section .section-header h3 i {
    display: none;
}

/* Grup Navigasyonu */
.group-navigation {
    padding: 15px 20px;
    background: #fff;
    border: 1px solid #d1d5db;
    border-top: none;
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.group-navigation label {
    font-size: 13px;
    font-weight: 600;
    color: #000;
    margin: 0;
}

.group-btn {
    padding: 6px 16px;
    font-size: 12px;
    font-weight: 600;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
    background: #4b5563;
    color: #fff;
}

.group-btn.active {
    background: #af232e;
    color: #fff;
}

.group-btn:hover {
    opacity: 0.9;
}

/* Display Mode Navigation */
.display-mode-navigation {
    padding: 12px 20px;
    background: #fff;
    border: 1px solid #d1d5db;
    border-top: none;
    display: flex;
    align-items: center;
    gap: 10px;
}

.display-btn {
    padding: 6px 20px;
    font-size: 13px;
    font-weight: 500;
    border: 1px solid #d1d5db;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
    background: #fff;
    color: #000;
}

.display-btn.active {
    background: #e5e7eb;
    color: #000;
    font-weight: 600;
}

.display-btn:hover {
    background: #f3f4f6;
}

/* Hafta Seçici Tekrar (Puan Durumu Üstünde) */
.standings-week-selector {
    border: 1px solid #d1d5db;
    border-top: none;
    background: #fff;
}

.standings-week-selector .devre-container {
    margin: 0;
}

/* Puan Durumu Tablosu - Excel Stili */
.table-responsive {
    padding: 0;
    border: 1px solid #d1d5db;
    border-top: none;
}

.standings-table {
    margin: 0;
    background: #fff;
    border-collapse: collapse;
    width: 100%;
}

.standings-table thead th {
    background: #fff;
    color: #000;
    font-weight: 600;
    font-size: 13px;
    text-transform: none;
    letter-spacing: normal;
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    text-align: center;
    vertical-align: middle;
}

.standings-table tbody td {
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    text-align: center;
    vertical-align: middle;
    font-size: 13px;
    font-weight: 500;
    background: #fff;
    color: #000;
}

.standings-table tbody tr:hover {
    background-color: #f3f4f6 !important;
}

/* Sıra Sütunu */
.position {
    font-weight: 600;
    color: #000;
    background: #fff;
}

/* Takım Adı Sütunu */
.team-name {
    text-align: left !important;
    font-weight: 600;
    color: #000;
    padding-left: 12px !important;
}

/* Puan Sütunu - Belirgin */
.points {
    background: #ffdbdb !important;
    color: #000;
    font-weight: 800;
    font-size: 15px;

}

/* Diğer Sütunlar */
.wins,
.losses,
.goals-for,
.goals-against,
.goal-diff {
    color: #000;
    font-weight: 500;
}

.goal-diff.positive {
    color: #000;
}

.goal-diff.negative {
    color: #000;
}

/* Sıra Renklendirmesi - Excel Tarzı Hafif Arka Plan */
.standings-table tbody tr.champion {
    background: #fff9e6;
    border-left: 3px solid #fbbf24;
}

.standings-table tbody tr.promotion {
    background: #f0fdf4;
    border-left: 3px solid #22c55e;
}

.standings-table tbody tr.playout {
    background: #fff7ed;
    border-left: 3px solid #fb923c;
}

.standings-table tbody tr.relegation {
    background: #fef2f2;
    border-left: 3px solid #ef4444;
}

/* Puan Durumu Legend */
.standings-legend {
    display: flex;
    justify-content: center;
    gap: 25px;
    padding: 12px 20px;
    background: #fff;
    border: 1px solid #d1d5db;
    border-top: none;
    flex-wrap: wrap;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    font-weight: 500;
    color: #000;
}

.legend-color {
    width: 20px;
    height: 12px;
    border-radius: 2px;
    border: 1px solid #d1d5db;
}

.legend-color.champion {
    background: #fbbf24;
}

.legend-color.promotion {
    background: #22c55e;
}

.legend-color.playout {
    background: #fb923c;
}

.legend-color.relegation {
    background: #ef4444;
}

.standings-note {
    padding: 12px 20px;
    background: #f9fafb;
    border: 1px solid #d1d5db;
    border-top: none;
}

.standings-note p {
    margin: 0;
    font-size: 12px;
    line-height: 1.6;
    color: #000;
    display: block;
}

.standings-note strong {
    color: #000;
    font-weight: 600;
}

/* Ceza Puanı Alan Takımlar */
.penalty-teams {
    padding: 10px 20px;
    background: #fff;
    border: 1px solid #d1d5db;
    border-top: none;
    font-size: 12px;
    color: #000;
    font-weight: 500;
}

/* Loading States */
.loading {
    text-align: center;
    padding: 40px;
    color: #6b7280;
}

.loading i {
    font-size: 20px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Error States */
.error-message {
    text-align: center;
    padding: 30px;
    color: #dc3545;
    background: #fff5f5;
    border: 1px solid #d1d5db;
    margin: 0;
}

/* Responsive Tasarım */
@media (max-width: 1200px) {
    .home-team,
    .away-team {
        min-width: 200px;
    }
}

@media (max-width: 992px) {
    .devre-baslik {
        font-size: 12px;
        padding: 6px 10px;
        width: 85px;
    }
    
    .week-btn {
        min-width: 35px;
        height: 35px;
        font-size: 12px;
    }
    
    .home-team,
    .away-team {
        min-width: 150px;
        font-size: 12px;
    }
    
    .fixture-datetime {
        min-width: 100px;
    }
    
    .fixture-date,
    .fixture-time {
        font-size: 12px;
    }
}

@media (max-width: 768px) {
    .league-selector {
        flex-direction: column;
        gap: 10px;
    }
    
    .league-selector select {
        width: 100%;
        min-width: 100%;
    }
    
    .devre-baslik {
        font-size: 11px;
        padding: 5px 8px;
        width: 70px;
    }
    
    .week-btn {
        min-width: 30px;
        height: 32px;
        font-size: 11px;
    }
    
    .fixture-item {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
        padding: 15px;
    }
    
    .fixture-teams {
        flex-direction: column;
        gap: 8px;
    }
    
    .fixture-datetime {
        min-width: auto;
        justify-content: center;
    }
    
    .home-team,
    .away-team {
        text-align: center;
        min-width: auto;
    }
    
    .fixture-score {
        text-align: center;
    }
    
    .fixture-info {
        justify-content: center;
    }
    
    .standings-table thead th {
        font-size: 11px;
        padding: 8px 6px;
    }
    
    .standings-table tbody td {
        font-size: 11px;
        padding: 8px 6px;
    }
    
    .team-name {
        font-size: 11px !important;
        padding-left: 8px !important;
    }
    
    .standings-legend {
        padding: 10px 15px;
        gap: 15px;
    }
    
    .legend-item {
        font-size: 11px;
    }
    
    .standings-note {
        padding: 10px 15px;
    }
    
    .standings-note p {
        font-size: 11px;
    }
    
    .group-navigation {
        padding: 12px 15px;
    }
    
    .display-mode-navigation {
        padding: 10px 15px;
    }
}

@media (max-width: 576px) {
    .devre-baslik {
        font-size: 10px;
        padding: 4px 6px;
        width: 60px;
    }
    
    .week-btn {
        min-width: 25px;
        height: 28px;
        font-size: 10px;
    }
    
    .standings-table thead th {
        font-size: 10px;
        padding: 6px 4px;
    }
    
    .standings-table tbody td {
        font-size: 10px;
        padding: 6px 4px;
    }
    
    .standings-legend {
        flex-direction: column;
        align-items: center;
        gap: 8px;
        padding: 8px 12px;
    }
    
    .legend-item {
        font-size: 10px;
    }
    
    .standings-note {
        padding: 8px 12px;
    }
    
    .standings-note p {
        font-size: 10px;
    }
    
    .fixture-item {
        padding: 12px;
    }
    
    .fixture-date,
    .fixture-time,
    .home-team,
    .away-team {
        font-size: 11px;
    }
    
    .fixture-score {
        font-size: 13px;
    }
}

/* MAÇ DETAY SAYFASI STİLLERİ */
.match-detail-wrapper {
    background: #fff;
    padding: 0;
}

/* Maç Başlığı */
.match-header {
    background: #f9fafb;
    border-radius: 8px;
    padding: 30px;
    margin-bottom: 30px;
    border: 1px solid #d1d5db;
}

.team-info-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.team-logo {
    width: auto;
    max-width: 100px;
    height: 100px;
    border-radius: 8px;
    border: 2px solid #d1d5db;
    padding: 10px;
    background: #fff;
    object-fit: contain;
}

.team-name {
    font-size: 16px;
    font-weight: 600;
    color: #000;
    text-align: center;
    line-height: 1.3;
    margin: 0;
}

/* Maç Bilgi Merkezi */
.match-info-center {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.match-additional-info {
    margin-top: 20px;
    padding: 15px;
    background: #f9fafb;
    border-radius: 8px;
    border: 1px solid #d1d5db;
    width: 100%;
    max-width: 400px;
}

.match-info-item {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
    font-size: 13px;
    color: #000;
}

.match-info-item:last-child {
    margin-bottom: 0;
}

.match-info-item i {
    color: #af232e;
    font-size: 14px;
    width: 16px;
    text-align: center;
}

.match-info-item span {
    flex: 1;
    line-height: 1.4;
}

.match-league {
    font-size: 13px;
    color: #000;
    font-weight: 600;
    text-align: center;
    line-height: 1.3;
}

.match-code {
    font-size: 14px;
    color: #000;
    font-weight: 600;
}

.match-venue {
    font-size: 12px;
    color: #6b7280;
    font-weight: 500;
    text-align: center;
}

.match-datetime {
    font-size: 13px;
    color: #000;
    font-weight: 600;
}

.match-score {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 15px;
}

.home-score,
.away-score {
    width: 50px;
    height: 50px;
    background: #af232e;
    color: #fff;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: 700;
}

.score-separator {
    font-size: 20px;
    font-weight: 600;
    color: #000;
}

/* Takım Detayları */
.match-detail-content {
    margin-top: 30px;
}

.team-details {
    padding: 0 15px;
}

.detail-section {
    background: #fff;
    border-radius: 8px;
    margin-bottom: 25px;
    border: 1px solid #d1d5db;
    overflow: hidden;
}

.section-title {
    background: #f9fafb;
    color: #000;
    padding: 12px 20px;
    font-size: 14px;
    font-weight: 600;
    display: flex;
    align-items: center;
    text-transform: none;
    letter-spacing: normal;
    border-bottom: 1px solid #d1d5db;
}

.section-title i {
    margin-right: 8px;
    font-size: 14px;
}

/* Oyuncu Listesi */
.players-list {
    padding: 15px 20px;
}

.player-item {
    display: flex;
    align-items: center;
    padding: 10px 12px;
    margin-bottom: 8px;
    background: #f9fafb;
    border-radius: 6px;
    border-left: 3px solid #d1d5db;
    transition: all 0.2s ease;
}

.player-item:hover {
    background: #f3f4f6;
    border-left-color: #af232e;
}

.player-item.goalkeeper {
    border-left-color: #fbbf24;
}

.player-item.substitute {
    border-left-color: #9ca3af;
}

.player-number {
    width: 32px;
    height: 28px;
    background: #374151;
    color: #fff;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 600;
    margin-right: 12px;
    flex-shrink: 0;
}

.player-item.goalkeeper .player-number {
    background: #fbbf24;
    color: #000;
}

.player-item.substitute .player-number {
    background: #9ca3af;
}

.player-name {
    flex: 1;
    font-size: 13px;
    font-weight: 500;
    color: #000;
    line-height: 1.3;
}

.player-time {
    font-size: 11px;
    color: #6b7280;
    font-weight: 500;
}

/* Teknik Sorumlu */
.coach-info {
    padding: 15px 20px;
    text-align: center;
}

.coach-name {
    font-size: 15px;
    font-weight: 600;
    color: #af232e;
    background: #f9fafb;
    padding: 10px 20px;
    border-radius: 6px;
    display: inline-block;
    border: 1px solid #d1d5db;
}

/* Kartlar */
.cards-list {
    padding: 15px 20px;
}

.card-item {
    display: flex;
    align-items: center;
    padding: 10px 12px;
    margin-bottom: 8px;
    background: #fef3c7;
    border-radius: 6px;
    border-left: 3px solid #fbbf24;
}

.card-item.red {
    background: #fee2e2;
    border-left-color: #ef4444;
}

.card-icon {
    margin-right: 10px;
    font-size: 16px;
}

.card-player {
    font-size: 13px;
    font-weight: 500;
    color: #000;
}

/* Oyuncu Değişiklikleri */
.substitution-list {
    padding: 15px 20px;
}

.substitution-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 12px;
    margin-bottom: 8px;
    background: #dcfce7;
    border-radius: 6px;
    border-left: 3px solid #22c55e;
}

.substitution-item.out {
    background: #fee2e2;
    border-left-color: #ef4444;
}

.player-item.substitution-in {
    border-left-color: #22c55e !important;
    background: #dcfce7 !important;
}

.player-item.substitution-in .player-number {
    background: #22c55e !important;
    color: #fff !important;
}

.player-item.substitution-out {
    border-left-color: #ef4444 !important;
    background: #fee2e2 !important;
}

.player-item.substitution-out .player-number {
    background: #ef4444 !important;
    color: #fff !important;
}

.sub-player {
    font-size: 13px;
    font-weight: 500;
    color: #000;
    flex: 1;
}

.sub-minute {
    background: #af232e;
    color: #fff;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
}

.substitution-item.out .sub-minute {
    background: #ef4444;
}

/* Responsive Tasarım - Maç Detay */
@media (max-width: 768px) {
    .match-header {
        padding: 20px 15px;
    }
    
    .team-logo {
        max-width: 80px;
        height: 80px;
    }
    
    .team-name {
        font-size: 14px;
    }
    
    .home-score,
    .away-score {
        width: 45px;
        height: 45px;
        font-size: 20px;
    }
    
    .team-details {
        padding: 0 10px;
    }
    
    .section-title {
        padding: 10px 15px;
        font-size: 13px;
    }
    
    .players-list,
    .cards-list,
    .substitution-list {
        padding: 12px 15px;
    }
}

@media (max-width: 576px) {
    .match-header {
        padding: 15px 10px;
    }
    
    .team-logo {
        max-width: 70px;
        height: 70px;
    }
    
    .team-name {
        font-size: 13px;
    }
    
    .home-score,
    .away-score {
        width: 40px;
        height: 40px;
        font-size: 18px;
    }
    
    .player-number {
        width: 28px;
        height: 24px;
        font-size: 11px;
    }
    
    .player-name {
        font-size: 12px;
    }
}
