﻿.header-menu {
    padding: 10px 5px;
    border-bottom: solid 1px red;
    margin-bottom: 1rem;
    color: #4f8cff;
    text-decoration: none;
}

.header-menu:hover {
    cursor: pointer;
}

#eventsPageContent2 {
    padding: 2vw 0;
    background: #0f1117;
}

.event-page {
    max-width: 1160px;
    color: #e8eaed;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    display: flex;
    flex-direction: row;
    border-radius: 12px;
    gap: 0;
    margin: auto;
    overflow: auto;
}

/* Left column */
.left-col {
    flex: 0.25 0 260px;
    background: #1a1d27;
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
}

.image-placeholder {
    width: 100%;
    aspect-ratio: 1 / 1;
    background: #e0e0e0;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #888;
    font-size: 0.875rem;
    overflow: hidden;
    max-height: 200px;
}

    .image-placeholder img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

.info-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.8125rem;
}

    .info-table th,
    .info-table td {
        padding: 0.4rem 0.5rem;
        text-align: left;
        border-bottom: 1px solid #eee;
    }

    .info-table th {
        color: #4f8cff;
        font-weight: 500;
        width: 40%;
    }

    .info-table td {
        color: #e8eaed;
    }

/* Right column */
.right-col, .history-page {
    flex: 1;
    padding: 1.5rem 1.75rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    background: #161923;
}

.meta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    align-items: flex-start;
}

.meta-block {
    flex: 1 1 180px;
}

    .meta-block h2 {
        font-size: 1.125rem;
        font-weight: 600;
        margin-bottom: 0.25rem;
        color: #4f8cff;
    }

    .meta-block .datetime {
        font-size: 0.9375rem;
        color: #9aa0a6;
    }

.description {
    flex: 1;
    font-size: 0.975rem;
    color: #e8eaed;
    line-height: 1.65;
}

    /* Markdown-friendly styles inside description */
    .description h1,
    .description h2,
    .description h3 {
        margin: 1rem 0 0.3rem;
        line-height: 1.1;
    }

    .description h1 {
        font-size: 1.3rem;
    }

    .description h2 {
        font-size: 1.1rem;
    }

    .description h3 {
        font-size: 1rem;
    }

    .description p {
        margin-bottom: 0.65rem;
    }

    .description ul,
    .description ol {
        margin: 0.3rem 0 0.3rem 1rem;
    }

    .description li {
        margin-bottom: 0.15rem;
    }

    .description a {
        color: #0066cc;
        text-decoration: none;
    }

        .description a:hover {
            text-decoration: underline;
        }

    .description strong {
        font-weight: 600;
    }

/* Mobile */
@media (max-width: 700px) {
    body {
        padding: 0.75rem;
    }

    .event-page {
        flex-direction: column;
    }

    .left-col {
        flex: none;
        width: 100%;
        border-right: none;
        border-bottom: 1px solid #eee;
        flex-direction: row;
        align-items: flex-start;
        gap: 1rem;
        padding: 1rem;
    }

    .image-placeholder {
        flex: 0 0 100px;
        width: 100px;
        aspect-ratio: 1 / 1;
    }

    .info-table {
        flex: 1;
        font-size: 0.8rem;
    }

    .right-col {
        padding: 1.25rem 1rem;
    }

    .meta-row {
        flex-direction: column;
        gap: 1rem;
    }

    .meta-block {
        flex: none;
    }
}

@media (max-width: 400px) {
    .left-col {
        flex-direction: column;
        align-items: stretch;
    }

    .image-placeholder {
        width: 100%;
        max-width: 160px;
        margin: 0 auto;
    }
}


#registrations, #serverInfoPage {
    display: none;
}

#serverInfoPage {
    flex: 0.75 0 690px;
    background: #161923;
}

    #serverInfoPage .server-info-header, #serverInfoPage .readonly-field, #serverInfoPage .option-group {
        background: #2c3143;
    }

        #serverInfoPage .lighter {
            background: #353c55;
        }

.event-buttons {
    display: flex;
    flex-direction: column;
    width: 100%;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin: 10px 0;
}

.event-button {
    background: #2c3143;
    width: 100%;
    height: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 10px;
    text-decoration: none;
    color: white;
    gap: 5px;
}

    .event-button:hover {
        color: #4f8cff;
        background: #252833;
        cursor: pointer;
    }

#practiceServerPage {
    flex: 0.75 0 690px;
    background: #161923;
    display: none;
}

.practice-server-page #practiceLeaderboardModal {
    width: 100%;
}

    .practice-server-page #practiceLeaderboardModal .modal-content {
        overflow: auto;
        height: 100%;
        border-radius: 0;
        flex: 1 1 auto;
        box-shadow: none;
        background: #161923;
    }
    
.registration-detail {
    display: flex;
    justify-content: space-between;
}
    
    .registration-detail p {
        margin-bottom: 0;
    }


.team-card .team-badge {
    font-size: 0.75rem;
    background: #333;
    color: #fff;
    padding: 2px 8px;
    border-radius: 12px;
    vertical-align: middle;
}

.team-drivers {
    padding-top: 8px;
}

.team-driver-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    padding: 1rem 1.1rem .75rem;
    border-bottom: 1px solid #222;
}

    .team-driver-row:last-child {
        border-bottom: none;
    }

.driver-name-small {
    font-weight: 600;
    min-width: 140px;
}

.driver-stats-mini {
    display: flex;
    gap: 12px;
    font-size: 0.85rem;
    color: #aaa;
    min-width: 220px;
}

.pos-list.mini .pos {
    font-size: 0.8rem;
    min-width: 28px;
}