/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #333;
    background: linear-gradient(135deg, #00274C 0%, #FFCB05 50%, #00274C 100%);
    min-height: 100vh;
    position: relative;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(circle at 20% 80%, rgba(255, 203, 5, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255, 203, 5, 0.1) 0%, transparent 50%);
    pointer-events: none;
    z-index: -1;
}

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

/* Header - Mobile First */
.header {
    background: rgba(0, 39, 76, 0.95);
    color: white;
    padding: 1rem 0;
    text-align: center;
    backdrop-filter: blur(10px);
    border-bottom: 3px solid #FFCB05;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.3);
}

.title {
    font-size: 1.4rem;
    font-weight: 800;
    margin-bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    letter-spacing: -0.5px;
}

.michigan-logo {
    width: 35px;
    height: 35px;
    object-fit: contain;
    filter: drop-shadow(2px 2px 4px rgba(0, 0, 0, 0.5));
}

@keyframes pulse {
    0% { transform: scale(1); }
    100% { transform: scale(1.1); }
}

.wolverine-icon {
    font-size: 3.5rem;
}

.subtitle {
    font-size: 0.9rem;
    opacity: 0.95;
    font-weight: 400;
    margin-bottom: 0.5rem;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
    padding: 0 1rem;
}

.michigan-chant {
    font-size: 1.2rem;
    font-weight: 900;
    color: #FFCB05;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
    letter-spacing: 2px;
    margin-top: 0.5rem;
    animation: glow 1.5s ease-in-out infinite alternate;
}

@keyframes glow {
    0% { text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.7), 0 0 10px rgba(255, 203, 5, 0.5); }
    100% { text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.7), 0 0 20px rgba(255, 203, 5, 0.8); }
}

/* Main content - Mobile First */
.main {
    padding: 0.5rem 0;
    min-height: 60vh;
}

.status-section {
    margin-bottom: 1rem;
}

.status-message {
    text-align: center;
    padding: 2rem;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    margin-bottom: 2rem;
}

.status-message h2 {
    color: #00274C;
    margin-bottom: 1rem;
    font-size: 2rem;
}

