/* Team Page CSS */
/* Dark theme with team-specific 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: 1400px;
    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);
}

/* Team Header */
.team-header {
    display: flex;
    align-items: center;
    gap: 30px;
    margin-bottom: 40px;
    padding: 30px;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
}

.team-logo-large {
    width: 120px;
    height: 120px;
    object-fit: contain;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
}

.team-title-section {
    flex: 1;
}

.team-name {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--team-color, #ffffff);
    text-shadow: 0 4px 8px rgba(0, 0, 0, 0.5);
    line-height: 1.1;
}

.team-details {
    display: flex;
    gap: 30px;
    font-size: 1.2rem;
}

.conference {
    color: #ffa500;
    font-weight: 600;
}

.current-elo {
    color: #4CAF50;
    font-weight: 600;
}

/* Season Stats */
.season-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.stat-card {
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
    border-radius: 15px;
    padding: 25px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
    border-color: rgba(255, 255, 255, 0.3);
}

.stat-value {
    font-size: 2.5rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 8px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.stat-label {
    font-size: 1rem;
    color: #bbb;
    font-weight: 500;
}

/* Games Section */
.games-section {
    margin-top: 40px;
}

.games-section h2 {
    font-size: 2.5rem;
    font-weight: 600;
    margin-bottom: 25px;
    color: #ffffff;
    text-align: center;
    background: linear-gradient(45deg, #ff6b35, #f7931e, #ffcd3c);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.games-table-container {
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
    border-radius: 15px;
    padding: 20px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    overflow-x: auto;
}

.games-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.95rem;
}

.games-table th {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    padding: 15px 10px;
    text-align: left;
    font-weight: 600;
    border-bottom: 2px solid rgba(255, 255, 255, 0.2);
}

.games-table td {
    padding: 12px 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.game-row {
    transition: all 0.3s ease;
}

.game-row:hover {
    background: rgba(255, 255, 255, 0.1);
}

.game-row.win {
    border-left: 4px solid #4CAF50;
}

.game-row.loss {
    border-left: 4px solid #f44336;
}

.result {
    font-weight: 700;
    text-align: center;
    width: 50px;
}

.result.w {
    color: #4CAF50;
}

.result.l {
    color: #f44336;
}

.opponent-link {
    color: #4fc3f7;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.opponent-link:hover {
    color: #81d4fa;
    text-decoration: underline;
}

.score {
    font-weight: 600;
    text-align: center;
}

.elo {
    text-align: center;
    font-weight: 500;
    color: #ffa500;
}

.elo-change {
    text-align: center;
    font-weight: 700;
}

.elo-change.positive {
    color: #4CAF50;
}

.elo-change.negative {
    color: #f44336;
}

.win-prob {
    text-align: center;
    color: #81c784;
    font-weight: 500;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .team-header {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }
    
    .team-name {
        font-size: 2.8rem;
    }
    
    .team-details {
        justify-content: center;
    }
}

@media (max-width: 900px) {
    .nav-links {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 15px;
        padding: 0 15px;
    }
    
    .nav-link {
        padding: 12px;
        font-size: 0.9rem;
        text-align: center;
        white-space: nowrap;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 15px;
    }
    
    .team-header {
        padding: 20px;
    }
    
    .team-logo-large {
        width: 80px;
        height: 80px;
    }
    
    .team-name {
        font-size: 2.2rem;
    }
    
    .team-details {
        flex-direction: column;
        gap: 10px;
        font-size: 1rem;
    }
    
    .season-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    .stat-value {
        font-size: 2rem;
    }
    
    .games-table {
        font-size: 0.85rem;
    }
    
    .games-table th,
    .games-table td {
        padding: 8px 6px;
    }
    
    .nav-links {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
        padding: 0 15px;
    }
    
    .nav-link {
        padding: 14px 8px;
        font-size: 0.85rem;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .team-name {
        font-size: 1.8rem;
    }
    
    .season-stats {
        grid-template-columns: 1fr;
    }
    
    .games-table-container {
        padding: 15px;
    }
    
    .games-table th,
    .games-table td {
        padding: 6px 4px;
        font-size: 0.8rem;
    }
    
    .nav-links {
        grid-template-columns: 1fr;
        gap: 8px;
        padding: 0 10px;
    }
    
    .nav-link {
        padding: 16px 12px;
        font-size: 0.9rem;
    }
}