/* ============================================
   SCHEDULE PAGE - TRADITIONAL CALENDAR VIEW
   ============================================ */

:root {
    --predators-gold: #FFB81C;
    --predators-navy: #041E42;
    --win-green: #10b981;
    --loss-red: #ef4444;
    --live-red: #dc2626;
}

.page-schedule {
    background: #f8f9fa;
    min-height: 100vh;
}

/* ============================================
   PAGE HEADER
   ============================================ */

.schedule-page-header {
    background: linear-gradient(135deg, var(--predators-navy) 0%, #052a5c 100%);
    color: white;
    padding: 24px 24px 20px;
}

.schedule-header-content {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.schedule-page-header h1 {
    font-size: 32px;
    font-weight: 900;
    margin: 0;
}

.season-record {
    display: flex;
    gap: 12px;
    align-items: baseline;
}

.record-label {
    font-size: 13px;
    opacity: 0.8;
    text-transform: uppercase;
}

.record-value {
    font-size: 20px;
    font-weight: 700;
    color: var(--predators-gold);
}

/* ============================================
   CALENDAR CONTROLS
   ============================================ */

.calendar-controls {
    background: white;
    border-bottom: 2px solid #e0e0e0;
    padding: 20px 24px;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.controls-wrapper {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 24px;
}

.month-nav-btn {
    width: 40px;
    height: 40px;
    border: 2px solid var(--predators-navy);
    background: white;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    color: var(--predators-navy);
}

.month-nav-btn:hover {
    background: var(--predators-gold);
    border-color: var(--predators-gold);
    color: white;
}

.current-month {
    font-size: 24px;
    font-weight: 700;
    color: var(--predators-navy);
    min-width: 220px;
    text-align: center;
    margin: 0;
}

/* ============================================
   CALENDAR SECTION
   ============================================ */

.calendar-section {
    max-width: 1400px;
    margin: 0 auto;
    padding: 32px 24px;
}

.calendar-container {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    overflow: hidden;
}

/* ============================================
   CALENDAR GRID - TRADITIONAL LAYOUT
   ============================================ */

.calendar-grid {
    width: 100%;
}

.calendar-header {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    background: linear-gradient(135deg, var(--predators-navy) 0%, #052a5c 100%);
    border-bottom: 3px solid var(--predators-gold);
}

.day-header {
    padding: 16px 12px;
    text-align: center;
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: white;
}

.calendar-days {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    background: white;
}

.calendar-day {
    min-height: 120px;
    border: 1px solid #e9ecef;
    padding: 8px;
    background: white;
    position: relative;
    transition: all 0.2s ease;
}

.calendar-day.empty {
    background: #f8f9fa;
}

.calendar-day.today {
    background: #fffbf0;
    border: 2px solid var(--predators-gold);
}

.calendar-day.has-game:hover {
    background: #f8f9fa;
    cursor: pointer;
}

.day-number {
    font-size: 16px;
    font-weight: 700;
    color: var(--predators-navy);
    margin-bottom: 8px;
}

.calendar-day.today .day-number {
    color: var(--predators-gold);
}

/* ============================================
   GAME CELLS
   ============================================ */

.game-cell {
    margin-top: 6px;
    padding: 8px;
    border-radius: 6px;
    font-size: 12px;
    transition: all 0.2s ease;
}

.game-cell.win {
    background: rgba(16, 185, 129, 0.15);
    border-left: 3px solid var(--win-green);
}

.game-cell.loss {
    background: rgba(239, 68, 68, 0.15);
    border-left: 3px solid var(--loss-red);
}

.game-cell.live {
    background: rgba(220, 38, 38, 0.15);
    border-left: 3px solid var(--live-red);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

.game-cell.upcoming {
    background: #f8f9fa;
    border-left: 3px solid var(--predators-navy);
}

.game-opponent {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 4px;
}

.opponent-logo {
    width: 20px;
    height: 20px;
    object-fit: contain;
}

.opponent-abbrev {
    font-weight: 600;
    color: #1a1a1a;
    font-size: 11px;
}

.game-score {
    font-weight: 700;
    color: var(--predators-navy);
    font-size: 13px;
}

.game-time {
    font-weight: 600;
    color: #6b7280;
    font-size: 11px;
}

/* ============================================
   LOADING & ERROR STATES
   ============================================ */

.loading-spinner {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 80px 20px;
    gap: 16px;
}

.spinner {
    width: 48px;
    height: 48px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid var(--predators-gold);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loading-spinner p {
    color: #6b7280;
    font-size: 14px;
}

.error-message {
    text-align: center;
    padding: 80px 20px;
    color: #6b7280;
    font-size: 16px;
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

@media (max-width: 1024px) {
    .calendar-day {
        min-height: 100px;
    }

    .day-number {
        font-size: 14px;
    }

    .opponent-abbrev {
        font-size: 10px;
    }

    .game-score,
    .game-time {
        font-size: 11px;
    }
}

@media (max-width: 768px) {
    .schedule-page-header {
        padding: 32px 16px 24px;
    }

    .schedule-header-content {
        flex-direction: column;
        gap: 12px;
        align-items: flex-start;
    }

    .schedule-page-header h1 {
        font-size: 24px;
    }

    .calendar-controls {
        padding: 16px;
    }

    .current-month {
        font-size: 18px;
        min-width: 160px;
    }

    .calendar-section {
        padding: 24px 12px;
    }

    .calendar-day {
        min-height: 80px;
        padding: 6px;
    }

    .day-header {
        padding: 12px 8px;
        font-size: 12px;
    }

    .day-number {
        font-size: 13px;
        margin-bottom: 4px;
    }

    .game-cell {
        padding: 6px;
        margin-top: 4px;
    }

    .opponent-logo {
        width: 16px;
        height: 16px;
    }

    .opponent-abbrev {
        font-size: 12px; /* Increased from 9px for readability */
    }

    .game-score,
    .game-time {
        font-size: 13px; /* Increased from 10px - WCAG minimum */
    }
}

@media (max-width: 480px) {
    .day-header {
        padding: 12px 4px; /* Increased padding for better touch */
        font-size: 11px; /* Increased from 10px */
    }

    .calendar-day {
        min-height: 70px;
        padding: 4px;
    }

    .day-number {
        font-size: 13px; /* Increased from 12px */
    }

    .game-cell {
        padding: 6px; /* Increased from 4px for better touch area */
        min-height: 48px; /* Minimum touch target height */
    }

    .opponent-logo {
        width: 32px; /* Increased from 14px - better visibility and touch */
        height: 32px;
    }

    .opponent-abbrev {
        font-size: 10px; /* Increased from 8px - meets minimum */
    }

    .game-score,
    .game-time {
        font-size: 11px; /* Increased from 9px - better readability */
    }

    .current-month {
        font-size: 16px;
    }

    .month-nav-btn {
        width: 48px; /* Increased from 36px for better touch targets */
        height: 48px;
        font-size: 20px;
        min-width: 48px;
        min-height: 48px;
    }
}
