/* Base styles */
:root {
    --primary-color: #000;
    --secondary-color: #333;
    --accent-color: #000;
    --text-color: #000;
    --light-gray: #f9f9f9;
    --border-color: #eee;
    --header-bg: #fff;
    --header-text: #000;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    margin: 0;
    padding: 0;
    background-color: #fff;
}

.container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Navigation */
.navbar {
    background-color: var(--header-bg);
    padding: 1rem 0;
    border-bottom: 1px solid var(--border-color);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.navbar-brand {
    color: var(--header-text);
    font-size: 1.8rem;
    text-decoration: none;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 12px;
}

.brand-logo {
    height: 40px;
    width: auto;
}

.brand-text {
    display: inline-block;
}

.navbar-menu {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.navbar-item {
    color: var(--header-text);
    text-decoration: none;
    font-weight: 500;
    transition: opacity 0.3s;
}

.navbar-item:hover {
    opacity: 0.7;
    background-color: transparent;
}

.register-link {
    color: #fff;
    background-color: #000;
    padding: 8px 24px;
    border-radius: 4px;
    margin-left: 10px;
    transition: background-color 0.3s, color 0.3s;
    display: inline-block;
    text-align: center;
}

.register-text {
    display: inline-block;
    padding: 0 3px;
}

.register-link:hover {
    background-color: #333;
    color: #fff;
    opacity: 1;
}

/* Mobile menu button */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
}

.mobile-menu-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--text-color);
    margin: 5px 0;
    transition: transform 0.3s;
}

/* Dropdown Menu */
.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-btn {
    background-color: transparent;
    color: var(--header-text);
    font-weight: 500;
    padding: 0;
    font-size: 1rem;
    border: none;
    cursor: pointer;
    font-family: inherit;
    transition: opacity 0.3s;
}

.dropdown-btn:hover {
    opacity: 0.7;
}

.dropdown-content {
    display: none;
    position: absolute;
    min-width: 180px;
    background-color: var(--header-bg);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
    z-index: 10;
    border-radius: 4px;
    border: 1px solid var(--border-color);
    overflow: hidden;
}

.dropdown-content a {
    color: var(--header-text);
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    transition: background-color 0.3s;
}

.dropdown-content a:hover {
    background-color: var(--light-gray);
}

.dropdown:hover .dropdown-content {
    display: block;
}

/* Hero section */
.hero {
    background-color: var(--header-bg);
    color: var(--header-text);
    padding: 2rem 0;
    text-align: center;
    border-bottom: 1px solid var(--border-color);
}

.hero h1 {
    margin: 0;
    font-size: 2.5rem;
    font-weight: 600;
}

.hero .lead {
    font-size: 1.2rem;
    margin-top: 0.5rem;
    color: var(--header-text);
}

/* Home page */
.home-container {
    margin: 2rem 0;
}

.register-section {
    margin-bottom: 3rem;
    text-align: center;
    background-color: #f9f9f9;
    padding: 2rem;
    border-radius: 8px;
    border: 1px solid #eee;
}

.register-logo {
    max-width: 120px;
    height: auto;
    margin-bottom: 1.5rem;
}

.register-section h2 {
    font-weight: 600;
    margin-bottom: 1rem;
    font-size: 1.8rem;
}

