/*Event Info Page----------------------------------------------------------------------------*/

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

.hero-section {
    text-align: center;
    padding: 40px 20px;
    background: rgba(19, 53, 82, 0.4);
    border: 1px solid rgba(83, 195, 255, 0.2);
    border-radius: 12px;
    margin-bottom: 40px;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 60px;
}

.info-card {
    background: #0b141d;
    border-left: 4px solid #ff7289;
    padding: 25px;
    border-radius: 0 8px 8px 0;
    transition: transform 0.3s ease;
}

.info-card:not(.community) .highlight-title {
    color: #ff7289;
}

.info-card.community .highlight-title {
    color: #82ff4a;
}

.info-card:hover {
    transform: translateX(10px);
}

.info-card.community {
    border-left-color: #82ff4a;
}

.dashboard-container {
    background: #131a26;
    border: 1px solid #42437C;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    margin-bottom: 50px;
    display: flex;
    flex-direction: column;
}

.season-tabs {
    display: flex;
    background: #0b0f1b;
    border-bottom: 1px solid #42437C;
    flex-wrap: wrap;
}

.season-tab {
    flex: 1;
    padding: 20px;
    background: transparent;
    border: none;
    color: #888;
    font-family: 'WMCT_One', sans-serif;
    font-size: 1.2rem;
    cursor: pointer;
    transition: 0.3s;
    text-transform: uppercase;
    white-space: nowrap;
}

.season-tab:hover {
    color: white;
    background: rgba(255, 255, 255, 0.05);
}

.season-tab.active {
    color: #ffea63;
    background: #131a26;
    border-bottom: 3px solid #ffea63;
}

.dashboard-body {
    display: flex;
    min-height: 500px;
    position: relative;
}

.game-sidebar {
    width: 250px;
    background: rgba(0, 0, 0, 0.2);
    border-right: 1px solid rgba(255, 255, 255, 0.05);
    padding: 10px 0;
    flex-shrink: 0;
    overflow-y: auto;
}

.sidebar-btn {
    width: 100%;
    text-align: left;
    padding: 15px 20px;
    background: transparent;
    border: none;
    color: #ccc;
    font-family: "Blogger", sans-serif;
    font-size: 1.1rem;
    cursor: pointer;
    border-left: 3px solid transparent;
    transition: 0.2s;
}

.sidebar-btn:hover {
    background: rgba(255, 255, 255, 0.05);
    color: white;
}

.sidebar-btn.active {
    background: rgba(66, 67, 124, 0.4);
    color: #ffea63;
    border-left: 3px solid #ffea63;
}

.mobile-sidebar-toggle {
    display: none;
    width: 100%;
    padding: 12px 18px;
    background: linear-gradient(90deg, #1a253a, #133552);
    color: #ffea63;
    text-align: center;
    font-family: 'WMCT_One', sans-serif;
    font-weight: 700;
    font-size: 1.05rem;
    border: none;
    border-radius: 8px;
    margin-bottom: 8px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.45);
    cursor: pointer;
}

.game-content-panel {
    flex: 1;
    padding: 40px;
    position: relative;
    overflow-y: auto;
}

.game-detail-view {
    display: none;
    animation: fadeIn 0.4s ease;
}

.game-detail-view.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.game-header {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 20px;
    margin-bottom: 20px;
}

.game-title {
    font-family: 'WMCT_One', sans-serif;
    font-size: 2.5rem;
    color: #ffea63;
    margin: 0;
    line-height: 1.1;
}

.game-meta {
    font-family: "Blogger", sans-serif;
    color: #ffea63;
    margin-top: 5px;
}

.game-grid-layout {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 40px;
}

.text-content p {
    font-size: 0.95rem;
    line-height: 1.5;
}

.game-img-wrapper img {
    width: 100%;
    border-radius: 8px;
    border: 2px solid #42437C;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
}

.scoring-section {
    margin-top: 40px;
}

.scoring-section h4 {
    margin-bottom: 15px;
}

.score-table {
    background: rgba(0, 0, 0, 0.3);
    padding: 20px;
    border-radius: 8px;
    margin-top: 20px;
    list-style: none;
    display: grid;
    grid-template-rows: repeat(12, auto);
    grid-auto-flow: column;
    gap: 0 40px;
    overflow-x: auto;
}

.score-table li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    min-width: 200px;
}

.score-table li:last-child {
    border-bottom: none;
}

.score-highlight {
    color: #ffea63;
    font-weight: bold;
}

/* --- SPLIT CARDS & BUTTONS --- */
.split-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.column-center {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.btn-action {
    padding: 12px 25px;
    border-radius: 6px;
    text-decoration: none;
    font-family: "Blogger", sans-serif;
    text-transform: uppercase;
    font-weight: bold;
    font-size: 0.9rem;
    transition: 0.3s;
    text-align: center;
    margin-top: 20px;
    border: none;
    cursor: pointer;
}

.btn-action.primary {
    background: #53c3ff;
    color: #0b141d;
}

.btn-action.primary:hover {
    background: rgb(3, 61, 116);
    color: white;
}

/* --- MODAL OVERLAYS --- */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.modal-overlay.show {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    position: relative;
    max-width: 650px;
    width: 90%;
    background: rgba(11, 20, 29, 0.95);
    border: 1px solid rgba(83, 195, 255, 0.2);
    border-radius: 12px;
    max-height: 85vh;
    display: flex;
    flex-direction: column;
    transform: scale(0.8);
    opacity: 0;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), opacity 0.3s ease;
}

.modal-overlay.show .modal-content {
    transform: scale(1);
    opacity: 1;
}

/* --- SCROLL AREA FOR RULES --- */
.modal-scroll-area {
    overflow-y: auto;
    padding-right: 15px;
}

.modal-scroll-area::-webkit-scrollbar {
    width: 8px;
}

.modal-scroll-area::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 8px;
}

.modal-scroll-area::-webkit-scrollbar-thumb {
    background: #53c3ff;
    border-radius: 8px;
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 20px;
    color: rgba(255, 255, 255, 0.5);
    font-size: 2.5rem;
    cursor: pointer;
    line-height: 1;
    transition: 0.2s;
    font-family: sans-serif;
}

.modal-close:hover {
    color: #ff5353;
    transform: scale(1.1);
}

/* --- RESPONSIVE MEDIA QUERIES --- */

@media (max-width: 900px) {

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

    .dashboard-body {
        flex-direction: column;
    }

    .mobile-sidebar-toggle {
        display: block;
        border-radius: 0;
    }

    .game-sidebar {
        width: 100%;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease-out;
        border-right: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        padding: 0;
    }

    .game-sidebar.open {
        max-height: 600px;
        overflow-y: auto;
        padding: 10px 0;
    }

    .game-content-panel {
        padding: 20px;
    }

    .game-grid-layout {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .game-img-wrapper {
        order: -1;
        max-width: 100%;
        margin: 0 auto;
    }

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

    .score-table {
        display: flex;
        flex-direction: column;
        grid-template-rows: none;
        grid-auto-flow: row;
        gap: 0;
    }

    .score-table li {
        width: 100%;
        min-width: auto;
    }
}

@media (max-width: 480px) {
    .hero-section {
        padding: 30px 15px;
    }

    .season-tab {
        font-size: 0.9rem;
        padding: 15px;
    }

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