/* Upcoming Games Page CSS */
/* Dark theme with college football styling */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    color: #e0e0e0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    min-height: 100vh;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Navigation */
.navbar {
    background: rgba(0, 0, 0, 0.3);
    padding: 15px 0;
    margin-bottom: 30px;
    border-radius: 10px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.nav-links {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

.nav-link {
    color: #e0e0e0;
    text-decoration: none;
    padding: 10px 20px;
    border-radius: 25px;
    transition: all 0.3s ease;
    font-weight: 500;
    border: 2px solid transparent;
}

.nav-link:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.nav-link.active {
    background: linear-gradient(45deg, #ff6b35, #f7931e);
    color: white;
    font-weight: 600;
    border-color: rgba(255, 255, 255, 0.3);
}

/* Main Title */
.main-title {
    text-align: center;
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 40px;
    background: linear-gradient(45deg, #ff6b35, #f7931e, #ffcd3c, #35a0ff);
    background-size: 300% 300%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradientShift 4s ease-in-out infinite;
    text-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

@keyframes gradientShift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

/* Games Container */
.games-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 16px;
    margin-bottom: 40px;
    max-width: 1400px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 20px;
}

/* Game Cards */
.game-card {
    background: #6c757d;
    border-radius: 12px;
    padding: 10px;
    border: 1px solid #5a6268;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    min-width: 280px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.15);
}

.game-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #ff6b35, #f7931e, #ffcd3c);
    border-radius: 20px 20px 0 0;
}

.game-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.25);
    background: #5a6268;
}

/* Game Header */
.game-header {
    text-align: center;
    margin-bottom: 8px;
}

.game-date {
    font-size: 0.7rem;
    color: #f8f9fa;
    font-weight: 600;
    background: rgba(0, 0, 0, 0.3);
    padding: 3px 10px;
    border-radius: 15px;
    display: inline-block;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Matchup */
.matchup {
    display: flex;
    align-items: stretch;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 8px;
}

.team {
    flex: 1;
    text-align: center;
    padding: 0;
    margin: 0;
    background: rgba(255, 255, 255, 1);
    border-radius: 12px;
    border: 2px solid rgba(255, 255, 255, 0.7);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    min-width: 0;
    max-width: 100%;
    position: relative;
    overflow: hidden;
    box-sizing: border-box;
}

.team:hover {
    border-color: rgba(255, 255, 255, 0.9);
    transform: translateY(-2px);
}

.team-logo-section {
    width: 100%;
    height: 65px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    /* Background will be set inline with team colors */
    border-radius: 12px 12px 0 0;
    margin: 0;
    border: none;
    z-index: 2;
}

.team-details {
    width: 100%;
    background: rgba(255, 255, 255, 1);
    padding: 6px;
    border-radius: 0 0 12px 12px;
    margin: 0;
    border: none;
    box-sizing: border-box;
    flex: 1;
    z-index: 1;
}

.team-logo {
    width: 45px;
    height: 45px;
    object-fit: contain;
    border-radius: 0;
    background: transparent;
    padding: 0;
    margin: 0;
    box-shadow: none;
    filter: drop-shadow(0 1px 3px rgba(0, 0, 0, 0.3));
}

.team-name {
    font-size: 0.7rem;
    font-weight: 700;
    color: #2c3e50;
    line-height: 1.1;
    text-align: center;
    margin-bottom: 4px;
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
    max-width: 100%;
}

.team-elo-spread {
    font-size: 0.65rem;
    color: #6c757d;
    font-weight: 600;
    margin-bottom: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
}

.team-elo {
    color: #6c757d;
}

.team-spread {
    font-size: 0.65rem;
    font-weight: 700;
    color: #fff;
    background: #007bff;
    padding: 1px 4px;
    border-radius: 4px;
}

.win-prob {
    font-size: 0.7rem;
    font-weight: 700;
    color: #28a745;
    background: #e8f5e8;
    padding: 2px 6px;
    border-radius: 8px;
}

/* Removed VS Section - cleaner card layout */
.vs-section, .vs, .spread {
    display: none !important;
}

/* Footer Info */
.footer-info {
    text-align: center;
    padding: 30px 20px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 30px;
}

.footer-info p {
    color: #bbb;
    font-size: 0.9rem;
    margin-bottom: 10px;
}

.footer-info p:last-child {
    margin-bottom: 0;
    font-weight: 600;
    color: #ffa500;
}

/* Responsive Design */
@media (max-width: 1400px) {
    .games-container {
        grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
        gap: 14px;
    }
}

@media (max-width: 1200px) {
    .games-container {
        grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
        gap: 12px;
    }
    
    .game-card {
        min-width: 240px;
    }
}

@media (max-width: 900px) {
    .games-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
        padding: 0 15px;
    }
    
    .game-card {
        min-width: auto;
    }
}

@media (max-width: 768px) {
    .games-container {
        grid-template-columns: 1fr;
        gap: 12px;
        padding: 0 10px;
    }
    
    .game-card {
        padding: 12px;
        min-width: auto;
    }
    
    .main-title {
        font-size: 2.2rem;
        margin-bottom: 30px;
    }
    
    .matchup {
        flex-direction: column;
        gap: 12px;
        margin-bottom: 12px;
    }
    
    .team {
        width: 100%;
        max-width: 320px;
        margin: 0 auto;
    }
    
    .team-logo {
        width: 50px;
        height: 50px;
    }
    
    .team-logo-section {
        height: 70px;
    }
    
    .team-name {
        font-size: 0.8rem;
    }
    
    .team-details {
        padding: 8px;
    }
    
    /* Improved mobile navigation */
    .navbar {
        padding: 10px 0;
        margin-bottom: 20px;
    }
    
    .nav-links {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
        padding: 0 10px;
    }
    
    .nav-link {
        padding: 12px 10px;
        font-size: 0.85rem;
        text-align: center;
        border-radius: 8px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 15px;
    }
    
    .main-title {
        font-size: 1.8rem;
    }
    
    .team-logo {
        width: 30px;
        height: 30px;
    }
    
    .team-logo-section {
        height: 40px;
    }
    
    .team-name {
        font-size: 0.6rem;
    }
    
    .team-elo-spread {
        font-size: 0.55rem;
    }
    
    .win-prob {
        font-size: 0.6rem;
    }
    
    .team-details {
        padding: 4px;
    }
    
    /* Stack navigation vertically on very small screens */
    .nav-links {
        grid-template-columns: 1fr;
        gap: 8px;
    }
    
    .nav-link {
        padding: 10px;
        font-size: 0.8rem;
    }
    
    .odds-display {
        font-size: 0.5rem;
    }
}

/* Odds Display Styles */
.odds-display {
    margin-top: 5px;
}

.odds-badge {
    background: linear-gradient(135deg, #28a745, #20c997);
    color: white;
    padding: 3px 8px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: bold;
    display: inline-block;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.vs-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 0 10px;
}

.vs-text {
    font-size: 1.2rem;
    font-weight: bold;
    color: #ff6600;
    margin-bottom: 5px;
}

.odds-source {
    font-size: 0.6rem;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Expected Value Styling */
.ev-display {
    margin-top: 4px;
    font-size: 0.8rem;
    font-weight: 600;
}

.ev-badge {
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.ev-positive {
    background: rgba(34, 197, 94, 0.2);
    color: #22c55e;
    border: 1px solid rgba(34, 197, 94, 0.4);
}

.ev-negative {
    background: rgba(239, 68, 68, 0.2);
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.4);
}

.ev-neutral {
    background: rgba(156, 163, 175, 0.2);
    color: #9ca3af;
    border: 1px solid rgba(156, 163, 175, 0.4);
}

/* Blue highlighting for teams with EV between 18-32 */
.team.ev-highlight {
    position: relative;
    background: rgba(59, 130, 246, 0.1) !important;
    border: 2px solid rgba(59, 130, 246, 0.4) !important;
    box-shadow: 0 0 15px rgba(59, 130, 246, 0.3) !important;
    animation: subtle-pulse 2s ease-in-out infinite;
}

.team.ev-highlight::before {
    content: "🎯";
    position: absolute;
    top: 5px;
    right: 5px;
    font-size: 1.2rem;
    z-index: 10;
    opacity: 0.8;
}

.team.ev-highlight .team-name {
    color: #60a5fa !important;
    text-shadow: 0 0 5px rgba(96, 165, 250, 0.3);
}

.team.ev-highlight .ev-badge.ev-positive {
    background: rgba(59, 130, 246, 0.3);
    color: #60a5fa;
    border-color: rgba(59, 130, 246, 0.6);
    box-shadow: 0 0 8px rgba(59, 130, 246, 0.4);
}

@keyframes subtle-pulse {
    0%, 100% {
        box-shadow: 0 0 15px rgba(59, 130, 246, 0.3);
    }
    50% {
        box-shadow: 0 0 20px rgba(59, 130, 246, 0.5);
    }
}