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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    background-color: #f5f5f5;
}

.navbar {
    background-color: #1d428a;
    padding: 1rem 2rem;
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.nav-brand {
    font-size: 1.5rem;
    font-weight: bold;
    cursor: pointer;
    transition: opacity 0.2s;
}

.nav-brand:hover {
    opacity: 0.8;
}

.nav-links {
    display: flex;
    gap: 1rem;
}

.nav-link {
    background: none;
    border: none;
    color: white;
    padding: 0.5rem 1rem;
    cursor: pointer;
    font-size: 1rem;
    border-radius: 4px;
    transition: background-color 0.3s;
}

.nav-link:hover {
    background-color: rgba(255,255,255,0.1);
}

.nav-link.active {
    background-color: rgba(255,255,255,0.2);
}

.language-toggle {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    min-width: auto;
    padding: 0.5rem 1rem !important;
    font-weight: 600;
    background-color: rgba(255,255,255,0.15) !important;
    border: 1px solid rgba(255,255,255,0.3) !important;
}

.language-toggle:hover {
    background-color: rgba(255,255,255,0.25) !important;
    border-color: rgba(255,255,255,0.5) !important;
}

.language-icon {
    font-size: 1.1rem;
    line-height: 1;
}

.language-label {
    font-size: 0.9rem;
    opacity: 0.9;
}

#language-display {
    font-weight: 700;
    font-size: 0.95rem;
    padding: 0.2rem 0.5rem;
    background-color: rgba(255,255,255,0.2);
    border-radius: 3px;
    min-width: 35px;
    text-align: center;
}

