/* Modern League Page Styles - Blue Theme */
.league-page-container {
    font-family: 'Inter', 'Segoe UI', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--primary-black);
    min-height: 100vh;
    color: #ffffff;
}

/* Hero Section */
.league-hero-section {
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    padding: 3rem 1rem 4rem;
    position: relative;
    overflow: hidden;
    margin: -2rem -1rem 3rem;
    border-radius: 0 0 32px 32px;
}

.league-hero-bg-element-1,
.league-hero-bg-element-2,
.league-hero-bg-element-3 {
    position: absolute;
    border-radius: 50%;
    opacity: 0.1;
    pointer-events: none;
}

.league-hero-bg-element-1 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.3) 0%, transparent 70%);
    top: -200px;
    left: -100px;
}

.league-hero-bg-element-2 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.2) 0%, transparent 70%);
    bottom: -150px;
    right: -100px;
}

.league-hero-bg-element-3 {
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.15) 0%, transparent 70%);
    top: 50%;
    right: 20%;
}

.league-hero-content {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
    text-align: center;
}

/* Breadcrumb */
.league-breadcrumb {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 2rem;
    font-size: 0.9rem;
    opacity: 0.9;
    justify-content: center;
    flex-wrap: wrap;
}

.league-breadcrumb-item {
    color: white;
    text-decoration: none;
    transition: opacity 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.league-breadcrumb-item:hover {
    opacity: 0.8;
}

.league-breadcrumb-separator {
    color: rgba(255, 255, 255, 0.6);
    margin: 0 0.5rem;
}

.league-breadcrumb-current {
    color: rgba(255, 255, 255, 0.8);
}

/* League Header */
.league-header-main {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.league-logo-container {
    width: 120px;
    height: 120px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.league-logo-wrapper {
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.league-logo {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.league-title-section {
    text-align: center;
}

.league-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 800;
    color: white;
    margin: 0;
    line-height: 1.1;
}

.league-subtitle {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.9);
    margin: 0.5rem 0 0;
    font-weight: 500;
}

.league-meta {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
    margin-top: 1rem;
}

.league-meta-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.1);
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.league-meta-icon {
    width: 18px;
    height: 18px;
    color: #fbbf24;
}

/* League Main Container */
.league-main-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem 3rem;
}

/* League Section */
.league-standings-section,
.league-matches-section {
    background: var(--primary-black-light);
    border-radius: 16px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 4px 20px rgba(59, 130, 246, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.league-standings-section:hover,
.league-matches-section:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 32px rgba(59, 130, 246, 0.12);
}

.league-section-header {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 2rem;
}

.league-section-icon-container {
    flex-shrink: 0;
}

.league-section-icon {
    width: 28px;
    height: 28px;
    color: #3b82f6;
}

.league-section-content {
    flex: 1;
}

.league-section-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #ffffff;
    margin: 0 0 0.25rem 0;
}

.league-section-subtitle {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
    margin: 0;
}

/* Standings Table */
.league-standings-container {
    overflow-x: auto;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.league-standings-table-wrapper {
    overflow-x: auto;
}

.league-standings-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--primary-black-light);
    min-width: 800px;
}

.league-standings-header {
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    color: white;
}

.league-standings-header th {
    padding: 1rem 0.75rem;
    text-align: center;
    font-weight: 600;
    font-size: 0.85rem;
    border-bottom: none;
    white-space: nowrap;
}

.league-standings-th {
    text-align: center;
}

.league-standings-team-header {
    text-align: left !important;
}

.league-standings-row {
    transition: all 0.3s ease;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.league-standings-row:hover {
    background: rgba(59, 130, 246, 0.1);
}

.league-standings-cell {
    padding: 0.75rem 0.5rem;
    text-align: center;
    font-size: 0.85rem;
    font-weight: 500;
    color: #ffffff;
}

.league-standings-position {
    font-weight: 700;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
}

.league-standings-team {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-align: left;
    min-width: 200px;
}

.league-standings-team-logo {
    width: 28px;
    height: 28px;
    border-radius: 4px;
    object-fit: contain;
    background: rgba(255, 255, 255, 0.05);
}

.league-standings-team-name {
    font-weight: 600;
    color: #ffffff;
    white-space: nowrap;
}

.league-standings-stat {
    color: rgba(255, 255, 255, 0.8);
}

.league-standings-win {
    color: #10b981;
    font-weight: 600;
}

.league-standings-draw {
    color: #f59e0b;
    font-weight: 600;
}

.league-standings-loss {
    color: #ef4444;
    font-weight: 600;
}

.league-standings-goals-for {
    color: #10b981;
}

.league-standings-goals-against {
    color: #ef4444;
}

.league-standings-diff {
    font-weight: 600;
}

.league-standings-diff-positive {
    color: #10b981;
}

.league-standings-diff-negative {
    color: #ef4444;
}

.league-standings-points {
    font-weight: 700;
    color: #3b82f6;
    font-size: 0.95rem;
}

/* Position Indicators */
.league-position-champions {
    border-left: 4px solid #10b981;
}

.league-position-europa {
    border-left: 4px solid #f59e0b;
}

.league-position-conference {
    border-left: 4px solid #8b5cf6;
}

.league-position-relegation {
    border-left: 4px solid #ef4444;
}

/* Legend */
.league-standings-legend {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.05);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    justify-content: center;
}

