/* Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;700&family=Open+Sans:wght@400;600&display=swap');

/* Global Resets & Base Styles */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Open Sans', sans-serif;
    background-color: #f8f9fa; /* Lighter background */
    color: #343a40; /* Darker grey for text */
    line-height: 1.7;
    font-size: 16px;
}

.container {
    width: 90%;
    max-width: 1100px;
    margin: auto;
    padding: 0 15px;
}

/* Header & Navigation */
header {
    background: #343a40; /* Darker header */
    color: #ffffff;
    padding-top: 15px;
    padding-bottom: 0; /* Nav will have its own padding */
    border-bottom: 4px solid #e60000; /* Main accent color */
}

header .header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 10px;
}

.logo-wrapper {
    background-color: #ffffff; /* White background for logo */
    padding: 5px;
    border-radius: 5px;
    display: inline-block; /* To wrap content */
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

#logo {
    height: 70px; 
    display: block; /* Removes extra space below image */
}

.obscure-link img {
    height: 50px;
    border-radius: 3px;
}

nav {
    background-color: #495057; /* Slightly lighter than header */
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

nav ul {
    list-style: none;
    text-align: center;
    padding: 10px 0;
}

nav ul li {
    display: inline;
    margin: 0 20px;
}

nav a.nav-link {
    color: #f8f9fa;
    text-decoration: none;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 1.1em;
    padding: 10px 5px;
    transition: color 0.3s ease, border-bottom-color 0.3s ease;
    border-bottom: 3px solid transparent;
}

nav a.nav-link:hover,
nav a.nav-link.active {
    color: #ffffff;
    border-bottom-color: #e60000;
}

/* Main Content Area */
main {
    padding: 30px 0;
}

.content-section {
    background: #ffffff;
    padding: 30px;
    margin-bottom: 25px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    display: none; /* Hidden by default */
}

.content-section.active {
    display: block; /* Show active section */
}

.content-section h1 {
    font-family: 'Montserrat', sans-serif;
    color: #343a40;
    border-bottom: 3px solid #e60000;
    padding-bottom: 15px;
    margin-top: 0;
    margin-bottom: 25px;
    font-size: 2.2em;
}

.content-section h2 {
    font-family: 'Montserrat', sans-serif;
    color: #495057;
    margin-top: 20px;
    margin-bottom: 15px;
    font-size: 1.6em;
}

.content-section p {
    margin-bottom: 1em;
    color: #555;
}

.content-section a {
    color: #c00; /* Red link color */
    text-decoration: none;
    font-weight: 600;
}
.content-section a:hover {
    text-decoration: underline;
    color: #900; /* Darker red on hover */
}

/* Card styling for generic use */
.card {
    background: #fff;
    border: 1px solid #e9ecef;
    border-radius: 6px;
    padding: 20px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
}
.card:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

/* History Page Specific */
.history-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}
.season-record h2 {
    color: #e60000; /* Accent color for season titles */
}

/* Players Page Specific */
.player-category {
    margin-bottom: 30px;
}
.player-category h2 {
    border-bottom: 2px solid #e9ecef;
    padding-bottom: 8px;
}
.player-list {
    list-style: none;
    padding: 0;
}
.player-list li {
    margin-bottom: 10px;
    font-size: 1.1em;
    padding: 5px 0;
}
.player-list li a:hover {
    color: #900;
}
.player-list .note {
    font-size: 0.9em;
    color: #6c757d;
}


/* Player Profile Section */
.player-profile .profile-layout {
    display: flex;
    flex-wrap: wrap;
    gap: 30px; /* Increased gap */
    align-items: flex-start;
}

.player-profile .profile-image-container {
    flex-basis: 250px; /* Fixed base width */
    flex-shrink: 0;
}

.player-profile .profile-image-container img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    border: 3px solid #e9ecef;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.player-profile .profile-details {
    flex-grow: 1;
}

.player-profile .profile-details ul {
    list-style-type: none;
    padding: 0;
    margin-top: 15px;
}

.player-profile .profile-details ul li {
    margin-bottom: 10px;
    font-size: 1.05em;
    padding: 5px 0;
    border-bottom: 1px dashed #f1f1f1;
}
.player-profile .profile-details ul li:last-child {
    border-bottom: none;
}
.player-profile .profile-details ul li strong {
    color: #343a40;
    margin-right: 8px;
    min-width: 100px; /* Align labels a bit */
    display: inline-block;
}

.player-profile .nickname {
    font-style: italic;
    color: #6c757d; /* Bootstrap's secondary text color */
    font-size: 1.2em; /* Slightly larger nickname */
    display: block;
    margin-top: -10px;
    margin-bottom: 15px;
}

/* Buttons */
.styled-button {
    display: inline-block;
    margin-top: 25px;
    padding: 12px 25px;
    background-color: #e60000; /* Main accent */
    color: #fff;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    text-decoration: none;
    border: none;
    border-radius: 5px;
    transition: background-color 0.3s ease, transform 0.2s ease;
    cursor: pointer;
    font-size: 1em;
}
.styled-button:hover {
    background-color: #b30000; /* Darker shade for hover */
    color: #fff;
    text-decoration: none;
    transform: translateY(-2px);
}


/* Footer */
footer {
    background: #343a40;
    color: #adb5bd; /* Lighter grey for footer text */
    text-align: center;
    padding: 30px 0;
    margin-top: 40px;
    font-size: 0.9em;
}
footer p {
    margin: 5px 0;
}
footer em {
    color: #868e96;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    body {
        font-size: 15px;
    }
    header .header-content {
        flex-direction: column;
        text-align: center;
    }
    .logo-wrapper {
        margin-bottom: 15px;
    }
    nav ul li {
        display: block;
        margin: 12px 0;
    }
    nav a.nav-link {
        padding: 8px 0;
        font-size: 1em;
    }

    .content-section h1 {
        font-size: 1.8em;
    }
    .content-section h2 {
        font-size: 1.4em;
    }

    .player-profile .profile-layout {
        flex-direction: column;
    }
    .player-profile .profile-image-container {
        margin: 0 auto 20px auto; /* Center image when stacked */
    }
}
@media (max-width: 480px) {
    .history-grid {
        grid-template-columns: 1fr; /* Single column on very small screens */
    }
    .styled-button {
        width: 100%;
        text-align: center;
    }
}