/* =========================================================
   기본 초기화
========================================================= */

*,
*::before,
*::after {
    box-sizing: border-box;
}


html,
body {
    width: 100%;
    min-height: 100%;
    margin: 0;
    padding: 0;
}


html {
    background-color: #15191c;
}


body {
    position: relative;

    min-width: 320px;
    min-height: 100vh;

    overflow-x: hidden;

    background-color: #15191c;

    color: #ffffff;

    font-family:
        Arial,
        "Noto Sans KR",
        sans-serif;
}


button,
select {
    font: inherit;
}


/* =========================================================
   공통 배경 오버레이 이미지
========================================================= */

.background-overlay {
    position: fixed;

    left: 50%;
    bottom: 0;

    transform: translateX(-50%);

    width: auto;
    height: auto;

    max-width: none;
    max-height: none;

    pointer-events: none;
    user-select: none;
    -webkit-user-drag: none;

    z-index: 0;
}


/* =========================================================
   사이트 전체 영역
========================================================= */

.site-wrapper {
    position: relative;
    z-index: 1;

    width: 100%;
    min-height: 100vh;

    padding-top: 90px;
    padding-bottom: 80px;
}


/* =========================================================
   상단 헤더와 메인 메뉴
========================================================= */

.site-header {
    width: 100%;
}


.main-navigation {
    display: flex;
    align-items: center;

    /*
        페이지 왼쪽 끝에서 92px 떨어진 위치
    */
    padding-left: 92px;

    /*
        버튼 사이 간격
    */
    gap: 32px;

    min-height: 48px;
}


.main-menu-button {
    display: flex;
    align-items: center;
    justify-content: center;

    flex: 0 0 auto;

    margin: 0;
    padding: 0;

    border: 0;
    outline: none;

    background: transparent;

    cursor: pointer;

    opacity: 0.72;

    transition:
        opacity 180ms ease,
        transform 180ms ease,
        filter 180ms ease;
}


.main-menu-button img {
    display: block;

    width: auto;
    height: auto;

    max-width: none;

    pointer-events: none;
    user-select: none;
    -webkit-user-drag: none;
}


.main-menu-button:hover {
    opacity: 1;
}


.main-menu-button:focus-visible {
    outline: 2px solid rgba(255, 225, 0, 0.9);
    outline-offset: 8px;
}


/*
    현재 선택된 메뉴

    이미지형 메뉴의 기본 테스트를 위해
    약간 확대하고 밝게 표시한다.
*/
.main-menu-button.active {
    opacity: 1;

    transform: scale(1.08);

    filter:
        brightness(1.15)
        drop-shadow(0 0 5px rgba(255, 255, 255, 0.15));
}


/*
    마타GO 메뉴 활성화 시 노란 계열 글로우
*/
.main-menu-button[data-page-id="matago"].active {
    filter:
        brightness(1.15)
        drop-shadow(0 0 7px rgba(255, 220, 0, 0.45));
}


/* =========================================================
   배너 영역
========================================================= */

.banner-section {
    width: 100%;

    /*
        상단 메뉴로부터 32px 간격
    */
    margin-top: 32px;

    padding-left: 30px;
    padding-right: 30px;
}


.banner-viewport {
    position: relative;

    width: 100%;

    overflow: hidden;

    border-radius: 8px;

    background-color: rgba(0, 0, 0, 0.25);
}


.banner-track {
    display: flex;

    width: 100%;

    transform: translateX(0);

    transition: transform 600ms ease-in-out;
}


.banner-slide {
    flex: 0 0 100%;

    width: 100%;
}


.banner-slide img {
    display: block;

    width: 100%;
    height: auto;

    pointer-events: none;
    user-select: none;
    -webkit-user-drag: none;
}


/* =========================================================
   Detail 영역
========================================================= */

