/* LİGLER SAYFASI STİLLERİ - GÖRSEL UYUMLU TASARIM */

/* Ana Wrapper */
.leagues-wrapper {
    background: #fff;
    padding: 0;
}

/* Lig Header */
.league-header {
    background: #fff;
    padding: 20px 0;
    margin-bottom: 30px;
    border-bottom: 2px solid rgba(175,35,46,.1);
}

.league-selector {
    display: flex;
    align-items: center;
    gap: 15px;
 
    justify-content: center;
}

.league-selector label {
    font-size: 16px;
    font-weight: 700;
    color: #2a2541;
    margin: 0;
    white-space: nowrap;
}

.league-selector select {
    width: 300px;
    height: 45px;
    border: 2px solid rgba(175,35,46,.3);
    border-radius: 8px;
    padding: 10px 15px;
    font-size: 14px;
    font-weight: 600;
    color: #2a2541;
    background: #fff;
}

.league-selector select:focus {
    border-color: #af232e;
    outline: none;
    box-shadow: 0 0 0 0.2rem rgba(175,35,46,.25);
}

/* Üstteki Hafta Seçici */
.week-selector-top {
    margin-top: 20px;
    text-align: center;
    padding: 6px 0 6px 0;
    background: #f8f9fa;
    border-radius: 15px;
    margin-bottom: 30px;
}

.week-selector-top .week-buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    max-width: 900px;
    margin: 0 auto;
}

/* Hafta Navigasyonu */
.week-navigation {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 15px;
}

.btn-week-nav {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    border: 2px solid #af232e;
    background: #fff;
    color: #af232e;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.btn-week-nav:hover {
    background: #af232e;
    color: #fff;
    transform: scale(1.1);
}

.week-info {
    font-size: 18px;
    font-weight: 800;
    color: #2a2541;
    min-width: 100px;
    text-align: center;
}

/* Puan Durumu Bölümü */
.standings-section {
    background: #fff;
    border-radius: 15px;
    margin-bottom: 40px;
    box-shadow: 0 8px 25px rgba(0,0,0,.08);
    overflow: hidden;
}