/* Loading spinner */
.loading {
    text-align: center;
    padding: 3rem;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.spinner {
    width: 50px;
    height: 50px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #00274C;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 1rem;
}

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

/* Current games */
.current-games {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1rem;
    margin-top: 1.5rem;
}

.game-card {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 1.5rem;
    border-left: 4px solid #FFCB05;
}

.game-teams {
    font-weight: 600;
    color: #00274C;
    margin-bottom: 0.5rem;
}

.game-status {
    font-size: 0.9rem;
    color: #666;
}

/* Wolverines matchups section */
.wolverines-matchups {
    margin-top: 3rem;
}

.section-title {
    text-align: center;
    color: white;
    font-size: 2.5rem;
    margin-bottom: 2rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.matchups-container {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

/* Matchup card */
.matchup-card {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 12px 35px rgba(0, 39, 76, 0.2);
    border: 3px solid #FFCB05;
    position: relative;
}

.matchup-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #FFCB05 0%, #00274C 50%, #FFCB05 100%);
}

.game-header {
    background: linear-gradient(135deg, #00274C 0%, #003366 100%);
    color: white;
    padding: 1.5rem 1rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.game-header::before {
    content: '🏈';
    position: absolute;
    top: 10px;
    left: 20px;
    font-size: 2rem;
    opacity: 0.3;
}

.game-header::after {
    content: '🏈';
    position: absolute;
    top: 10px;
    right: 20px;
    font-size: 2rem;
    opacity: 0.3;
}

.game-title {
    font-size: 1.4rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    letter-spacing: -0.5px;
    line-height: 1.2;
}

.game-status {
    font-size: 1.1rem;
    opacity: 0.95;
    color: #FFCB05;
    font-weight: 600;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

/* Teams matchup - Mobile First */
.teams-matchup {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding: 1rem;
    align-items: center;
}

.team-section {
    text-align: center;
}

.team-name {
    font-size: 1.1rem;
    font-weight: 600;
    color: #00274C;
    margin-bottom: 0.8rem;
}

.team-wolverines {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.vs-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    font-weight: bold;
    color: #FFCB05;
    background: #00274C;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    margin: 0.5rem 0;
}

.no-wolverines-team {
    color: #666;
    font-style: italic;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 8px;
}

/* Team group */
.team-group {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s ease;
}

.team-group:hover {
    transform: translateY(-5px);
}

.team-header {
    background: #00274C;
    color: white;
    padding: 1.5rem;
    text-align: center;
}

.team-name {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.team-logo {
    width: 60px;
    height: 60px;
    object-fit: contain;
    margin: 0 auto;
    display: block;
}

.players-list {
    padding: 1.5rem;
}

/* Wolverine card in matchups */
.wolverine-card {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 1rem;
    border-radius: 10px;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    transition: all 0.3s ease;
    border: 2px solid #FFCB05;
    box-shadow: 0 3px 12px rgba(255, 203, 5, 0.2);
    position: relative;
    overflow: hidden;
    width: 100%;
    max-width: 300px;
}

.wolverine-card::before {
    content: '〽️';
    position: absolute;
    top: -10px;
    right: -10px;
    font-size: 3rem;
    opacity: 0.1;
    color: #00274C;
}

.wolverine-card:hover {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(255, 203, 5, 0.4);
    border-color: #00274C;
}

.wolverine-card .player-photo {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
}

.wolverine-card .player-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border: 2px solid #FFCB05;
    border-radius: 50%;
}

.wolverine-card .player-info {
    flex: 1;
    text-align: left;
}

.wolverine-card .player-name {
    font-weight: 600;
    color: #00274C;
    font-size: 0.9rem;
    margin-bottom: 0.2rem;
    line-height: 1.2;
}

.wolverine-card .player-details {
    display: flex;
    gap: 0.4rem;
    font-size: 0.75rem;
    color: #666;
    flex-wrap: wrap;
}

/* Legacy player card styles */
.player-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    background: #f8f9fa;
    transition: background-color 0.3s ease;
}

.player-card:hover {
    background: #e9ecef;
}

.player-card:last-child {
    margin-bottom: 0;
}

.player-photo {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #FFCB05;
}

.player-info {
    flex: 1;
}

.player-name {
    font-weight: 600;
    color: #00274C;
    font-size: 1.1rem;
    margin-bottom: 0.25rem;
}

.player-details {
    display: flex;
    gap: 1rem;
    font-size: 0.9rem;
    color: #666;
}

.player-number {
    font-weight: 500;
    color: #00274C;
}

.player-position {
    font-weight: 500;
}

.player-class {
    font-style: italic;
}

/* Footer */
.footer {
    background: rgba(0, 39, 76, 0.95);
    color: white;
    text-align: center;
    padding: 2rem 0;
    margin-top: auto;
    border-top: 4px solid #FFCB05;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.3);
}

.footer p {
    margin-bottom: 0.5rem;
}

.go-blue {
    font-weight: 900;
    font-size: 1.5rem;
    color: #FFCB05;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
    letter-spacing: 2px;
    animation: glow 2s ease-in-out infinite alternate;
}

/* Progressive Enhancement for Tablets */
@media (min-width: 768px) {
    .container {
        padding: 0 20px;
    }
    
    .header {
        padding: 1.5rem 0;
        border-bottom: 4px solid #FFCB05;
    }
    
    .title {
        font-size: 1.8rem;
        flex-direction: row;
        gap: 1rem;
    }
    
    .michigan-logo {
        width: 45px;
        height: 45px;
    }
    
    .subtitle {
        font-size: 1.1rem;
        padding: 0;
    }
    
    .michigan-chant {
        font-size: 1.6rem;
        margin-top: 1rem;
    }
    
    .main {
        padding: 2rem 0;
    }
    
    .teams-matchup {
        display: grid;
        grid-template-columns: 1fr auto 1fr;
        gap: 1.5rem;
        padding: 1.5rem;
        align-items: start;
    }
    
    .vs-divider {
        width: 55px;
        height: 55px;
        font-size: 1.3rem;
        margin: 0;
        align-self: center;
    }
    
    .wolverine-card {
        max-width: none;
        padding: 1.1rem;
    }
    
    .wolverine-card .player-photo {
        width: 45px;
        height: 45px;
    }
    
    .wolverine-card .player-name {
        font-size: 0.95rem;
    }
    
    .wolverine-card .player-details {
        font-size: 0.8rem;
    }
}

/* Progressive Enhancement for Desktop */
@media (min-width: 1024px) {
    .header {
        padding: 2rem 0;
    }
    
    .title {
        font-size: 2.2rem;
        gap: 1.2rem;
    }
    
    .michigan-logo {
        width: 55px;
        height: 55px;
    }
    
    .subtitle {
        font-size: 1.3rem;
    }
    
    .michigan-chant {
        font-size: 2rem;
        letter-spacing: 3px;
    }
    
    .main {
        padding: 3rem 0;
    }
    
    .status-section {
        margin-bottom: 3rem;
    }
    
    .teams-matchup {
        gap: 2rem;
        padding: 2rem;
    }
    
    .vs-divider {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }
    
    .wolverine-card {
        gap: 1rem;
        padding: 1.2rem;
        border: 3px solid #FFCB05;
    }
    
    .wolverine-card .player-photo {
        width: 50px;
        height: 50px;
    }
    
    .wolverine-card .player-name {
        font-size: 1rem;
        margin-bottom: 0.25rem;
    }
    
    .wolverine-card .player-details {
        font-size: 0.85rem;
        gap: 0.5rem;
    }
}