.register-section p {
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.btn-large {
    padding: 1rem 2rem;
    font-size: 1.1rem;
    font-weight: 500;
}

.years-section, 
.tools-section,
.about-section {
    margin-bottom: 3rem;
}

.years-section h2,
.tools-section h2,
.about-section h2 {
    font-weight: 600;
    margin-bottom: 1rem;
}

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

.year-card {
    border: 1px solid var(--border-color);
    padding: 2rem;
    text-align: center;
}

.year-card h3 {
    margin-top: 0;
    font-weight: 600;
}

.year-card p {
    margin-bottom: 1.5rem;
}

.year-links {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
}

.year-links .btn {
    font-size: 0.9rem;
}

.tools-container {
    display: flex;
    justify-content: center;
}

.tool-card {
    border: 1px solid var(--border-color);
    padding: 2rem;
    text-align: center;
    max-width: 500px;
}

.tool-card h3 {
    margin-top: 0;
    font-weight: 600;
}

.tool-card p {
    margin-bottom: 1.5rem;
}

.tool-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.tool-actions .btn {
    font-size: 0.9rem;
}

/* Leaderboard */
.leaderboard-tools {
    margin: 1rem 0;
    display: flex;
    justify-content: flex-end;
}

.search-container {
    margin: 1rem 0;
    display: flex;
    justify-content: flex-start;
}

.search-input {
    width: 100%;
    max-width: 300px;
    padding: 8px 12px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-size: 1rem;
    transition: border-color 0.3s;
}

.search-input:focus {
    outline: none;
    border-color: var(--accent-color);
}

.leaderboard-container {
    background: #fff;
    margin: 0.5rem 0 2rem;
    overflow: hidden;
}

.leaderboard-table {
    width: 100%;
    border-collapse: collapse;
}

.leaderboard-table th,
.leaderboard-table td {
    padding: 0.75rem;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.leaderboard-table th {
    background-color: #fff;
    color: var(--text-color);
    font-weight: 600;
    border-bottom: 2px solid var(--text-color);
}

.leaderboard-table tr:hover {
    background-color: var(--light-gray);
}

.leaderboard-table a {
    color: var(--accent-color);
    text-decoration: none;
    font-weight: 500;
}

.leaderboard-table a:hover {
    text-decoration: underline;
}

/* Player Profile */
.player-stats {
    background: #fff;
    padding: 0.75rem 0;
    margin: 1rem 0;
}

.stats-summary {
    margin-bottom: 1.5rem;
}

.stats-summary h2 {
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 0.5rem;
    margin-top: 0;
    font-size: 1.8rem;
    text-align: center;
}

.stats-summary h3 {
    font-weight: 500;
    color: var(--text-color);
    margin: 1.5rem 0 0.75rem;
}

/* Headline stats */
.headline-stats {
    display: flex;
    justify-content: space-between;
    margin: 1.5rem 0;
}

.headline-stat {
    flex: 1;
    text-align: center;
    padding: 1.5rem;
    border: 1px solid var(--border-color);
    margin: 0 1rem;
}

.headline-stat h3 {
    margin: 0 0 1rem 0;
    font-weight: 500;
}

.headline-value {
    font-size: 3rem;
    font-weight: 600;
    color: var(--accent-color);
}

/* Stats tables styling */
.stats-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 2rem;
    border: 1px solid var(--border-color);
}

.stats-table th,
.stats-table td {
    padding: 0.75rem;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.stats-table th {
    font-weight: 600;
    border-bottom: 2px solid var(--text-color);
    background-color: #fff;
}

.stats-table tr:hover {
    background-color: var(--light-gray);
}

.stats-table td:first-child {
    font-weight: 500;
}

.stats-details h2 {
    margin: 2rem 0 1rem;
    font-weight: 600;
}

.performance-analysis {
    margin: 2rem 0;
}

.performance-analysis h2 {
    font-weight: 600;
    margin-bottom: 1rem;
}

.performance-analysis h3 {
    font-weight: 500;
    margin: 1rem 0 0.75rem;
}

/* Predictions table */
.predictions {
    margin: 2rem 0;
}

.predictions h2 {
    font-weight: 600;
    margin-bottom: 1rem;
}

.predictions-table {
    width: 100%;
    border-collapse: collapse;
    border: 1px solid var(--border-color);
}

.predictions-table th,
.predictions-table td {
    padding: 0.75rem;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.predictions-table th {
    font-weight: 600;
    border-bottom: 2px solid var(--text-color);
    background-color: #fff;
}

.predictions-table tr:hover {
    background-color: var(--light-gray);
}

/* Back link */
.back-to-leaderboard {
    text-align: center;
    margin: 2rem 0;
}

.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background-color: var(--text-color);
    color: white;
    text-decoration: none;
    transition: opacity 0.3s;
    border: none;
    font-weight: 500;
}

.btn:hover {
    opacity: 0.9;
}

.about-section {
    margin: 2rem 0;
    padding: 0 1rem;
}

.about-section h2 {
    font-weight: 600;
    margin-bottom: 1rem;
}

/* Footer */
.footer {
    border-top: 1px solid var(--border-color);
    color: var(--text-color);
    padding: 1.5rem 0;
    margin-top: 2rem;
    text-align: center;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.footer-logo {
    height: 30px;
    width: auto;
}

.footer p {
    margin: 0.5rem 0;
}

/* Responsive design */
@media (max-width: 768px) {
    .navbar {
        padding: 0.5rem 0;
    }
    
    .navbar .container {
        display: grid;
        grid-template-columns: auto 1fr auto;
        grid-template-areas: 
            "register brand toggle"
            "menu menu menu";
        align-items: center;
        padding-top: 0;
        gap: 0;
    }
    
    .navbar-brand {
        grid-area: brand;
        font-size: 1.4rem;
        margin: 0;
        justify-content: center;
        padding: 0;
        order: unset;
        width: auto;
    }
    
    .brand-text {
        display: none;
    }
    
    .brand-logo {
        height: 30px;
    }
    
    .register-link {
        grid-area: register;
        position: static;
        margin: 0 10px 0 0;
        padding: 8px 22px;
        font-size: 0.85rem;
        white-space: nowrap;
        order: unset;
        background-color: #000;
        color: #fff;
        min-width: auto;
        text-align: center;
    }
    
    .mobile-menu-toggle {
        grid-area: toggle;
        display: block;
        position: static;
        margin: 0 0 0 10px;
        background: none;
        border: none;
        cursor: pointer;
        padding: 8px 0;
        z-index: 10;
        order: unset;
    }
    
    .mobile-menu-toggle span {
        display: block;
        width: 22px;
        height: 2px;
        background-color: var(--text-color);
        margin: 4px 0;
        transition: all 0.3s;
    }
    
    .mobile-menu-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(4px, 4px);
    }
    
    .mobile-menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }
    
    .mobile-menu-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(4px, -4px);
    }
    
    .navbar-menu {
        grid-area: menu;
        display: none;
        width: 100%;
        flex-direction: column;
        align-items: flex-start;
        margin: 0.5rem 0 0;
        padding: 0.5rem 0;
        border-top: 1px solid var(--border-color);
    }
    
    .navbar-menu.active {
        display: flex;
    }
    
    .dropdown {
        width: 100%;
    }
    
    .dropdown-btn {
        width: 100%;
        text-align: left;
        padding: 0.75rem 0;
    }
    
    .dropdown-content {
        position: static;
        box-shadow: none;
        border: none;
        width: 100%;
        margin-left: 1rem;
    }
    
    .dropdown-content a {
        padding: 0.75rem 0;
    }
    
    .dropdown:hover .dropdown-content {
        display: none;
    }
    
    .dropdown.active .dropdown-content {
        display: block;
    }
    
    .navbar-item {
        width: 100%;
        padding: 0.75rem 0;
        display: block;
        border-bottom: 1px solid var(--border-color);
    }
    
    .hero {
        padding: 1.5rem 0;
    }
    
    .hero h1 {
        font-size: 1.8rem;
    }
    
    .hero .lead {
        margin-top: 0.3rem;
        font-size: 1rem;
    }
    
    .hide-on-mobile {
        display: none;
    }
    
    .leaderboard-tools,
    .search-container {
        margin: 0.5rem 0;
    }
    
    .leaderboard-table {
        font-size: 0.85rem;
    }
    
    .leaderboard-table th,
    .leaderboard-table td {
        padding: 0.5rem 0.4rem;
    }
    
    .leaderboard-container {
        margin: 0.5rem -20px 1.5rem;
        width: calc(100% + 40px);
        overflow-x: auto;
    }
    
    .leaderboard-table {
        min-width: 100%;
        width: auto;
    }
    
    /* Make the player name column take more space */
    .leaderboard-table td:nth-child(2) {
        max-width: 150px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    
    /* Make the first column (rank) narrower */
    .leaderboard-table th:first-child,
    .leaderboard-table td:first-child {
        width: 40px;
        padding-right: 0.2rem;
    }
    
    /* Make the third column (points) narrower */
    .leaderboard-table th:nth-child(3),
    .leaderboard-table td:nth-child(3) {
        width: 60px;
    }
    
    .stats-table, .predictions-table {
        display: block;
        overflow-x: auto;
    }
    
    .headline-stats {
        flex-direction: column;
    }
    
    .headline-stat {
        margin: 0 0 1rem 0;
    }
    
    .years-grid {
        grid-template-columns: 1fr;
    }
    
    .about-section {
        margin: 2rem 0;
    }
    
    .about-section h2 {
        font-size: 1.4rem;
        margin-bottom: 0.5rem;
    }
    
    .footer {
        padding: 1.5rem 0;
        margin-top: 2rem;
    }
    
    .home-container {
        margin: 1.5rem 0;
    }
    
    .register-section {
        margin-bottom: 2rem;
        padding: 1.5rem;
    }
    
    .years-section, 
    .tools-section,
    .about-section {
        margin-bottom: 2rem;
    }
    
    .player-stats {
        padding: 1rem 0;
        margin: 1rem 0;
    }
    
    .stats-summary {
        margin-bottom: 1.5rem;
    }
    
    .performance-analysis, 
    .predictions {
        margin: 1.5rem 0;
    }
    
    .search-input {
        font-size: 0.9rem;
        padding: 6px 10px;
        max-width: 100%;
    }
}

/* Extra small devices */
@media (max-width: 400px) {
    .register-link {
        padding: 8px 15px;
        font-size: 0.8rem;
        min-width: 90px;
    }
    
    .brand-logo {
        height: 26px;
    }
    
    .navbar-brand {
        font-size: 1.3rem;
        margin: 0 auto;
    }
}

/* Radar Chart */
.radar-chart-container {
    margin: 3rem 0;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.radar-chart-container h3 {
    text-align: center;
    margin-bottom: 1.5rem;
    font-weight: 500;
}

/* Bar Chart */
.bar-chart-container {
    margin: 3rem 0;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.bar-chart-container h3 {
    text-align: center;
    margin-bottom: 1.5rem;
    font-weight: 500;
}

/* Player Comparison */
.comparison-container {
    margin: 3rem 0;
}

.player-select-container {
    margin-bottom: 3rem;
    text-align: center;
}

.player-select-container h2 {
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.player-select-controls {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.player-select, .year-select {
    display: flex;
    flex-direction: column;
    min-width: 250px;
}

.player-select label, .year-select label {
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.player-dropdown, .year-dropdown {
    padding: 0.5rem;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-size: 1rem;
}

.comparison-results {
    padding: 2rem 0;
}

.comparison-results .headline-stats {
    display: flex;
    justify-content: space-between;
    gap: 2rem;
    margin-bottom: 3rem;
}

.player1-stats, .player2-stats {
    flex: 1;
    text-align: center;
    padding: 1.5rem;
    border: 1px solid var(--border-color);
}

.stat-row {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem 0;
}

.stat-row .headline-value {
    font-size: 1.5rem;
    font-weight: 600;
} 