/* ... prev styles ... */

.admin-link {
    background-color: rgba(251, 191, 36, 0.1);
    border: 1px solid var(--accent-color);
}

.admin-link:hover {
    background-color: var(--accent-color) !important;
    color: var(--primary-color) !important;
}

/* ... existing styles ... */
:root {
    --primary-color: #0f172a;
    --secondary-color: #1e293b;
    --accent-color: #fbbf24;
    --text-color: #f1f5f9;
    --text-muted: #94a3b8;
    --nav-bg: rgba(15, 23, 42, 0.95);
    --card-bg: #334155;
    --font-heading: 'Montserrat', sans-serif;
    --font-body: 'Open Sans', sans-serif;
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    font-family: var(--font-body);
    background-color: var(--primary-color);
    color: var(--text-color);
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

#navbar {
    position: sticky;
    top: 0;
    background-color: var(--nav-bg);
    backdrop-filter: blur(10px);
    z-index: 1000;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    padding: 1rem 0;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.logo {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--accent-color);
    text-decoration: none;
    margin-right: 20px;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 1.5rem;
    overflow-x: auto;
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.nav-links::-webkit-scrollbar {
    display: none;
}

.nav-links li a {
    color: var(--text-color);
    text-decoration: none;
    font-size: 0.9rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    padding: 5px 10px;
    border-radius: 8px;
    white-space: nowrap;
    transition: var(--transition);
}

.nav-links li a:hover,
.nav-links li a.active {
    color: var(--accent-color);
    background-color: rgba(255, 255, 255, 0.05);
}

.hero {
    height: 60vh;
    background-color: #ffffff;
    background-image: url('../img/hero-left.png'), url('../img/hero-right.png');
    background-size: contain, contain;
    background-repeat: no-repeat, no-repeat;
    background-position: left center, right center;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    margin-bottom: 2rem;
    padding: 0 5%;
}

.hero h1 {
    font-family: var(--font-heading);
    font-size: 3.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
    text-transform: uppercase;
}

.hero p {
    font-size: 1.5rem;
    color: var(--accent-color);
    font-weight: 600;
}

.sport-section {
    padding: 4rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.sport-section.alt-bg {
    background-color: var(--secondary-color);
}

.sport-title {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    color: var(--accent-color);
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    gap: 15px;
}

.card {
    background-color: var(--card-bg);
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: var(--transition);
}

.card:hover {
    transform: translateY(-5px);
    border-color: var(--accent-color);
}

.placeholder-content {
    background-color: rgba(0, 0, 0, 0.2);
    border-radius: 8px;
    height: 100px;
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--text-muted);
    font-style: italic;
    border: 2px dashed rgba(255, 255, 255, 0.1);
}

footer {
    background-color: var(--nav-bg);
    padding: 2rem 0;
    text-align: center;
    margin-top: 4rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

footer p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.match-item {
    display: block;
    padding: 10px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.match-item:last-child {
    border-bottom: none;
}

.match-date {
    font-size: 0.8rem;
    color: var(--text-muted);
    display: block;
    margin-bottom: 4px;
}

.match-score {
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: 600;
    margin-bottom: 4px;
}

.match-score span:first-child {
    flex: 1;
    text-align: right;
    padding-right: 15px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.match-score span:last-child {
    flex: 1;
    text-align: left;
    padding-left: 15px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.match-score .score {
    color: var(--accent-color);
    font-weight: bold;
    background-color: rgba(255, 255, 255, 0.05);
    padding: 4px 12px;
    border-radius: 6px;
    min-width: 60px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.match-location {
    font-size: 0.8rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 5px;
}

.match-item.scheduled .match-versus {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 4px;
}

.match-item.scheduled .vs {
    color: var(--text-muted);
    font-size: 0.8rem;
}

/* Tab Navigation */
.sport-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 10px;
}

.tab-btn {
    background-color: transparent;
    border: none;
    color: var(--text-muted);
    font-family: var(--font-heading);
    font-weight: 600;
    cursor: pointer;
    padding: 8px 16px;
    transition: var(--transition);
    border-radius: 4px;
}

.tab-btn:hover {
    color: var(--text-color);
    background-color: rgba(255, 255, 255, 0.05);
}

.tab-btn.active {
    color: var(--accent-color);
    border-bottom: 2px solid var(--accent-color);
    background-color: rgba(255, 255, 255, 0.05);
}

.tab-content {
    animation: fadeIn 0.3s ease-in-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(5px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.finished-label {
    color: #4ade80;
    font-style: italic;
    font-size: 0.75rem;
    margin-left: 8px;
    font-weight: 600;
}

.standings-table {
    width: 100%;
    border-collapse: collapse;
    background-color: var(--card-bg);
    border-radius: 8px;
    overflow: hidden;
}

.standings-table th,
.standings-table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.standings-table th {
    background-color: rgba(0, 0, 0, 0.2);
    color: var(--accent-color);
    font-weight: 700;
}

.standings-table tr:hover {
    background-color: rgba(255, 255, 255, 0.02);
}

.bracket-container {
    display: flex;
    gap: 40px;
    overflow-x: auto;
    padding: 20px 0;
}

.bracket-round {
    min-width: 220px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.bracket-round h4 {
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1px;
    color: var(--text-muted);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 5px;
}

.bracket-match {
    background-color: var(--card-bg);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.match-identifier {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-align: right;
    margin-bottom: 4px;
}

.bracket-team {
    display: flex;
    justify-content: space-between;
    padding: 4px 8px;
    border-radius: 4px;
    background-color: rgba(0, 0, 0, 0.1);
}

.bracket-team.winner {
    background-color: rgba(251, 191, 36, 0.1);
    border-left: 3px solid var(--accent-color);
}

.bracket-team.winner span {
    color: var(--accent-color);
    font-weight: 700;
}

.tab-inner-header {
    margin-bottom: 1.5rem;
    border-bottom: 2px solid var(--accent-color);
    padding-bottom: 0.5rem;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.sport-context {
    font-size: 0.85rem;
    text-transform: uppercase;
    color: var(--accent-color);
    letter-spacing: 1.5px;
    font-weight: 600;
}

.tab-inner-header h3 {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    color: var(--text-color);
    margin: 0;
}

/* Mobile Optimization */
@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }

    /* Navigation */
    .nav-container {
        flex-direction: column;
        gap: 1rem;
    }

    .nav-links {
        width: 100%;
        justify-content: center;
        flex-wrap: wrap;
        gap: 0.5rem;
    }

    .nav-links li a {
        font-size: 0.8rem;
        padding: 8px 12px;
        background-color: rgba(255, 255, 255, 0.03);
    }

    /* Hero Section */
    .hero {
        height: auto;
        min-height: 60vh;
        flex-direction: column;
        background-image: none !important;
        /* Remove side images on mobile to avoid clutter */
        padding: 3rem 1rem;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .hero p {
        font-size: 1.1rem;
    }

    /* Tables */
    .table-responsive {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        margin-bottom: 1rem;
        border-radius: 8px;
    }

    /* We need to wrap tables in a div with this class in HTML, 
       or apply it to the card/container that holds the table */
    .card {
        padding: 1.5rem 1rem;
        overflow-x: auto;
        /* Ensure cards allow scrolling if content overflows */
    }

    .standings-table th,
    .standings-table td {
        padding: 8px;
        font-size: 0.85rem;
        white-space: nowrap;
        /* Prevent awkward wrapping in tight cells */
    }

    /* Brackets */
    .bracket-container {
        padding-bottom: 20px;
        /* Space for scrollbar */
    }

    .bracket-round {
        min-width: 180px;
        /* Slightly smaller on mobile */
    }

    /* Match Items */
    .match-item {
        padding: 12px 0;
    }

    .match-score .score {
        padding: 2px 8px;
        min-width: 50px;
        font-size: 0.9rem;
    }

    /* Tabs */
    .sport-section {
        padding: 2rem 0;
    }

    .sport-title {
        font-size: 1.8rem;
        flex-direction: column;
        /* Icon on top of text */
        align-items: flex-start;
        gap: 10px;
    }

    .sport-tabs {
        overflow-x: auto;
        padding-bottom: 5px;
        white-space: nowrap;
        justify-content: flex-start;
    }
}