/* Schedule Page Styles */

/* Header */
.schedule-header {
    background: linear-gradient(135deg, #1a1a1a 0%, #0d0d0d 100%);
    padding: 3rem 0 2rem;
    text-align: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.schedule-header h1 {
    font-family: 'Teko', sans-serif;
    font-size: 4rem;
    color: #fff;
    margin-bottom: 0.5rem;
    line-height: 1;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.schedule-header p {
    color: #aaa;
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

/* Tabs */
.schedule-tabs {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 1rem;
}

.tab-btn {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    padding: 0.75rem 2rem;
    font-family: 'Oswald', sans-serif;
    text-transform: uppercase;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 4px;
}

.tab-btn:hover {
    border-color: #ff6b35;
    color: #ff6b35;
}

.tab-btn.active {
    background: #ff6b35;
    border-color: #ff6b35;
    color: #fff;
}

/* Schedule Content */
.schedule-main {
    padding-top: 120px;
    min-height: 100vh;
    background-color: var(--bg-primary);
    /* Ensure background is solid if needed */
}

.schedule-content {
    padding: 3rem 0;
    min-height: 60vh;
}

.schedule-grid {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    max-width: 900px;
    margin: 0 auto;
}

/* Round Group */
.round-group {
    background: #1e1e1e;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.round-header {
    background: rgba(255, 255, 255, 0.05);
    padding: 1rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.round-title {
    font-family: 'Oswald', sans-serif;
    color: #ff6b35;
    font-size: 1.4rem;
    font-weight: 500;
}

.round-date {
    color: #888;
    font-size: 0.9rem;
}

/* Match Card */
.match-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: background 0.2s;
}

.match-card:last-child {
    border-bottom: none;
}

.match-card:hover {
    background: rgba(255, 255, 255, 0.02);
}

.team {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 1rem;
}

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

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

.team-logo {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 50%;
    padding: 5px;
}

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

.team-name {
    font-family: 'Oswald', sans-serif;
    font-size: 1.2rem;
    color: #fff;
    font-weight: 500;
}

/* Match Info / Score */
.match-info {
    flex: 0 0 140px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.match-time {
    color: #aaa;
    font-size: 1.1rem;
    font-weight: 500;
    margin-bottom: 4px;
}

.match-date-sm {
    color: #666;
    font-size: 0.8rem;
    text-transform: uppercase;
}

.match-score {
    font-family: 'Teko', sans-serif;
    font-size: 2.5rem;
    color: #fff;
    line-height: 1;
    letter-spacing: 2px;
}

.match-status {
    font-size: 0.8rem;
    padding: 2px 8px;
    border-radius: 4px;
    background: #333;
    color: #aaa;
    margin-top: 4px;
    text-transform: uppercase;
}

.match-status.live {
    background: #ff0000;
    color: #fff;
    animation: pulse 2s infinite;
}

.match-status.finished {
    background: rgba(255, 255, 255, 0.1);
    color: #aaa;
}

/* Loading State */
.loading-state {
    text-align: center;
    padding: 4rem;
    color: #aaa;
}

.spinner {
    font-size: 3rem;
    animation: spin 1s infinite linear;
    margin-bottom: 1rem;
    display: inline-block;
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

@keyframes pulse {
    0% {
        opacity: 1;
    }

    50% {
        opacity: 0.7;
    }

    100% {
        opacity: 1;
    }
}

/* Responsive */
@media (max-width: 768px) {
    .schedule-header h1 {
        font-size: 3rem;
    }

    .match-card {
        padding: 1rem;
    }

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

    .team-name {
        font-size: 1rem;
    }

    .match-info {
        flex: 0 0 100px;
    }

    .match-score {
        font-size: 2rem;
    }

    /* Mobile specific adjustments for alignment */
    .team.home .team-name {
        display: none;
    }

    /* Show logo only on very small screens if needed, or stack */
    .team.away .team-name {
        display: none;
    }
}

@media (min-width: 480px) {
    .team.home .team-name {
        display: block;
    }

    .team.away .team-name {
        display: block;
    }
}