@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+KR:wght@400;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Material+Symbols+Rounded');

/* ========================================
   기본 설정
======================================== */
html, body {
    width: 100vw;
    min-width: 100vw;
    max-width: 100vw;
    height: 100%;
    min-height: 100vh;
    overflow-x: hidden;
}
body {
    font-family: 'Noto Sans KR', 'Inter', 'Arial', sans-serif;
    background: #181B20;
    margin: 0;
    padding: 0;
    color: #F5F7FA;
    font-size: 14px;
    line-height: 1.5;
}

/* ========================================
   헤더
======================================== */
.main-header {
    background: #1a1d21;
    color: #fff;
    padding: 0 0 1.2em 0;
    text-align: center;
    box-shadow: 0 2px 14px rgba(0,0,0,0.19);
    border-bottom: 2px solid #03C75A;
}
.logo-nav {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.7em;
}
.main-logo {
    height: 70px;
    margin-top: 1.2em;
    border-radius: 16px;
    box-shadow: 0 2px 10px rgba(3,199,90,0.08);
}
.main-nav {
    display: flex;
    gap: 1.2em;
    margin: 0.5em 0;
    justify-content: center;
    flex-wrap: wrap;
}
.main-nav a {
    color: #fff;
    background: transparent;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    padding: 10px 20px;
    border-radius: 16px;
    transition: background 0.2s, color 0.2s;
    min-width: 0;
    white-space: nowrap;
}
.main-nav a:hover, .main-nav a.active {
    background: #03C75A;
    color: #222;
}

/* ========================================
   광고 영역
======================================== */
.ad-top {text-align:center; margin-bottom:1em;}
.ad-side {position:fixed; top:100px; width:160px;}
.ad-left {left:0;}
.ad-right {right:0;}
.ad-bottom {text-align:center; margin-top:2em;}
@media (max-width: 900px) {
    .ad-side {display:none;}
}

/* ========================================
   메인 영역 (PC)
======================================== */
main {
    max-width: 1200px;
    margin: 20px auto;
    background: #222;
    padding: 25px;
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    width: 100%;
    box-sizing: border-box;
    font-size: 14px;
}

/* ========================================
   카드형 정보 섹션
======================================== */
.info-section {
    margin-bottom: 2em;
}
.info-cards {
    display: flex;
    gap: 2em;
    flex-wrap: wrap;
    justify-content: center;
}
.info-card {
    background: #181B20;
    border-radius: 15px;
    box-shadow: 0 4px 12px rgba(3,199,90,0.08);
    padding: 20px;
    width: 320px;
    min-width: 280px;
    max-width: 360px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    margin-bottom: 15px;
    position: relative;
    font-size: 14px;
}
.card-icon {
    font-family: 'Material Symbols Rounded';
    font-size: 36px;
    color: #00BFAE;
    position: absolute;
    top: 15px;
    right: 15px;
    opacity: 0.21;
    pointer-events: none;
}
.info-card h2 {
    font-size: 18px;
    color: #03C75A;
    margin-bottom: 15px;
    margin-top: 5px;
    font-weight: 700;
}
.notice-preview, .schedule-preview {
    background: #222;
    border-radius: 12px;
    padding: 15px;
    margin-bottom: 15px;
    font-size: 13px;
    color: #F5F7FA;
    border: 1px solid #31343a;
    box-shadow: 0 4px 12px rgba(3,199,90,0.08);
    min-height: 80px;
    line-height: 1.4;
}
.notice-preview strong, .schedule-preview strong {
    color: #03C75A;
    font-weight: 700;
}
.notice-preview a, .schedule-preview a {
    color: #00BFAE;
    text-decoration: underline;
    word-break: break-all;
}
.notice-preview a:hover, .schedule-preview a:hover {
    color: #03C75A;
    text-decoration: underline;
}

/* ========================================
   경기 결과 섹션
======================================== */
.results-section {
    background: #1E2126;
    box-shadow: 0 4px 12px rgba(3,199,90,0.08);
    border-radius: 15px;
    padding: 25px;
    margin-bottom: 20px;
    text-align: center;
    font-size: 14px;
}
.results-section h2 {
    font-size: 20px;
    color: #03C75A;
    margin-bottom: 20px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 12px;
    justify-content: center;
}
.results-cta {
    margin-top: 0.8em;
}

/* ========================================
   광고 및 이벤트 섹션
======================================== */
.ad-section {
    background: #1E2126;
    box-shadow: 0 4px 12px rgba(3,199,90,0.08);
    border-radius: 15px;
    padding: 25px;
    margin-bottom: 20px;
    text-align: center;
}
.ad-section h2 {
    font-size: 18px;
    color: #00BFAE;
    margin-bottom: 20px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 12px;
    justify-content: center;
}
.ad-main {
    margin-top: 1em;
}