.section-header {
    background: linear-gradient(135deg, #af232e 0%, #2a2541 100%);
    color: #fff;
    padding: 20px 25px;
    margin: 0;
}

.section-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 800;
    display: flex;
    align-items: center;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.section-header h3 i {
    margin-right: 12px;
    font-size: 16px;
}

/* Puan Durumu Tablosu */
.standings-table {
    margin: 0;
    background: #fff;
}

.standings-table thead th {
    background: #f8f9fa;
    color: #2a2541;
    font-weight: 800;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 15px 10px;
    border: 1px solid #dee2e6;
    text-align: center;
    vertical-align: middle;
}

.standings-table tbody td {
    padding: 15px 10px;
    border: 1px solid #dee2e6;
    text-align: center;
    vertical-align: middle;
    font-size: 13px;
    font-weight: 600;
}

.standings-table tbody tr:hover {
    background-color: #f8f9fa;
}

/* Sıra Renklendirmesi */
.standings-table tbody tr.champion {
    border-left: 5px solid #ffd700;
    background: linear-gradient(135deg, #fff9e6, #fff);
}

.standings-table tbody tr.promotion {
    border-left: 5px solid #28a745;
    background: linear-gradient(135deg, #f0fff4, #fff);
}

.standings-table tbody tr.relegation {
    border-left: 5px solid #dc3545;
    background: linear-gradient(135deg, #fff5f5, #fff);
}

/* Özel Hücre Stilleri */
.position {
    font-weight: 800;
    color: #2a2541;
    background: #f8f9fa;
}

.team-name {
    text-align: left !important;
    font-weight: 800;
    color: #2a2541;
    padding-left: 20px !important;
}

.wins {
    color: #28a745;
    font-weight: 800;
}

.losses {
    color: #dc3545;
    font-weight: 800;
}

.goals-for {
    color: #007bff;
    font-weight: 700;
}

.goals-against {
    color: #fd7e14;
    font-weight: 700;
}

.goal-diff.positive {
    color: #28a745;
    font-weight: 800;
}

.goal-diff.negative {
    color: #dc3545;
    font-weight: 800;
}

.points {
    background: #af232e;
    color: #fff;
    font-weight: 800;
    font-size: 14px;
}

/* Puan Durumu Lejantı */
.standings-legend {
    display: flex;
    justify-content: center;
    gap: 30px;
    padding: 20px;
    background: #f8f9fa;
    border-top: 1px solid #dee2e6;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    font-weight: 600;
    color: #2a2541;
}

.legend-color {
    width: 20px;
    height: 12px;
    border-radius: 2px;
}

.legend-color.champion {
    background: #ffd700;
}

.legend-color.promotion {
    background: #28a745;
}

.legend-color.relegation {
    background: #dc3545;
}

/* Puan Durumu Notu */
.standings-note {
    padding: 15px 25px;
    background: #fff9e6;
    border-top: 1px solid #dee2e6;
    border-left: 4px solid #ffc107;
}

.standings-note p {
    margin: 0;
    font-size: 12px;
    line-height: 1.6;
    color: #2a2541;
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.standings-note i {
    color: #ffc107;
    font-size: 14px;
    margin-top: 2px;
    flex-shrink: 0;
}

.standings-note strong {
    color: #af232e;
}

/* Fikstür Bölümü */
.fixtures-section {
    background: #fff;
    border-radius: 15px;
    margin-bottom: 40px;
    box-shadow: 0 8px 25px rgba(0,0,0,.08);
    overflow: hidden;
}

.fixtures-container {
    padding: 25px;
}

.fixture-item {
    background: linear-gradient(135deg, #ffffff, #f8f9fa);
    border-radius: 15px;
    border: 2px solid transparent;
    box-shadow: 0 4px 15px rgba(0,0,0,.05);
    transition: all 0.3s ease;
    margin-bottom: 20px;
    overflow: hidden;
}

.fixture-item:hover {
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    border-color: rgba(175,35,46,.2);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(175,35,46,.1);
}

.fixture-teams {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px;
    background: #fff;
}

.home-team,
.away-team {
    font-size: 14px;
    font-weight: 700;
    color: #2a2541;
    flex: 1;
    text-align: center;
}

.fixture-score {
    background: linear-gradient(135deg, #af232e, #2a2541);
    color: #fff;
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 16px;
    font-weight: 800;
    min-width: 70px;
    text-align: center;
    margin: 0 15px;
}

.fixture-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    background: #f8f9fa;
    border-top: 1px solid #e9ecef;
}

.fixture-datetime {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.fixture-date {
    font-size: 12px;
    color: #6b7280;
    font-weight: 600;
}

.fixture-time {
    font-size: 14px;
    color: #2a2541;
    font-weight: 700;
}

.fixture-actions {
    margin-left: 15px;
}

.btn-fixture-detail {
    background: linear-gradient(135deg, #af232e, #2a2541);
    border: none;
    color: #fff;
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 5px;
}

.btn-fixture-detail:hover {
    background: linear-gradient(135deg, #8f1c25, #1a1a2e);
    transform: scale(1.05);
    color: #fff;
}

/* Hafta Butonları - Devre Sistemi */
.week-buttons {
    max-width: 700px;
    margin: 0 auto;
}

.devre-baslik {
    font-size: 14px;
    font-weight: 800;
    color: #2a2541;
    text-align: center;
    margin: 15px 0 10px 0;
    padding: 8px 15px;
    background: linear-gradient(135deg, #af232e, #2a2541);
    color: #fff;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: inline-block;
    width: 120px;
}

.devre-haftalar {
    display: grid;
    grid-template-columns: repeat(14, 1fr);
    gap: 0;
    justify-items: center;
}

.week-btn {
    width: 35px;
    height: 35px;
    border: 1px solid #dee2e6;
    background: #fff;
    color: #2a2541;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0;
}

.week-btn:hover {
    border-color: #af232e;
    background: #f8f9fa;
    transform: scale(1.05);
}

.week-btn.active {
    background: linear-gradient(135deg, #af232e, #2a2541);
    border-color: #af232e;
    color: #fff;
    transform: scale(1.05);
    box-shadow: 0 2px 8px rgba(175,35,46,.3);
}

/* Responsive Tasarım */
@media (max-width: 768px) {
    .league-header {
        padding: 15px 0;
    }
    
    .league-selector {
        margin-bottom: 20px;
        flex-direction: column;
        gap: 10px;
    }
    
    .league-selector select {
        width: 100%;
    }
    
    .week-selector-top {
        padding: 15px 0;
    }
    
    .standings-table thead th {
        font-size: 10px;
        padding: 10px 6px;
    }
    
    .standings-table tbody td {
        font-size: 11px;
        padding: 12px 6px;
    }
    
    .team-name {
        font-size: 12px !important;
        padding-left: 10px !important;
    }
    
    .fixtures-container {
        padding: 15px;
    }
    
    .fixture-item {
        margin-bottom: 15px;
    }
    
    .fixture-teams {
        padding: 15px;
    }
    
    .fixture-info {
        padding: 12px 15px;
    }
    
    .home-team,
    .away-team {
        font-size: 12px;
    }
    
    .fixture-score {
        font-size: 14px;
        padding: 6px 12px;
        margin: 0 10px;
    }
    
    .btn-fixture-detail {
        font-size: 10px;
        padding: 6px 12px;
    }
    
    .standings-legend {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
    
    .standings-note {
        padding: 12px 15px;
    }
    
    .standings-note p {
        font-size: 11px;
    }
    
    .week-buttons {
        max-width: 400px;
    }
    
    .devre-baslik {
        font-size: 12px;
        width: 100px;
        padding: 6px 12px;
    }
    
    .devre-haftalar {
        grid-template-columns: repeat(7, 1fr);
        gap: 0;
        margin-bottom: 15px;
    }
    
    .week-btn {
        width: 30px;
        height: 30px;
        font-size: 10px;
    }
}

@media (max-width: 576px) {
    .standings-table {
        font-size: 10px;
    }
    
    .standings-table thead th {
        padding: 8px 4px;
        font-size: 9px;
    }
    
    .standings-table tbody td {
        padding: 10px 4px;
        font-size: 10px;
    }
    
    .fixture-teams {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
    
    .home-team,
    .away-team {
        font-size: 13px;
    }
    
    .fixture-score {
        margin: 10px 0;
    }
    
    .week-buttons {
        max-width: 300px;
    }
    
    .devre-baslik {
        font-size: 11px;
        width: 90px;
        padding: 5px 10px;
    }
    
    .devre-haftalar {
        grid-template-columns: repeat(7, 1fr);
        gap: 0;
        margin-bottom: 12px;
    }
    
    .week-btn {
        width: 28px;
        height: 28px;
        font-size: 9px;
    }
}

/* Loading States */
.loading {
    text-align: center;
    padding: 40px;
    color: #6b7280;
}

.loading i {
    font-size: 24px;
    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: 2px solid #fecaca;
    border-radius: 8px;
    margin: 20px 0;
}

/* Animasyonlar */
.fade-in {
    animation: fadeIn 0.5s ease-in;
}

@keyframes fadeIn {
    0% { opacity: 0; transform: translateY(20px); }
    100% { opacity: 1; transform: translateY(0); }
}

/* MAÇ DETAY SAYFASI STİLLERİ */
.match-detail-wrapper {
    background: #fff;
    padding: 0;
}

/* Maç Başlığı */
.match-header {
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    border-radius: 20px;
    padding: 30px;
    margin-bottom: 40px;
    box-shadow: 0 8px 25px rgba(0,0,0,.08);
    border-top: 5px solid #af232e;
}

.team-info-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.team-logo {
    width: auto;
    max-width: 120px;
    height: 100px;
    border-radius: 50%;
    border: 3px solid #af232e;
    padding: 8px;
    background: #fff;
    box-shadow: 0 4px 15px rgba(175,35,46,.2);
    object-fit: contain;
}

.team-name {
    font-size: 16px;
    font-weight: 800;
    color: #2a2541;
    text-align: center;
    line-height: 1.2;
    margin: 0;
}

/* Maç Bilgi Merkezi */
.match-info-center {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

/* Maç Ek Bilgileri */
.match-additional-info {
    margin-top: 20px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 10px;
    border: 1px solid #e9ecef;
    width: 100%;
    max-width: 400px;
}

.match-info-item {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
    font-size: 13px;
    color: #2a2541;
}

.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: 12px;
    color: #6b7280;
    font-weight: 600;
    text-align: center;
    line-height: 1.3;
}

.match-code {
    font-size: 14px;
    color: #2a2541;
    font-weight: 700;
}

.match-venue {
    font-size: 11px;
    color: #6b7280;
    font-weight: 600;
    text-align: center;
}

.match-datetime {
    font-size: 13px;
    color: #af232e;
    font-weight: 700;
}

.match-score {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 10px;
}

.home-score,
.away-score {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #af232e, #2a2541);
    color: #fff;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: 900;
}

.score-separator {
    font-size: 20px;
    font-weight: 800;
    color: #2a2541;
}

/* Takım Detayları */
.match-detail-content {
    margin-top: 20px;
}

.team-details {
    padding: 0 15px;
}

.detail-section {
    background: #fff;
    border-radius: 15px;
    margin-bottom: 25px;
    box-shadow: 0 4px 15px rgba(0,0,0,.05);
    overflow: hidden;
    border: 1px solid #e9ecef;
}

.section-title {
    background: linear-gradient(135deg, #2a2541, #af232e);
    color: #fff;
    padding: 12px 20px;
    font-size: 14px;
    font-weight: 700;
    display: flex;
    align-items: center;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.section-title i {
    margin-right: 8px;
    font-size: 12px;
}

/* Oyuncu Listesi */
.players-list {
    padding: 15px 20px;
}

.player-item {
    display: flex;
    align-items: center;
    padding: 8px 12px;
    margin-bottom: 6px;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 3px solid #dee2e6;
    transition: all 0.3s ease;
}

.player-item:hover,
.player-item.player-hover {
    background: #e9ecef;
    border-left-color: #af232e;
    transform: translateX(3px);
}

.player-item.goalkeeper {
    border-left-color: #ffc107;
    background: linear-gradient(135deg, #fff9e6, #f8f9fa);
}

.player-item.substitute {
    border-left-color: #6c757d;
    background: linear-gradient(135deg, #f1f3f4, #f8f9fa);
}

.player-number {
    width: 30px;
    height: 25px;
    background: #af232e;
    color: #fff;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 700;
    margin-right: 12px;
    flex-shrink: 0;
}

.player-item.goalkeeper .player-number {
    background: #ffc107;
    color: #000;
}

.player-item.substitute .player-number {
    background: #6c757d;
}

.player-name {
    flex: 1;
    font-size: 12px;
    font-weight: 600;
    color: #2a2541;
    line-height: 1.2;
}

.player-time {
    font-size: 10px;
    color: #6b7280;
    font-weight: 500;
}

/* Teknik Sorumlu */
.coach-info {
    padding: 15px 20px;
    text-align: center;
}

.coach-name {
    font-size: 16px;
    font-weight: 800;
    color: #af232e;
    background: #f8f9fa;
    padding: 10px 20px;
    border-radius: 25px;
    display: inline-block;
    border: 2px solid #af232e;
}

/* Kartlar */
.cards-list {
    padding: 15px 20px;
}

.card-item {
    display: flex;
    align-items: center;
    padding: 8px 12px;
    margin-bottom: 6px;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 3px solid #ffc107;
}

.card-item.red {
    border-left-color: #dc3545;
}

.card-icon {
    margin-right: 10px;
    font-size: 16px;
}

.card-player {
    font-size: 12px;
    font-weight: 600;
    color: #2a2541;
}

/* Oyuncu Değişiklikleri */
.substitution-list {
    padding: 15px 20px;
}

.substitution-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 12px;
    margin-bottom: 6px;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 3px solid #28a745;
}

.substitution-item.out {
    border-left-color: #dc3545;
}

/* Oyuna Girenler - Yeşil */
.player-item.substitution-in {
    border-left-color: #28a745 !important;
    background: linear-gradient(135deg, #f0fff4, #f8f9fa) !important;
}

.player-item.substitution-in .player-number {
    background: #28a745 !important;
    color: #fff !important;
}

/* Oyundan Çıkanlar - Kırmızı */
.player-item.substitution-out {
    border-left-color: #dc3545 !important;
    background: linear-gradient(135deg, #fff5f5, #f8f9fa) !important;
}

.player-item.substitution-out .player-number {
    background: #dc3545 !important;
    color: #fff !important;
}

.sub-player {
    font-size: 12px;
    font-weight: 600;
    color: #2a2541;
    flex: 1;
}

.sub-minute {
    background: #af232e;
    color: #fff;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 10px;
    font-weight: 700;
}

.substitution-item.out .sub-minute {
    background: #dc3545;
}

/* Responsive Tasarım - Maç Detay */
@media (max-width: 768px) {
    .match-header {
        padding: 20px 15px;
    }
    
    .team-logo {
        width: auto;
        max-width: 80px;
        height: 70px;
    }
    
    .team-name {
        font-size: 14px;
    }
    
    .match-score {
        margin-top: 15px;
    }
    
    .home-score,
    .away-score {
        width: 40px;
        height: 40px;
        font-size: 18px;
    }
    
    .team-details {
        padding: 0 5px;
        margin-bottom: 30px;
    }
    
    .section-title {
        padding: 10px 15px;
        font-size: 12px;
    }
    
    .players-list,
    .cards-list,
    .substitution-list {
        padding: 12px 15px;
    }
    
    .player-item {
        padding: 6px 10px;
    }
    
    .player-name {
        font-size: 11px;
    }
    
    .coach-name {
        font-size: 14px;
        padding: 8px 15px;
    }
}

@media (max-width: 576px) {
    .match-header {
        padding: 15px 10px;
    }
    
    .team-logo {
        width: auto;
        max-width: 70px;
        height: 60px;
    }
    
    .team-name {
        font-size: 12px;
    }
    
    .match-info-center {
        margin: 20px 0;
    }
    
    .match-league,
    .match-venue {
        font-size: 10px;
    }
    
    .match-code,
    .match-datetime {
        font-size: 12px;
    }
    
    .home-score,
    .away-score {
        width: 35px;
        height: 35px;
        font-size: 16px;
    }
    
    .player-number {
        width: 25px;
        height: 20px;
        font-size: 10px;
    }
    
    .player-name {
        font-size: 10px;
    }
}
