/* Event Detail Page Styles */

body,
html {
    min-height: 100vh;
    background-color: #000;
}

/* Hero Section */
.event-hero {
    position: relative;
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff;
    overflow: hidden;
}

.event-hero .hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #0d1117;
    background-size: cover;
    background-position: center;
}

.event-hero .hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.55), rgba(0, 0, 0, 0.85));
}

.event-hero .hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    padding: 40px 20px;
}

.partner-logo {
    margin-bottom: 20px;
}

.partner-logo img {
    max-width: 175px;
    max-height: 110px;
    object-fit: contain;
}

.event-title {
    font-size: 3rem;
    font-weight: 700;
    margin: 0 0 12px 0;
    font-family: 'Oswald', sans-serif;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.powered-by {
    font-size: 0.9rem;
    font-weight: 300;
    color: #d6d6d6;
    margin: 0 0 20px 0;
}



.event-meta {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px;
    font-size: 1rem;
    color: #d5d5d5;
}

.event-meta span {
    display: flex;
    align-items: center;
    gap: 6px;
}

.event-meta span::before {
    content: '';
    width: 4px;
    height: 4px;
    background: #8892b0;
    border-radius: 50%;
}

.event-meta span:first-child::before {
    display: none;
}

/* Summary Stats Bar */
.summary-stats-bar {
    background: rgba(255, 255, 255, 0.04);
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    padding: 24px 20px;
}

.stats-container {
    max-width: 1000px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 40px;
    flex-wrap: wrap;
}

.summary-stat {
    text-align: center;
}

.summary-stat .stat-number {
    display: block;
    font-size: 1.8rem;
    font-weight: 700;
    color: #fff;
    font-family: 'Oswald', sans-serif;
}

.summary-stat .stat-label {
    font-size: 0.8rem;
    color: #8892b0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.summary-stat .stat-player {
    display: block;
    font-family: 'Lato', sans-serif;
    font-weight: 300;
    font-size: 1rem;
    color: white;
    margin-top: 10px;
}

.summary-divider {
    width: 1px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
}

/* Results Section */
.results-section {
    padding: 60px 20px;
    margin: 0 auto;
    background-color: #000;
}

.tabs a {
    color: #fff
}

.tabs .active a,
.tabs a:hover {
    color: rgba(236, 105, 26, .85)
}

.dropbtn {
    background-color: transparent;
    cursor: pointer;
    color: #fff !important;
    align-items: center;
    gap: .5rem;
    border: none
}

.dropbtn:hover {
    color: #2e5c9dd9 !important;
}

.dropdown-content {
    display: none;
    position: absolute;
    background-color: #0000007a;
    color: #fff;
    min-width: 160px;
    box-shadow: 0 8px 16px 0 rgba(0, 0, 0, .2);
    z-index: 1;
    border-radius: 4px
}

.film-container,
.hero,
.hero-content {
    position: relative
}

.dropdown-content a {
    padding: 12px 16px;
    color: #fff !important;
    transition: background-color .3s
}

.dropdown-content a:hover {
    color: #ababab !important
}

/* Mobile Menu Icon */
.menu-icon {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    cursor: pointer;
    z-index: 1001;
    margin-left: auto;
}

.menu-icon span {
    height: 3px;
    width: 100%;
    background-color: #fff;
    border-radius: 3px;
    transition: 0.3s;
}

.menu-icon.active span:first-child {
    transform: translateY(9px) rotate(45deg);
}

.menu-icon.active span:nth-child(2) {
    opacity: 0;
}

.menu-icon.active span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}

.results-container {
    width: 100%;
}

.results-header {
    text-align: center;
    margin-bottom: 30px;
}

.results-header h2 {
    font-size: 2rem;
    font-weight: 700;
    color: #fff;
    margin: 0 0 8px 0;
    font-family: 'Oswald', sans-serif;
}

.results-subtitle {
    color: #8892b0;
    font-weight: 300;
    font-size: 1rem;
    margin: 0;
}

/* Roster Buttons */
.roster-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 60px;
    flex-wrap: wrap;
}

.roster-button {
    background-color: #1a1a1a;
    color: #fff;
    border: 0.5px solid #5086d2;
    border-radius: 30px;
    padding: 12px 25px;
    font-size: 1.2rem;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.3s;
    text-transform: uppercase;
    font-weight: 500;
    font-family: Lato, sans-serif;
}

