/* Games Page Styles - Compact List View */
.games-container {
    max-width: 700px;
    margin: 0 auto;
}

.games-section {
    margin-bottom: 2rem;
}

.section-title {
    color: #013369;
    font-size: 1.1rem;
    margin-bottom: 0.75rem;
    padding-bottom: 0.4rem;
    border-bottom: 2px solid #013369;
}

.games-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

/* Time Group Styles */
.time-group {
    margin-bottom: 1.5rem;
}

.time-group-header {
    background: linear-gradient(135deg, #013369 0%, #0056b3 100%);
    color: white;
    padding: 0.4rem 0.75rem;
    border-radius: 4px;
    margin-bottom: 0.5rem;
    font-weight: 600;
    font-size: 0.85rem;
    text-align: center;
}

.time-group-display {
    display: inline-block;
}

/* Compact Game Card */
.game-card-compact {
    background: white;
    border-radius: 6px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    overflow: hidden;
    transition: all 0.2s;
}

.game-card-compact:hover {
    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}

.game-card-compact.in-progress {
    border-left: 3px solid #ffc107;
}

.game-card-compact.upcoming {
    border-left: 3px solid #6c757d;
}

.game-card-compact.final {
    border-left: 3px solid #28a745;
}

/* Status Bar */
.game-status-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.4rem 0.75rem;
    background: #f8f9fa;
    font-size: 0.75rem;
    font-weight: 600;
}

.status-badge {
    padding: 0.15rem 0.5rem;
    border-radius: 10px;
    font-size: 0.7rem;
    font-weight: 700;
}

.status-badge.live {
    background: #ffc107;
    color: #000;
    animation: pulse 2s infinite;
}

.status-badge.final-badge {
    background: #28a745;
    color: white;
}

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

.quarter-display {
    color: #666;
    font-size: 0.7rem;
}

.time-display {
    color: #666;
    font-size: 0.75rem;
}