.detail-container {
    position: relative;

    width: calc(100% - 60px);
    min-height: 440px;

    margin: 32px auto 0;

    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 8px;

    background-color: rgba(11, 15, 18, 0.74);

    box-shadow:
        0 12px 36px rgba(0, 0, 0, 0.18);

    overflow: hidden;
}


/* =========================================================
   공통 더미 페이지
========================================================= */

.dummy-page {
    width: 100%;
    min-height: 440px;

    padding: 48px;
}


.dummy-page-header {
    margin-bottom: 36px;
}


.dummy-page-title {
    margin: 0 0 12px;

    color: #ffffff;

    font-size: 30px;
    font-weight: 700;
}


.dummy-page-label {
    margin: 0;

    color: rgba(255, 255, 255, 0.45);

    font-size: 14px;
    letter-spacing: 1px;
}


.dummy-page-content {
    display: flex;
    align-items: center;
    justify-content: center;

    min-height: 260px;

    border: 1px dashed rgba(255, 255, 255, 0.12);
    border-radius: 6px;

    background-color: rgba(255, 255, 255, 0.018);

    color: rgba(255, 255, 255, 0.38);

    font-size: 18px;
}


/* =========================================================
   지난경주 더미 페이지
========================================================= */

.record-filter {
    display: flex;
    align-items: flex-end;
    flex-wrap: wrap;

    gap: 12px;

    padding: 22px;

    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 7px;

    background-color: rgba(255, 255, 255, 0.025);
}


.record-select-group {
    display: flex;
    flex-direction: column;

    gap: 8px;
}


.record-select-group label {
    color: rgba(255, 255, 255, 0.48);

    font-size: 12px;
}


.record-select {
    width: 130px;
    height: 42px;

    padding: 0 36px 0 13px;

    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 5px;

    outline: none;

    background-color: #20272c;

    color: #ffffff;

    cursor: pointer;
}


.record-select:focus {
    border-color: rgba(255, 220, 0, 0.65);
}


.record-select.weekend-selected {
    color: #ff6262;
}


.record-select option {
    color: #ffffff;
    background-color: #20272c;
}


.record-select option.weekend-option {
    color: #ff6262;
}


.record-search-button {
    height: 42px;

    padding: 0 30px;

    border: 0;
    border-radius: 5px;

    background-color: #e2c900;

    color: #121619;

    font-size: 14px;
    font-weight: 700;

    cursor: pointer;

    transition:
        filter 150ms ease,
        transform 150ms ease;
}


.record-search-button:hover {
    filter: brightness(1.1);
}


.record-search-button:active {
    transform: translateY(1px);
}


.record-dummy-list {
    display: flex;
    align-items: center;
    justify-content: center;

    min-height: 240px;

    margin-top: 24px;

    border: 1px dashed rgba(255, 255, 255, 0.12);
    border-radius: 6px;

    color: rgba(255, 255, 255, 0.38);
}


/* =========================================================
   페이지 로딩 및 오류
========================================================= */

.detail-message {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 100%;
    min-height: 440px;

    padding: 40px;

    color: rgba(255, 255, 255, 0.48);

    text-align: center;
}


.detail-message.error {
    color: #ff7777;
}


/* =========================================================
   작은 화면 임시 대응
========================================================= */

@media (max-width: 1000px) {

    .site-wrapper {
        padding-top: 50px;
    }


    .main-navigation {
        padding-left: 40px;

        gap: 24px;
    }


    .banner-section {
        padding-left: 20px;
        padding-right: 20px;
    }


    .detail-container {
        width: calc(100% - 40px);
    }

}


@media (max-width: 720px) {

    .main-navigation {
        padding-left: 20px;
        padding-right: 20px;

        overflow-x: auto;
    }


    .dummy-page {
        padding: 28px 22px;
    }


    .record-filter {
        align-items: stretch;
    }


    .record-select-group {
        flex: 1 1 120px;
    }


    .record-select {
        width: 100%;
    }


    .record-search-button {
        width: 100%;
    }

}