/* ========================================
   버튼
======================================== */
a.button {
    display: inline-block;
    background: linear-gradient(90deg, #03C75A 70%, #00BFAE 100%);
    color: #222;
    padding: 12px 24px;
    border-radius: 20px;
    font-weight: bold;
    text-decoration: none;
    font-size: 13px;
    margin-top: 10px;
    box-shadow: 0 4px 12px rgba(3,199,90,0.15);
    transition: background 0.2s, box-shadow 0.2s, color 0.2s;
    border: none;
    white-space: nowrap;
    word-break: normal;
    min-width: 120px;
    text-align: center;
}
a.button:hover {
    background: linear-gradient(90deg, #00BFAE 60%, #03C75A 100%);
    color: #fff;
    box-shadow: 0 4px 12px rgba(3,199,90,0.24);
}

/* ========================================
   푸터
======================================== */
.main-footer {
    text-align: center;
    background: #222;
    padding: 20px;
    color: #03C75A;
    font-size: 13px;
    margin-top: 20px;
    border-radius: 15px;
    box-shadow: 0 4px 12px rgba(3,199,90,0.08);
}

/* ========================================
   이미지
======================================== */
img {
    border-radius: 12px;
    max-width: 100%;
    margin-top: 0.7em;
    box-shadow: 0 2px 8px rgba(3,199,90,0.08);
}

/* ========================================
   결과 표, 요약 표
======================================== */
.summary-table,
.score-table {
    font-size: clamp(1em, 2.8vw, 1.2em);
}

/* ========================================
   대회명/결과 타이틀
======================================== */
.result-title,
.comp-title {
    font-size: clamp(1.4em, 5vw, 2em);
    font-weight: 700;
}

/* ========================================
   머티리얼 아이콘
======================================== */
.material-symbols-rounded {
    font-family: 'Material Symbols Rounded';
    font-weight: normal;
    font-style: normal;
    font-size: 1.4em;
    line-height: 1;
    letter-spacing: normal;
    text-transform: none;
    display: inline-block;
    white-space: nowrap;
    direction: ltr;
    vertical-align: middle;
    -webkit-font-feature-settings: 'liga';
    -webkit-font-smoothing: antialiased;
}

/* ========================================
   실시간 결과 안내 문구 스타일
======================================== */
.result-desc {
    text-align: center;
    margin: 0.7em 0 1.2em 0;
    font-size: clamp(1.07em, 3vw, 1.2em);
    color: #00BFAE;
    font-weight: 500;
}

.result-desc a {
    color: #03C75A;
    text-decoration: underline;
    font-weight: bold;
}

.result-refresh {
    margin-top: 1.3em;
    color: #03C75A;
    font-size: clamp(0.99em, 2.5vw, 1.1em);
    text-align: center;
    display: flex;
    align-items: center;
    gap: 0.4em;
    justify-content: center;
}

.result-refresh .material-symbols-rounded {
    font-size: 1.2em;
    vertical-align: middle;
}

/* ========================================
   결과 에러 메시지
======================================== */
.result-error {
    background: #2a2d31;
    color: #ff5e5e;
    border-radius: 7px;
    padding: 1.2em 1.2em;
    margin: 1em 0;
    font-size: clamp(1.1em, 3vw, 1.25em);
    display: flex;
    align-items: center;
    gap: 0.7em;
    font-weight: 600;
}

.result-area .material-symbols-rounded,
.result-error .material-symbols-rounded {
    font-size: 1.4em;
    vertical-align: middle;
}

/* ========================================
   모바일 완전 분리 레이아웃 및 메뉴 개선
======================================== */
@media (max-width: 700px) {
    html, body {
        width: 100vw;
        min-width: 100vw;
        max-width: 100vw;
        overflow-x: hidden;
    }
    body {
        font-size: clamp(1.2em, 4vw, 1.7em);
        line-height: 1.7;
        background: #181B20;
    }
    main {
        width: 100vw !important;
        min-width: 100vw !important;
        max-width: 100vw !important;
        margin: 0 !important;
        padding: 0 !important;
        border-radius: 0 !important;
        box-shadow: none !important;
        background: #181B20 !important;
    }
    .info-section {
        width: 100vw !important;
        min-width: 100vw !important;
        max-width: 100vw !important;
        margin: 0 !important;
        padding: 0 !important;
        border-radius: 0 !important;
        box-shadow: none !important;
        background: #181B20 !important;
    }
    .info-cards {
        flex-direction: column;
        gap: 1.2em;
        padding: 0 !important;
        margin: 0 !important;
        width: 100vw !important;
        min-width: 100vw !important;
        max-width: 100vw !important;
    }
    .info-card {
        width: 100vw !important;
        min-width: 100vw !important;
        max-width: 100vw !important;
        margin: 0 !important;
        border-radius: 0 !important;
        box-shadow: none !important;
        padding: 1.2em 0.7em 1.2em 0.7em !important;
        background: #181B20 !important;
        align-items: stretch !important;
    }
    .main-nav {
        gap: 0.3em !important;
        flex-wrap: nowrap !important;
        justify-content: space-between !important;
        padding: 0 0.5em !important;
    }
    .main-nav a {
        font-size: 1.1em !important;
        padding: 0.4em 0.6em !important;
        min-width: unset !important;
        width: auto !important;
        white-space: nowrap !important;
        flex: 1 1 auto !important;
    }
    .main-footer {
        padding-left: 0.5em;
        padding-right: 0.5em;
        border-radius: 0;
        font-size: 1.1em;
    }
    .info-card,
    .results-section,
    .summary-table,
    .score-table {
        font-size: clamp(1.15em, 3vw, 1.3em) !important;
    }
    .result-title, .comp-title {
        font-size: clamp(1.5em, 6vw, 2.4em) !important;
    }
    a.button {
        font-size: clamp(1.2em, 4vw, 1.35em) !important;
        padding: 1em 2em !important;
        white-space: nowrap !important;
        word-break: normal !important;
        min-width: 120px !important;
        text-align: center !important;
    }
    .info-section, .results-section, .ad-section {
        margin-bottom: 1em !important;
    }
    /* 모바일에서 테이블 내용 좌우 스크롤 허용 */
    .score-table, .summary-table {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
    }
    /* 모바일에서 큰 그림/로고 더 작게 */
    .main-logo {
        height: 48px;
        margin-top: 0.7em;
    }
}