/* fixtures.css - Styles specific to fixtures pages */

/* Scoped to fixtures container to avoid affecting other pages */
.fixtures-container {
    background-color: #E0E0E0;
    margin: -1rem;
    padding: 1rem;
}

.team-logo {
    width: 36px;
    height: 36px;
    object-fit: contain;
}

.date-header {
    background: #2c3e50;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 6px 6px 0 0;
    box-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

.date-header-content {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.date-day {
    font-size: 1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.date-number {
    font-size: 1.1rem;
    font-weight: 700;
    padding: 0.1rem 0.4rem;
    background: rgba(255,255,255,0.2);
    border-radius: 3px;
}

.date-month {
    font-size: 1rem;
    font-weight: 500;
}

.kickoff-time {
    border-right: 3px solid #e9ecef;
    position: relative;
    background-color: #f8f9fa;
    min-height: 100%;
}

.time-text {
    font-size: 0.95rem;
    font-weight: 600;
    color: #495057;
    letter-spacing: 0.5px;
    background: #f8f9fa;
    padding: 0.5rem 0.25rem;
    display: inline-block;
    position: relative;
}

.current-week-badge {
    background: #22c55e;
    color: white;
    font-size: 1.2rem;
    font-weight: 500;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    letter-spacing: 0.02em;
}

.mobile-fixture {
    display: flex;
    align-items: center;
    padding: 0.75rem 1rem;
    background: white;
    margin-bottom: 0.5rem;
    border-radius: 6px;
}

.mobile-kickoff {
    flex: 0 0 50px;
    text-align: center;
    padding-right: 0.75rem;
    margin-right: 0.75rem;
    border-right: 2px solid #e9ecef;
}

.mobile-kickoff .time-text {
    font-size: 0.85rem;
    font-weight: 600;
    color: #495057;
    background: transparent;
    padding: 0;
}

.mobile-teams {
    flex: 1;
    min-width: 0;
}

.mobile-team {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.25rem 0;
}

.mobile-team-logo {
    width: 24px;
    height: 24px;
    margin-right: 0.5rem;
    object-fit: contain;
    flex-shrink: 0;
}

.mobile-team-name {
    font-weight: 600;
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.mobile-score {
    font-weight: 600;
    background: #f8f9fa;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    min-width: 2rem;
    text-align: center;
    flex-shrink: 0;
    margin-left: 0.5rem;
}

/* Use more available width - applies to all screen sizes */
.fixtures-container {
    margin-left: 2px !important;
    margin-right: 2px !important;
    padding-left: 2px !important;
    padding-right: 2px !important;
}

.fixtures-container .gameweek-header {
    margin-left: 2px;
    margin-right: 2px;
    margin-bottom: 0.25rem !important;
    padding: 0.4rem 0.75rem;
}

.fixtures-container .date-group {
    margin-left: 2px;
    margin-right: 2px;
}

/* Mobile-specific adjustments */
@media (max-width: 768px) {
    .gameweek-header .gameweek-title {
        font-size: 0.9rem;
    }

    .gameweek-header .gameweek-number {
        font-size: 1rem;
    }

    .gameweek-header .nav-btn {
        width: 32px;
        height: 32px;
    }

    .gameweek-header .nav-btn i {
        font-size: 0.75rem;
    }

    /* Reduce date header font sizes */
    .date-header {
        padding: 0.35rem 0.75rem;
    }

    .date-day {
        font-size: 0.75rem;
    }

    .date-number {
        font-size: 0.8rem;
        padding: 0.05rem 0.3rem;
    }

    .date-month {
        font-size: 0.75rem;
    }

    /* Date groups spacing */
    .date-group {
        margin-bottom: 0.5rem;
    }

    /* Add padding at the bottom of fixture list */
    .fixtures-container {
        padding-bottom: 2rem;
    }
}