.league-legend-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.8);
}

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

.league-legend-champions {
    background: #10b981;
}

.league-legend-europa {
    background: #f59e0b;
}

.league-legend-conference {
    background: #8b5cf6;
}

.league-legend-relegation {
    background: #ef4444;
}

/* Matches Grid */
.league-matches-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}

/* Match Cards */
.league-matches-container {
    display: grid;
    gap: 1rem;
}

.league-match-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.league-match-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(59, 130, 246, 0.12);
    border-color: #3b82f6;
}

.league-match-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.league-match-date {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.85rem;
    font-weight: 500;
}

.league-match-status {
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
}

.league-match-scheduled {
    background: #3b82f6;
    color: white;
}

.league-match-finished {
    background: #10b981;
    color: white;
}

.league-match-teams {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.league-match-team {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex: 1;
    min-width: 0;
}

.league-match-team-logo {
    width: 36px;
    height: 36px;
    border-radius: 6px;
    object-fit: contain;
    background: rgba(255, 255, 255, 0.05);
    flex-shrink: 0;
}

.league-match-team-name {
    font-weight: 600;
    color: #ffffff;
    font-size: 0.9rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.league-match-score {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.25rem;
    font-weight: 700;
    color: #3b82f6;
    min-width: 80px;
    justify-content: center;
}

.league-match-vs {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.8rem;
    font-weight: 500;
}

.league-match-score-number {
    color: #3b82f6;
}

.league-match-score-separator {
    color: rgba(255, 255, 255, 0.5);
    font-size: 1rem;
    font-weight: 600;
}

/* Responsive Design */
@media (max-width: 768px) {
    .league-hero-section {
        padding: 2rem 0.5rem 3rem;
        margin: -1rem -0.5rem 2rem;
    }

    .league-header-main {
        flex-direction: column;
        gap: 1rem;
    }

    .league-logo-container {
        width: 100px;
        height: 100px;
    }

    .league-logo-wrapper {
        width: 70px;
        height: 70px;
    }

    .league-title {
        font-size: 2rem;
    }

    .league-subtitle {
        font-size: 1rem;
    }

    .league-meta {
        gap: 0.75rem;
    }

    .league-meta-item {
        padding: 0.5rem 1rem;
        font-size: 0.8rem;
    }

    .league-standings-section,
    .league-matches-section {
        padding: 1.5rem;
        margin-bottom: 1.5rem;
    }

    .league-section-title {
        font-size: 1.25rem;
    }

    .league-standings-header th {
        padding: 0.75rem 0.5rem;
        font-size: 0.75rem;
    }

    .league-standings-cell {
        padding: 0.5rem 0.25rem;
        font-size: 0.75rem;
    }

    .league-standings-team {
        min-width: 150px;
        gap: 0.5rem;
    }

    .league-standings-team-name {
        font-size: 0.8rem;
    }

    .league-standings-team-logo {
        width: 24px;
        height: 24px;
    }

    .league-matches-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .league-match-card {
        padding: 1rem;
    }

    .league-match-teams {
        gap: 0.75rem;
    }

    .league-match-team {
        gap: 0.5rem;
    }

    .league-match-team-logo {
        width: 32px;
        height: 32px;
    }

    .league-match-team-name {
        font-size: 0.85rem;
    }

    .league-standings-legend {
        gap: 1rem;
        font-size: 0.75rem;
    }
}

@media (max-width: 480px) {
    .league-hero-section {
        padding: 1.5rem 0.25rem 2.5rem;
    }

    .league-breadcrumb {
        font-size: 0.8rem;
        gap: 0.25rem;
    }

    .league-title {
        font-size: 1.75rem;
    }

    .league-meta {
        flex-direction: column;
        gap: 0.5rem;
        width: 100%;
    }

    .league-meta-item {
        justify-content: center;
    }

    .league-standings-section,
    .league-matches-section {
        padding: 1rem;
        border-radius: 12px;
    }

    .league-standings-table {
        min-width: 700px;
    }

    .league-matches-grid {
        gap: 1rem;
    }

    .league-match-card {
        padding: 0.75rem;
    }

    .league-match-team-name {
        font-size: 0.8rem;
    }
}

