/* Global Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, sans-serif;
}

body {
    line-height: 1.6;
    background-color: #f4f4f4;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
    padding-bottom: 60px;
}

/* Header and Navigation */
header {
    background-color: #333;
    color: white;
    text-align: center;
    padding: 1rem;
}

nav {
    background-color: #444;
    padding: 1rem;
}

nav ul {
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 2rem;
}

nav a {
    color: white;
    text-decoration: none;
    font-weight: bold;
}

nav a:hover {
    color: #ddd;
}

nav a.active {
    border-bottom: 2px solid white;
}

/* Footer */
footer {
    background-color: #333;
    color: white;
    text-align: center;
    padding: 1rem;
    position: fixed;
    bottom: 0;
    width: 100%;
}

/* Home Page */
.welcome-section {
    text-align: center;
    margin: 2rem 0;
    padding: 2rem;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* Logo Section */
.logo-section {
    text-align: center;
    margin-top: 2rem;
}

.league-logo {
    max-width: 200px;
    width: 100%;
    height: auto;
    margin-top: 1rem;
}

/* Players Page */
.team-section {
    background-color: white;
    border-radius: 8px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.team-name {
    color: #333;
    border-bottom: 2px solid #333;
    padding-bottom: 0.5rem;
    margin-bottom: 1rem;
}

.player-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 1rem;
}

.player-card {
    background-color: #f8f8f8;
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.player-image {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    overflow: hidden;
    margin-bottom: 1rem;
    background-color: #ddd;
    border: 3px solid #333;
}

.player-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.player-card h3 {
    margin: 0.5rem 0;
    color: #333;
}

.player-info {
    margin-top: 1rem;
    text-align: left;
    width: 100%;
}

.player-info p {
    margin: 0.5rem 0;
}

.stat-label {
    font-weight: bold;
    color: #666;
    display: inline-block;
    width: 100px;
}

/* Rankings Page */
.rankings-section {
    background-color: white;
    border-radius: 8px;
    padding: 2rem;
    margin-bottom: 60px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.rankings-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1rem;
}

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

.rankings-table th {
    background-color: #f8f8f8;
    font-weight: bold;
    color: #333;
}

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

.rank {
    font-weight: bold;
    color: #444;
    width: 60px;
}

.win-loss {
    color: #666;
}

.win-percentage {
    font-weight: bold;
    color: #333;
}

/* Schedule Page */
.tabs {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
}

.tab {
    padding: 0.5rem 1rem;
    background-color: #ddd;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
}

.tab.active {
    background-color: #333;
    color: white;
}

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

.schedule-header {
    color: #333;
    border-bottom: 2px solid #333;
    padding-bottom: 0.5rem;
    margin-bottom: 1.5rem;
}

.game-card {
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 1rem;
    background-color: #f8f8f8;
}

.game-date {
    font-weight: bold;
    color: #444;
    margin-bottom: 0.5rem;
}

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

.team {
    text-align: center;
    flex: 1;
}

.team-name {
    font-weight: bold;
    font-size: 1.1em;
}

.vs {
    margin: 0 2rem;
    color: #666;
    font-weight: bold;
}

.game-time {
    color: #666;
    text-align: center;
    margin-top: 0.5rem;
}

.game-location {
    color: #666;
    text-align: center;
    font-style: italic;
}

.game-result {
    text-align: center;
    font-weight: bold;
    color: #333;
    margin-top: 0.5rem;
}

.winner {
    color: #28a745;
}

.score {
    font-size: 1.2em;
    font-weight: bold;
    margin-top: 0.5rem;
}

/* Media Queries for Responsiveness */
@media (max-width: 768px) {
    .nav ul {
        flex-direction: column;
        align-items: center;
    }

    .player-grid {
        grid-template-columns: 1fr;
    }

    .player-card {
        width: 100%;
    }

    .tabs {
        flex-direction: column;
    }

    .tab {
        width: 100%;
        text-align: center;
        margin-bottom: 10px;
    }

    .schedule-teams {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .welcome-section h2 {
        font-size: 1.5rem;
    }

    .player-card h3 {
        font-size: 1.2rem;
    }

    .league-logo {
        max-width: 150px;
    }

    .game-card {
        padding: 1rem;
    }
}