.roster-button:hover {
    background-color: #4170b2;
    transform: scale(1.05);
}

.roster-button.active {
    background-color: #305e9e;
    transform: scale(1.05);
}

.results-hint {
    text-align: center;
    color: #d6d6d6;
    font-size: 1.3rem;
    margin-bottom: 30px;
    font-weight: 400;
    font-family: Lato, sans-serif;
}

.results-hint strong {
    color: #5086d2;
}

/* Tables */
.roster-table {
    overflow-x: auto;
    box-shadow: 0 2px 4px rgba(0, 0, 0, .2);
}

.roster-table table {
    width: 100%;
    border-collapse: collapse;
    background-color: #1a1a1a;
    box-shadow: 0 2px 4px rgba(0, 0, 0, .2);
}

.roster-table th {
    background-color: #406ca9;
    color: #191919;
    font-weight: 500;
    text-align: center;
    padding: 18px;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
    border: 1px solid #333;
    cursor: pointer;
    user-select: none;
    font-family: Lato, sans-serif;
}

.roster-table th:first-child {
    cursor: default;
}

.roster-table th .sort-indicator {
    margin-left: 5px;
    font-size: 0.8em;
}

.roster-table td {
    padding: 18px;
    color: #fff;
    border: 1px solid #333;
    font-size: 0.95rem;
    text-align: center;
    font-family: Lato, sans-serif;
    font-weight: 300;
}

.roster-table td:nth-child(-n+2) {
    font-weight: 500;
    border: none;
}

/* Fixed widths for Name, Class, School columns */
.roster-table th:nth-child(1),
.roster-table td:nth-child(1) {
    width: 180px;
    min-width: 180px;
}

.roster-table th:nth-child(2),
.roster-table td:nth-child(2) {
    width: 80px;
    min-width: 80px;
}

.roster-table th:nth-child(3),
.roster-table td:nth-child(3) {
    width: 160px;
    min-width: 160px;
}

.roster-table tr:last-child td {
    border-bottom: 1px solid #333;
}

.roster-table tr.clickable-row {
    cursor: pointer;
    transition: background 0.2s;
}

/* Alternating row colors for better readability */
.roster-table tbody tr:nth-child(odd) td {
    background-color: #282828 !important;
}

.roster-table tbody tr:nth-child(even) td {
    background-color: #383838 !important;
}

/* Hover must come AFTER alternating to override */
.roster-table tbody tr:hover td {
    background-color: #191919 !important;
}

.player-link {
    color: #4a7dc4;
    text-decoration: none;
    font-weight: 500;
}

.player-link:hover {
    text-decoration: underline;
}

/* Event Info Section */
.event-info-section {
    background: rgba(255, 255, 255, 0.02);
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    padding: 60px 20px;
}

.event-info-container {
    max-width: 1000px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.event-about h2 {
    font-size: 1.6rem;
    font-weight: 700;
    color: #fff;
    margin: 0 0 16px 0;
    font-family: 'Oswald', sans-serif;
}

.event-about p {
    color: #8892b0;
    line-height: 1.7;
    margin: 0 0 24px 0;
    font-weight: 300;
}

.partner-credentials {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 12px;
    padding: 24px;
    margin-top: 24px;
}

.partner-credentials h3 {
    font-size: 1.2rem;
    font-weight: 600;
    color: #fff;
    margin: 0 0 12px 0;
    font-family: 'Oswald', sans-serif;
}

.partner-credentials p {
    margin: 0 0 16px 0;
}

.partner-link {
    display: inline-block;
    color: #4a7dc4 !important;
    text-decoration: none;
    font-weight: 500;
}

.partner-link:hover {
    text-decoration: underline;
}

/* Livestream Video */
.event-livestream {
    margin-top: 32px;
}

.event-livestream h3 {
    font-size: 1.4rem;
    font-weight: 600;
    color: #fff;
    margin: 0 0 16px 0;
    font-family: 'Oswald', sans-serif;
}

.video-container {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.02);
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 12px;
}

/* Gallery */
.event-gallery {
    margin-top: 32px;
}

