/* Standings Page Styles */
.standings-page {
    padding: 0 0 40px;
}

/* League Selector */
.league-selector {
    display: flex;
    gap: 15px;
    margin-bottom: 30px;
    overflow-x: auto;
    padding: 10px 0;
    scrollbar-width: thin;
    scrollbar-color: var(--primary-color) #f0f0f0;
}

.league-selector::-webkit-scrollbar {
    height: 6px;
}

.league-selector::-webkit-scrollbar-track {
    background: #f0f0f0;
    border-radius: 3px;
}

.league-selector::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 3px;
}

.league-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 20px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 140px;
}

.league-btn img {
    width: 24px;
    height: 24px;
    object-fit: contain;
}

.league-btn span {
    font-weight: 500;
    color: #333;
}

.league-btn.active {
    background: var(--primary-color);
    border-color: var(--primary-color);
}

.league-btn.active span {
    color: #fff;
}

.league-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* Standings Section */
.standings-section {
    background: #fff;
    border-radius: 15px;
    padding: 25px;
    margin-bottom: 30px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.standings-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.last-update {
    color: #666;
    font-size: 14px;
}

/* Standings Legend */
.standings-legend {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.legend-color {
    width: 12px;
    height: 12px;
    border-radius: 2px;
}

.legend-item.champions .legend-color {
    background: #4CAF50;
}

.legend-item.europa .legend-color {
    background: #2196F3;
}

.legend-item.conference .legend-color {
    background: #9C27B0;
}

.legend-item.relegation .legend-color {
    background: #f44336;
}

.legend-text {
    font-size: 14px;
    color: #666;
}

/* Standings Table */
.standings-table-wrapper {
    overflow-x: auto;
}

.standings-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 800px;
}

.standings-table th,
.standings-table td {
    padding: 12px;
    text-align: center;
    border-bottom: 1px solid #eee;
}

.standings-table th {
    font-weight: 600;
    color: #333;
    background: #f8f9fa;
}

.standings-table td {
    color: #666;
}

.standings-table .position {
    width: 40px;
}

.standings-table .team {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 200px;
}

.standings-table .team-logo {
    width: 24px;
    height: 24px;
    object-fit: contain;
    border-radius: 50%;
    background-color: #fff;
    padding: 2px;
}

.standings-table .team span {
    font-weight: 500;
    white-space: nowrap;
}

.standings-table .points {
    font-weight: 600;
    color: #333;
}

.standings-table tr.champions {
    background: rgba(76, 175, 80, 0.1);
}

.standings-table tr.europa {
    background: rgba(33, 150, 243, 0.1);
}

.standings-table tr.conference {
    background: rgba(156, 39, 176, 0.1);
}

.standings-table tr.relegation {
    background: rgba(244, 67, 54, 0.1);
}

/* Form Column */
.standings-table .form {
    width: 120px;
}

.form-indicator {
    display: inline-block;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    margin: 0 2px;
    font-size: 10px;
    line-height: 16px;
    color: #fff;
}

.form-win {
    background: #4CAF50;
}

.form-draw {
    background: #FFC107;
}

.form-loss {
    background: #f44336;
}

/* Stats Section */
.stats-section {
    margin-bottom: 30px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 20px;
}

.stats-card {
    background: #fff;
    border-radius: 15px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.stats-card h3 {
    font-size: 18px;
    color: #333;
    margin-bottom: 15px;
}

.stats-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.stats-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px;
    background: #f8f9fa;
    border-radius: 8px;
}

.player-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

.player-info img {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
}

.player-name {
    font-weight: 500;
    color: #333;
}

.player-team {
    font-size: 12px;
    color: #666;
}

.stats-value {
    font-weight: 600;
    color: #333;
}

.yellow-card {
    color: #FFC107;
}

.red-card {
    color: #f44336;
}

/* Fixture Section */
.fixture-section {
    background: #fff;
    border-radius: 15px;
    padding: 25px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.fixture-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-bottom: 20px;
}

.fixture-controls button {
    background: none;
    border: none;
    cursor: pointer;
    color: #666;
    transition: color 0.3s ease;
}

.fixture-controls button:hover {
    color: var(--primary-color);
}

.current-week {
    font-weight: 500;
    color: #333;
}

.fixture-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.fixture-item {
    padding: 15px;
    background: #f8f9fa;
    border-radius: 10px;
}

.fixture-date {
    font-size: 14px;
    color: #666;
    margin-bottom: 10px;
}

.fixture-teams {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-bottom: 10px;
}

.home-team,
.away-team {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 150px;
}

.home-team {
    justify-content: flex-end;
}

.away-team {
    justify-content: flex-start;
}

.home-team img,
.away-team img {
    width: 24px;
    height: 24px;
    object-fit: contain;
}

.fixture-score {
    font-weight: 600;
    color: #333;
    min-width: 60px;
    text-align: center;
}

.fixture-stadium {
    font-size: 12px;
    color: #666;
    text-align: center;
}

/* Takım logoları için hover efekti */
.standings-table .team-logo:hover {
    transform: scale(1.1);
    transition: transform 0.2s ease-in-out;
}

/* Mobil görünüm için responsive ayarlar */
@media (max-width: 768px) {
    .standings-table .team {
        min-width: 150px;
    }

    .standings-table .team-logo {
        width: 20px;
        height: 20px;
    }
}

/* Responsive Styles */
@media (max-width: 992px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .league-btn {
        min-width: 120px;
        padding: 8px 15px;
    }
}

@media (max-width: 480px) {
    .standings-legend {
        flex-direction: column;
        gap: 10px;
    }

    .league-btn {
        min-width: 100px;
        padding: 6px 12px;
    }

    .league-btn img {
        width: 20px;
        height: 20px;
    }
}

/* Top Bar */
.top-bar {
    background-color: var(--primary-color);
    color: #fff;
    padding: 10px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Mobil için top bar gizleme */
@media screen and (max-width: 768px) {
    .top-bar {
        display: none;
    }

    /* Mobil için diğer düzenlemeler */
    .container {
        padding: 0;
        margin: 0;
    }

    .league-selector {
        padding: 10px;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .league-btn {
        min-width: 120px;
        padding: 8px;
    }

    .league-btn img {
        width: 24px;
        height: 24px;
    }

    .standings-table {
        font-size: 14px;
    }

    .standings-table th,
    .standings-table td {
        padding: 8px 4px;
    }

    .team-logo {
        width: 20px;
        height: 20px;
    }

    .form {
        display: none;
    }

    .stats-section {
        grid-template-columns: 1fr;
        gap: 10px;
        padding: 10px;
    }

    .stats-card {
        margin-bottom: 10px;
    }

    .fixture-section {
        padding: 10px;
    }

    .fixture-item {
        padding: 10px;
        margin-bottom: 10px;
    }

    .fixture-teams {
        flex-direction: column;
        gap: 5px;
    }

    .fixture-score {
        font-size: 18px;
        margin: 5px 0;
    }

    .fixture-stadium {
        font-size: 12px;
    }
}

/* Daha küçük ekranlar için ek düzenlemeler */
@media screen and (max-width: 480px) {

    .standings-table th:nth-child(4),
    .standings-table th:nth-child(5),
    .standings-table th:nth-child(6),
    .standings-table th:nth-child(7),
    .standings-table th:nth-child(8),
    .standings-table td:nth-child(4),
    .standings-table td:nth-child(5),
    .standings-table td:nth-child(6),
    .standings-table td:nth-child(7),
    .standings-table td:nth-child(8) {
        display: none;
    }

    .team span {
        max-width: 100px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
}