/* Matchup Display */
.game-matchup-compact {
    padding: 0.6rem 0.75rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.team-compact {
    display: grid;
    grid-template-columns: 28px 45px 1fr auto;
    gap: 0.5rem;
    align-items: center;
}

.team-compact.winner {
    font-weight: bold;
    color: #013369;
}

.logo-compact {
    width: 28px;
    height: 28px;
    object-fit: contain;
}

.team-abbr {
    font-size: 0.9rem;
    font-weight: 600;
    color: #333;
}

/* Team links */
.team-compact a,
.team-horizontal a {
    transition: opacity 0.2s;
}

.team-compact a:hover,
.team-horizontal a:hover {
    opacity: 0.7;
}

.score-spread-container {
    grid-column: 4;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.5rem;
}

.score-compact {
    font-size: 1.2rem;
    font-weight: bold;
    color: #013369;
    display: inline-block;
}

.spread-compact {
    font-size: 0.7rem;
    display: inline-flex;
    align-items: center;
    vertical-align: middle;
}

.spread-brackets {
    color: #999;
    font-weight: normal;
}

.spread-compact span[style*="color"] {
    font-weight: 600;
}

.vs-symbol {
    text-align: center;
    color: #999;
    font-weight: bold;
    font-size: 0.8rem;
    padding: 0.2rem 0;
}

/* Horizontal Layout for Upcoming Games */
.game-matchup-horizontal {
    padding: 0.6rem 0.75rem;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 1rem;
}

.team-horizontal {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.team-horizontal .score-compact {
    margin-left: 0.5rem;
    margin-right: 0;
}

.team-horizontal .spread-h {
    margin-left: 0.5rem;
}

.team-horizontal:first-child {
    /* Visitor team - left aligned */
    justify-content: flex-start;
}

.team-horizontal:last-child {
    /* Home team - right aligned */
    justify-content: flex-end;
}

.logo-horizontal {
    width: 28px;
    height: 28px;
    object-fit: contain;
}

.team-abbr-h {
    font-size: 0.9rem;
    font-weight: 600;
    color: #333;
}

.spread-h {
    font-size: 0.75rem;
}

.spread-h .spread-brackets {
    color: #999;
}

.vs-horizontal {
    color: #999;
    font-weight: bold;
    font-size: 0.85rem;
    text-align: center;
}

/* Game Result */
.game-result {
    padding: 0.4rem 0.75rem;
    background: #f8f9fa;
    border-top: 1px solid #dee2e6;
    font-size: 0.75rem;
    color: #666;
}

.game-result strong {
    color: #013369;
    font-weight: 700;
}

/* No Games Message */
.no-games {
    text-align: center;
    padding: 2rem;
    background: white;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    color: #666;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .games-container {
        padding: 0 0.75rem;
        max-width: 100%;
    }
    
    .week-section {
        margin-bottom: 2rem !important;
    }
    
    .section-title {
        font-size: 1rem;
        margin-bottom: 0.5rem;
    }
    
    /* Stack upcoming games vertically on mobile */
    .game-matchup-horizontal {
        grid-template-columns: 1fr;
        gap: 0.75rem;
        padding: 0.75rem;
    }
    
    .team-horizontal {
        justify-content: space-between !important;
        padding: 0.5rem;
        background: #f8f9fa;
        border-radius: 4px;
    }
    
    .team-horizontal:first-child {
        order: 1;
    }
    
    .vs-horizontal {
        order: 2;
        margin: 0.25rem 0;
        font-size: 0.9rem;
        padding: 0.25rem;
    }
    
    .team-horizontal:last-child {
        order: 3;
    }
    
    .logo-horizontal {
        width: 32px;
        height: 32px;
    }
    
    .team-abbr-h {
        font-size: 1rem;
        font-weight: 600;
    }
    
    .spread-h {
        font-size: 0.85rem;
        font-weight: 600;
    }
    
    .spread-h .spread-brackets {
        color: #999;
    }
    
    /* Improve compact game cards */
    .game-card-compact {
        margin-bottom: 0.75rem;
    }
    
    .game-status-bar {
        padding: 0.5rem 0.75rem;
        font-size: 0.8rem;
    }
    
    .game-matchup-compact {
        padding: 0.75rem;
        gap: 0.75rem;
    }
    
    .team-compact {
        grid-template-columns: 32px 1fr auto;
        gap: 0.75rem;
        padding: 0.5rem;
        background: #f8f9fa;
        border-radius: 4px;
    }
    
    .logo-compact {
        width: 32px;
        height: 32px;
    }
    
    .team-abbr {
        font-size: 1rem;
        font-weight: 600;
    }
    
    .score-spread-container {
        grid-column: 3;
        display: flex;
        align-items: center;
        justify-content: flex-end;
        gap: 0.5rem;
    }
    
    .score-compact {
        font-size: 1.3rem;
        font-weight: bold;
    }
    
    .spread-compact {
        font-size: 0.85rem;
        font-weight: 600;
        display: inline-flex;
        align-items: center;
    }
    
    .spread-compact .spread-brackets {
        color: #999;
        font-weight: normal;
    }
    
    .spread-compact span[style*="color"] {
        font-weight: 600;
    }
    
    .game-result {
        padding: 0.5rem 0.75rem;
        font-size: 0.8rem;
    }
    
    .time-group-header {
        padding: 0.5rem;
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .games-container {
        padding: 0 0.5rem;
    }
    
    .page-header h2 {
        font-size: 1.25rem;
    }
    
    .team-compact {
        grid-template-columns: 28px 1fr auto;
        gap: 0.5rem;
    }
    
    .logo-compact {
        width: 28px;
        height: 28px;
    }
    
    .team-abbr {
        font-size: 0.9rem;
    }
    
    .score-compact {
        font-size: 1.2rem;
    }
    
    .logo-horizontal {
        width: 28px;
        height: 28px;
    }
    
    .team-abbr-h {
        font-size: 0.9rem;
    }
}