.event-gallery h3 {
    font-size: 1.4rem;
    font-weight: 600;
    color: #fff;
    margin: 0 0 20px 0;
    font-family: 'Oswald', sans-serif;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 12px;
}

.gallery-item {
    aspect-ratio: 1;
    overflow: hidden;
    border-radius: 8px;
    cursor: pointer;
    transition: transform 0.3s;
}

.gallery-item:hover {
    transform: scale(1.03);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Contact Section */
.event-contact-section {
    background: #0d1117;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    padding: 50px 20px;
}

.contact-container {
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 40px;
}

.contact-info h3 {
    font-size: 1.3rem;
    font-weight: 600;
    color: #fff;
    margin: 0 0 20px 0;
    font-family: 'Oswald', sans-serif;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #8892b0 !important;
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.2s;
}

.contact-item:hover {
    color: #fff;
}

.contact-item svg {
    opacity: 0.7;
}

.social-links {
    display: flex;
    gap: 16px;
    margin-top: 20px;
    color: white;
}

.social-link {
    color: #8892b0;
    transition: color 0.2s;
}

.social-link:hover {
    color: #fff;
}

.tour-branding {
    text-align: center;
    color: white;
}

.tour-branding p {
    font-weight: 300;
    font-size: 0.85rem;
    margin: 0 0 12px 0;
}

.tour-link {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: #fff;
    font-weight: 600;
    font-size: 1.1rem;
}

.tour-link img {
    height: 32px;
    width: auto;
}

/* Lightbox */
.lightbox-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.95);
    z-index: 10000;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.lightbox-modal.active {
    display: flex;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 3rem;
    color: #fff;
    cursor: pointer;
    z-index: 10001;
    line-height: 1;
}

.lightbox-image {
    max-width: 90%;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 8px;
}

/* Responsive */
@media (max-width: 768px) {
    .menu-icon,
    nav.active .tabs {
        display: flex;
    }

    nav .tabs {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        flex-direction: column;
        background-color: #000;
        padding: 1rem 0;
        box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
        z-index: 1000;
    }

    .dropdown-content,
    .dropdown-content a {
        background-color: #000 !important;
    }

    .tabs li {
        margin: 0.5rem 1rem;
        width: 90%;
        text-align: left;
    }

    .dropbtn {
        justify-content: space-between;
        padding: 0.5rem 0;
    }

    .dropdown-content {
        position: static;
        box-shadow: none;
        display: none;
        padding-left: 1rem;
        width: 100%;
        border-radius: 0;
        margin-top: 0.5rem;
    }

    .dropdown.active .dropdown-content {
        display: block !important;
    }

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

    .dropbtn,
    .dropdown {
        width: 100%;
        background-color: transparent !important;
    }

    .event-hero {
        min-height: 350px;
        margin-top: 60px;
    }

    .event-title {
        font-size: 2rem;
    }

    .partner-logo img {
        max-width: 150px;
        max-height: 80px;
    }

    .event-meta {
        flex-direction: column;
        gap: 8px;
    }

    .event-meta span::before {
        display: none;
    }

    .stats-container {
        gap: 20px;
    }

    .summary-divider {
        display: none;
    }

    .summary-stat .stat-number {
        font-size: 1.5rem;
    }

    .results-section {
        padding: 40px 16px;
    }

    .roster-buttons {
        flex-direction: column;
        gap: 10px;
        margin-bottom: 20px;
        align-items: center;
    }

    .roster-button {
        width: 80%;
        max-width: 200px;
        padding: 10px 20px;
        font-size: 1rem;
    }

    .roster-table th,
    .roster-table td {
        padding: 10px;
        font-size: 0.8rem;
    }

    .roster-table table {
        min-width: 600px;
    }

    .results-hint {
        font-size: 1.1rem;
    }

    .event-info-section {
        padding: 40px 16px;
    }

    .contact-container {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .contact-details {
        align-items: center;
    }
}

@media (min-width: 768px) {
    .event-info-container {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .event-title {
        font-size: 1.6rem;
    }

    .summary-stat .stat-number {
        font-size: 1.3rem;
    }

    .summary-stat .stat-label {
        font-size: 0.7rem;
    }

    .results-header h2 {
        font-size: 1.5rem;
    }

    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}