main {
    padding: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.section {
    display: none;
    background-color: white;
    border-radius: 8px;
    padding: 2rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.section.active {
    display: block;
}

h2 {
    color: #1d428a;
    margin-top: 1.0rem;
    margin-bottom: 0.5rem;
}

.matches-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
}

.match-card {
    background-color: white;
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    border: 1px solid #eee;
}

.match-header {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 1rem;
}

.match-teams {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.team {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.team-logo {
    width: 50px;
    height: 50px;
    object-fit: contain;
}

.team-name {
    font-weight: 500;
    text-align: center;
}

.score {
    font-size: 1.5rem;
    font-weight: bold;
    color: #1d428a;
}

.match-info {
    text-align: center;
    font-size: 0.9rem;
    color: #666;
}

.team-info-container {
    max-width: 800px;
    margin: 0 auto;
}

.team-info-header {
    display: flex;
    align-items: center;
    padding: 2rem;
    border-radius: 8px;
    color: white;
    margin-bottom: 2rem;
}

.team-info-logo {
    width: 120px;
    height: 120px;
    object-fit: contain;
    margin-right: 2rem;
}

.team-info-title h3 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    color: white;
}

.team-info-title p {
    font-size: 1.2rem;
    opacity: 0.9;
}

.team-info-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    margin-bottom: 2rem;
}

.stat-item {
    background-color: #f8f9fa;
    padding: 1rem;
    border-radius: 8px;
    text-align: center;
}

.stat-label {
    display: block;
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 0.5rem;
}

.stat-value {
    display: block;
    font-size: 1.5rem;
    font-weight: bold;
    color: #1d428a;
}

.team-info-details {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin-bottom: 2rem;
}

.detail-item {
    padding: 1rem;
    background-color: #f8f9fa;
    border-radius: 8px;
}

.team-history {
    background-color: #f8f9fa;
    padding: 1.5rem;
    border-radius: 8px;
}

.team-history h4 {
    color: #1d428a;
    margin-bottom: 1rem;
}

.error-message {
    text-align: center;
    color: #dc3545;
    padding: 2rem;
    background-color: #f8d7da;
    border-radius: 8px;
}

@media (max-width: 768px) {
    .team-info-stats,
    .team-info-details {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .team-info-header {
        flex-direction: column;
        text-align: center;
    }
    
    .team-info-logo {
        margin-right: 0;
        margin-bottom: 1rem;
    }
} 

.teams-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
    padding: 20px;
}

.team-card {
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.2s;
}

.team-card:hover {
    transform: scale(1.05);
}

.team-card-header {
    padding: 15px;
    text-align: center;
}

.team-card-logo {
    width: 80px;
    height: 80px;
    object-fit: contain;
}

.loading {
    text-align: center;
    padding: 20px;
    font-size: 1.2em;
}

.back-button {
    margin: 20px;
    padding: 8px 16px;
    background-color: #f0f0f0;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.2s;
}

.back-button:hover {
    background-color: #e0e0e0;
} 

/* Add these new styles for the stats comparison section */
.team-stats-comparison {
    background-color: #f8f9fa;
    padding: 1.5rem;
    border-radius: 8px;
    margin: 1.5rem 0;
}

.team-stats-comparison h4 {
    color: #1d428a;
    margin-bottom: 1rem;
}

.stats-grid {
    display: grid;
    gap: 1.5rem;
}

.stat-comparison-item {
    background-color: white;
    padding: 1rem;
    border-radius: 6px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.stat-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.stat-name {
    font-weight: 500;
}

.stat-rank {
    color: #666;
    font-size: 0.9rem;
}

.stat-bars {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.stat-bar-container {
    position: relative;
    height: 24px;
    background-color: #f0f0f0;
    border-radius: 4px;
    overflow: hidden;
}

.stat-bar {
    height: 100%;
    background-color: #1d428a;
    transition: width 0.3s ease;
}

.league-avg .stat-bar {
    background-color: #666;
    opacity: 0.5;
}

.stat-value {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.9rem;
    color: white;
    text-shadow: 0 0 2px rgba(0,0,0,0.5);
}

.league-avg .stat-value {
    color: #666;
    text-shadow: none;
}

@media (min-width: 768px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
} 

/* Best Players Section Styles */
.best-players-section {
    background-color: #f8f9fa;
    padding: 1.5rem;
    border-radius: 8px;
    margin: 1.5rem 0;
}

.best-players-section h4 {
    color: #1d428a;
    margin-bottom: 1rem;
}

.best-players-grid {
    display: grid;
    gap: 1.5rem;
}

.category-section h5 {
    color: #666;
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.players-list {
    display: grid;
    gap: 1rem;
}

.player-card {
    background: white;
    border-radius: 8px;
    padding: 1rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.player-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
}

.player-info {
    flex: 1;
}

.player-name {
    font-weight: 500;
    margin-bottom: 0.25rem;
}

.player-details {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 0.25rem;
}

.player-position {
    margin-right: 1rem;
}

.player-number {
    color: #1d428a;
}

.player-stat {
    font-weight: bold;
    color: #1d428a;
}

@media (min-width: 768px) {
    .best-players-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 767px) {
    .player-card {
        flex-direction: column;
        text-align: center;
    }
    
    .player-avatar {
        width: 80px;
        height: 80px;
    }
} 

/* Add these styles to your existing CSS file */

.standings-container {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    margin-top: 2rem;
    justify-content: space-between;
}

.conference-standings {
    flex: 1;
    min-width: 300px;
}

.conference-standings h3 {
    color: #333;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #eee;
}

.standings-table table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.standings-table th,
.standings-table td {
    padding: 0.75rem;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.standings-table th {
    background: #f8f9fa;
    font-weight: 600;
    color: #666;
}

.standings-table .team-cell {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.standings-table .team-logo-small {
    width: 25px;
    height: 25px;
    object-fit: contain;
}

.standings-table tr.playoff-spot {
    background-color: #f8fff8;
}

.standings-table tr:hover {
    background-color: #f5f5f5;
}

@media (max-width: 768px) {
    .standings-container {
        flex-direction: column;
    }
    
    .conference-standings {
        width: 100%;
    }
    
    .standings-table {
        overflow-x: auto;
    }
} 

.site-footer {
    background-color: #1a1a1a;
    color: #ffffff;
    padding: 2rem 0;
    margin-top: 3rem;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
    text-align: center;
}

.footer-links {
    margin-bottom: 1rem;
}

.footer-links a {
    color: #ffffff;
    text-decoration: none;
    margin: 0 1rem;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: #007bff;
}

.footer-info {
    font-size: 0.8rem;
    color: #888;
}

/* News Section Styles */
.news-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.news-card {
    background-color: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    border: 1px solid #eee;
    transition: transform 0.2s, box-shadow 0.2s;
    display: flex;
    flex-direction: column;
}

.news-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.news-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
    background-color: #f5f5f5;
}

.news-thumbnail {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.news-content {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.news-source {
    font-size: 0.85rem;
    color: #1d428a;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.5rem;
}

.news-title {
    margin: 0 0 0.75rem 0;
    font-size: 1.1rem;
    line-height: 1.4;
}

.news-title a {
    color: #333;
    text-decoration: none;
    transition: color 0.2s;
}

.news-title a:hover {
    color: #1d428a;
}

.news-description {
    color: #666;
    font-size: 0.95rem;
    line-height: 1.5;
    margin: 0 0 1rem 0;
    flex: 1;
}

.news-date {
    font-size: 0.85rem;
    color: #999;
    margin-top: auto;
}

.no-news-message {
    text-align: center;
    color: #666;
    padding: 2rem;
    background-color: #f8f9fa;
    border-radius: 8px;
    font-style: italic;
}

/* News Loading Indicator */
.news-loading {
    grid-column: 1 / -1;
    text-align: center;
    padding: 2rem;
    color: #666;
}

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

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

.news-loading p {
    margin: 0;
    color: #666;
    font-size: 0.9rem;
}

/* No More News Message */
.news-no-more {
    grid-column: 1 / -1;
    text-align: center;
    padding: 2rem;
    color: #999;
    font-style: italic;
    font-size: 0.9rem;
}

@media (max-width: 768px) {
    .news-container {
        grid-template-columns: 1fr;
    }
    
    .news-image {
        height: 180px;
    }
} 