/* General Styles */
body {
    font-family: Arial, sans-serif;
    background-color: #222;
    color: #fff;
    margin: 0;
    padding: 0;
}

/* Global Link Styles */
a {
    color: lightblue; /* Default hyperlink color for unvisited links */
    text-decoration: none; /* Removes underline */
}

a:visited {
    color: lightblue !important; /* Forces visited links to be light blue */
}

a:hover {
    color: #add8e6; /* Slightly lighter blue on hover */
    text-decoration: underline; /* Adds underline on hover */
}

a:active {
    color: #87cefa; /* Even lighter blue when clicked */
}

/* Header Styles */
header {
    background-color: #333;
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

header .logo {
    display: flex;
    align-items: center;
}

header .logo img {
    max-width: 80px;
    height: auto;
    margin-right: 20px;
}

header .logo h1 {
    font-size: 36px;
    margin: 0;
    color: #ff4500;
}

nav {
    display: flex;
    align-items: center;
}

nav ul {
    list-style-type: none;
    padding: 0;
    margin: 0;
    display: flex;
}

nav ul li {
    margin-left: 20px;
}

nav ul li a {
    color: #fff; /* Menu bar text is white */
    text-decoration: none; /* Removes underline */
}

/* Home Page Styles */
main.index-page {
    text-align: left;
    padding: 20px;
    color: #ff4500;
}

main.index-page h2 {
    text-decoration: underline;
}

/* Bullet Point Styles for Index Page */
main.index-page ul,
main.index-page ol {
    color: #fff; /* Ensure bullet point text is white */
}

main.index-page ul li,
main.index-page ol li {
    color: #fff !important; /* Enforce white text for list items */
}

main.index-page ul li *,
main.index-page ol li * {
    color: #fff !important; /* Ensure all descendants inside list items are white */
}

/* Global h4 Styles */
h4 {
    color: #fff !important; /* Default h4 color is white */
}

h2 {
    color: #ff4500 !important; /* Default h2 color is orange */
}

/* Footer Styles */
footer {
    background-color: #333;
    padding: 10px;
    text-align: center;
    color: #fff;
}

/* Grid Layout for Team Members */
.grid-container {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
    text-align: center;
    margin: 20px;
}

.member, .player {
    background-color: #444;
    padding: 20px;
    border-radius: 8px;
    transition: background-color 0.3s ease;
}

.member:hover, .player:hover {
    background-color: #555;
}

h3 {
    color: #ff4500;
    margin-bottom: 10px;
}

p {
    margin: 0;
    color: #fff;
}

/* Statistics Table */
table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    color: #000;
    font-size: 18px;
}

table, th, td {
    border: 1px solid #444;
}

th, td {
    padding: 15px;
    text-align: center;
}

th {
    background-color: #ff4500;
    color: #fff;
    font-size: 20px;
}

tbody tr:nth-child(even) {
    background-color: #f4f4f4;
}

tbody tr:nth-child(odd) {
    background-color: #fff;
}

table tbody tr:hover {
    background-color: #ddd;
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .grid-container {
        grid-template-columns: repeat(3, 1fr);
    }

    header .logo h1 {
        font-size: 28px;
    }
}

@media (max-width: 768px) {
    header {
        flex-direction: column;
        align-items: flex-start;
    }

    nav ul {
        flex-direction: column;
        align-items: flex-start;
    }

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

@media (max-width: 480px) {
    header .logo img {
        max-width: 60px;
    }

    header .logo h1 {
        font-size: 20px;
    }
}

/* Scoped Styles for Player Pages */
.player-page .player-card {
    display: flex;
    align-items: center;
    background-color: #333;
    border-radius: 12px;
    padding: 20px;
    margin: 20px auto;
    max-width: 600px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.4);
}

.player-page .player-image {
    width: 100px;
    height: 100px;
    object-fit: cover;
    border-radius: 50%;
    margin-right: 20px;
}

.player-page .player-info {
    flex: 1;
    color: #fff;
}

.player-page .player-name {
    font-size: 24px;
    margin-bottom: 10px;
    color: #ff4500;
}

player-page .player-stats p {
    margin: 5px 0;
}

/* Responsive Adjustments for Player Pages */
@media (max-width: 768px) {
    .player-page .player-card {
        flex-direction: column;
        text-align: center;
    }

    .player-page .player-image {
        margin: 0 auto 10px;
        width: 80px;
        height: 80px;
    }
}
