﻿/* =====[ 02_style_css_전체코드_수정본_시작 ]===== */

:root {
    --bg: #0f1220;
    --panel: #171b2d;
    --panel2: #20263a;
    --text: #f3f5fb;
    --muted: #aeb7c9;
    --line: rgba(255, 255, 255, 0.12);
    --accent: #7aa7ff;
    --accent2: #a48bff;
    --good: #65d99b;
    --warn: #ffd166;
    --bad: #ff7070;
    --radius: 16px;
    --shadow: 0 16px 40px rgba(0, 0, 0, 0.28);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    font-family: "Malgun Gothic", "Apple SD Gothic Neo", Arial, sans-serif;
    color: var(--text);
    background: var(--bg);
    line-height: 1.5;
}

button,
input,
select {
    font-family: inherit;
}

button {
    cursor: pointer;
}

h1,
h2,
h3,
h4,
p {
    margin-top: 0;
    word-break: keep-all;
}

p {
    color: var(--muted);
}

ul {
    margin-top: 8px;
    margin-bottom: 0;
    padding-left: 20px;
}

li {
    color: var(--muted);
    margin-bottom: 6px;
}

.site-header {
    padding: 36px 20px 26px;
    background: linear-gradient(135deg, rgba(122, 167, 255, 0.18), rgba(164, 139, 255, 0.08));
    border-bottom: 1px solid var(--line);
}

.header-inner {
    width: min(1180px, 100%);
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
}

.eyebrow {
    margin: 0 0 8px;
    color: var(--accent);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.08em;
}

h1 {
    margin: 0;
    font-size: clamp(32px, 5vw, 52px);
    line-height: 1.05;
}

h2 {
    margin: 0 0 10px;
    font-size: clamp(24px, 4vw, 36px);
    line-height: 1.2;
}

h3 {
    margin-bottom: 12px;
    font-size: 20px;
}

h4 {
    margin-bottom: 10px;
    font-size: 16px;
}

.header-desc {
    max-width: 720px;
    margin: 14px 0 0;
    color: var(--muted);
    line-height: 1.7;
}

.header-badge {
    min-width: 210px;
    padding: 18px;
    background: rgba(23, 27, 45, 0.78);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.header-badge span {
    display: block;
    margin-bottom: 6px;
    color: var(--muted);
    font-size: 13px;
}

.header-badge strong {
    display: block;
    font-size: 18px;
}

.top-nav {
    position: sticky;
    top: 0;
    z-index: 50;
    display: flex;
    gap: 8px;
    width: 100%;
    padding: 12px 20px;
    overflow-x: auto;
    background: rgba(15, 18, 32, 0.96);
    border-bottom: 1px solid var(--line);
}

.nav-btn {
    flex: 0 0 auto;
    padding: 10px 15px;
    color: var(--muted);
    background: transparent;
    border: 1px solid transparent;
    border-radius: 999px;
    font-size: 14px;
}

.nav-btn:hover,
.nav-btn.active {
    color: var(--text);
    background: rgba(122, 167, 255, 0.16);
    border-color: rgba(122, 167, 255, 0.45);
}

.layout {
    width: min(1180px, 100%);
    margin: 0 auto;
    padding: 28px 20px 54px;
    display: grid;
    grid-template-columns: 280px minmax(0, 1fr);
    gap: 22px;
}

.side-panel {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.content-area {
    min-width: 0;
}

.page-section {
    display: none;
}

.page-section.active {
    display: block;
}

.section-title {
    margin-bottom: 18px;
}

.section-title p:not(.eyebrow) {
    color: var(--muted);
    line-height: 1.7;
}

.panel,
.feature-card,
.ad-box,
.notice-box,
.data-card {
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.panel,
.feature-card,
.notice-box,
.data-card {
    padding: 20px;
}

.ad-box {
    min-height: 160px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: center;
    border-style: dashed;
}

.ad-box p {
    margin-bottom: 8px;
    color: var(--text);
    font-weight: 900;
}

.ad-box span {
    color: var(--muted);
    font-size: 14px;
}

.notice-box h3 {
    margin-bottom: 8px;
}

.notice-box p {
    margin-bottom: 0;
    line-height: 1.7;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    margin-bottom: 16px;
}

.feature-card p {
    line-height: 1.7;
}

.link-btn,
.primary-btn {
    min-height: 42px;
    padding: 0 16px;
    margin-top: 12px;
    border: 0;
    border-radius: 12px;
    font-weight: 900;
}

.link-btn {
    color: var(--text);
    background: rgba(255, 255, 255, 0.08);
}

.primary-btn {
    width: 100%;
    color: #0f1220;
    background: linear-gradient(135deg, var(--accent), var(--accent2));
}

.link-btn:hover,
.primary-btn:hover {
    filter: brightness(1.08);
}

.timeline {
    display: grid;
    gap: 12px;
}

.timeline div {
    padding: 14px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--line);
    border-radius: 14px;
}

.timeline strong {
    display: block;
    margin-bottom: 6px;
}

.timeline p {
    margin-bottom: 0;
}

.tool-grid {
    display: grid;
    grid-template-columns: minmax(300px, 420px) minmax(0, 1fr);
    gap: 16px;
    align-items: start;
}

.form-panel label,
.calc-card label {
    display: block;
    margin-bottom: 12px;
    color: var(--muted);
    font-size: 14px;
}

input,
select {
    display: block;
    width: 100%;
    min-height: 42px;
    margin-top: 7px;
    padding: 10px 12px;
    color: var(--text);
    background: #101526;
    border: 1px solid var(--line);
    border-radius: 12px;
    outline: none;
}

input:focus,
select:focus {
    border-color: rgba(122, 167, 255, 0.85);
}

.substat-area {
    margin-top: 14px;
}

.substat-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 90px;
    gap: 8px;
    margin-bottom: 8px;
}

.substat-row input,
.substat-row select {
    margin-top: 0;
}

.result-panel {
    min-height: 440px;
}

.muted {
    color: var(--muted);
}

.score-badge {
    display: inline-flex;
    align-items: center;
    padding: 8px 13px;
    margin: 4px 0 14px;
    border-radius: 999px;
    font-weight: 900;
}

.score-good {
    color: var(--good);
    background: rgba(101, 217, 155, 0.16);
}

.score-warn {
    color: var(--warn);
    background: rgba(255, 209, 102, 0.16);
}

.score-bad {
    color: var(--bad);
    background: rgba(255, 112, 112, 0.16);
}

.result-block {
    padding: 14px;
    margin: 12px 0;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--line);
    border-radius: 14px;
}

.result-block p {
    margin: 8px 0 0;
    line-height: 1.7;
}

.result-block ul {
    line-height: 1.7;
}

.tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
}

.tag {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 4px 10px;
    color: #d9e5ff;
    background: rgba(122, 167, 255, 0.15);
    border: 1px solid rgba(122, 167, 255, 0.25);
    border-radius: 999px;
    font-size: 13px;
    font-weight: 800;
}

.calc-card {
    min-height: 270px;
}

.mini-result {
    min-height: 64px;
    margin-top: 12px;
    padding: 14px;
    color: var(--muted);
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--line);
    border-radius: 14px;
    line-height: 1.7;
}

.search-panel {
    margin-bottom: 16px;
}

.card-list {
    display: grid;
    gap: 14px;
}

.data-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 10px;
}

.data-card h3 {
    margin-bottom: 4px;
}

.data-card small {
    color: var(--muted);
}

.data-card p {
    line-height: 1.7;
}

.meta-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-top: 12px;
}

.meta-item {
    padding: 12px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--line);
    border-radius: 12px;
}

.meta-item strong {
    display: block;
    margin-bottom: 5px;
    color: var(--text);
}

.meta-item span {
    color: var(--muted);
    line-height: 1.6;
}

.site-footer {
    padding: 22px 20px;
    color: var(--muted);
    text-align: center;
    border-top: 1px solid var(--line);
}

.site-footer p {
    width: min(980px, 100%);
    margin: 0 auto;
    line-height: 1.7;
}

@media (max-width: 980px) {
    .layout {
        grid-template-columns: 1fr;
    }

    .side-panel {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .tool-grid {
        grid-template-columns: 1fr;
    }

    .grid-3 {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 720px) {
    .site-header {
        padding-top: 28px;
    }

    .header-inner {
        flex-direction: column;
        align-items: flex-start;
    }

    .header-badge {
        width: 100%;
    }

    .layout {
        padding-left: 14px;
        padding-right: 14px;
    }

    .top-nav {
        padding-left: 14px;
        padding-right: 14px;
    }

    .side-panel {
        grid-template-columns: 1fr;
    }

    .data-card-header {
        flex-direction: column;
    }

    .meta-grid {
        grid-template-columns: 1fr;
    }

    .substat-row {
        grid-template-columns: minmax(0, 1fr) 84px;
    }
}

/* =====[ 02_style_css_전체코드_수정본_끝 ]===== */
/* =====[ 14_v0.9_UI개선_시작 ]===== */

/* 결과 패널이 너무 길게 페이지를 밀지 않도록 내부 스크롤 처리 */
.result-panel {
    max-height: calc(100vh - 160px);
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: rgba(122, 167, 255, 0.6) rgba(255, 255, 255, 0.06);
}

.result-panel::-webkit-scrollbar {
    width: 8px;
}

.result-panel::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.06);
    border-radius: 999px;
}

.result-panel::-webkit-scrollbar-thumb {
    background: rgba(122, 167, 255, 0.55);
    border-radius: 999px;
}

/* 장비/영웅/아티팩트 추천 화면에서 결과 패널을 화면에 붙여서 보기 좋게 */
.tool-grid .result-panel {
    position: sticky;
    top: 82px;
}

/* 결과 카드 간격 압축 */
.result-panel .result-block {
    margin: 10px 0;
    padding: 13px;
}

.result-panel .result-block p {
    font-size: 14px;
}

.result-panel .result-block li {
    font-size: 13px;
    line-height: 1.55;
}

/* 추천 결과 내부의 큰 카드 제목 가독성 개선 */
.result-panel h3 {
    position: sticky;
    top: 0;
    z-index: 2;
    margin: -20px -20px 14px;
    padding: 16px 20px 12px;
    background: linear-gradient(180deg, var(--panel) 72%, rgba(23, 27, 45, 0));
    border-radius: var(--radius) var(--radius) 0 0;
}

/* DB 목록은 넓은 화면에서 2열로 표시 */
#heroList.card-list,
#artifactList.card-list,
#contentList.card-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

/* 카드 내부 정보 박스가 너무 빽빽하지 않게 조정 */
.data-card {
    min-width: 0;
}

.data-card h3 {
    font-size: 18px;
}

.data-card small {
    display: block;
    line-height: 1.5;
}

.data-card .meta-grid {
    grid-template-columns: 1fr 1fr;
}

/* 검색 영역과 하위 섹션 간격 정리 */
.sub-section-title {
    margin-top: 28px;
    padding-top: 8px;
}

/* 상단 메뉴가 너무 작아 보이는 것 보정 */
.nav-btn {
    font-weight: 800;
}

/* 추천기 입력 폼 높이와 결과 패널 균형 */
.form-panel {
    align-self: start;
}

/* 홈 카드 정리 */
.feature-card {
    min-height: 170px;
}

/* 타임라인 시각 정리 */
.timeline div {
    border-left: 3px solid rgba(122, 167, 255, 0.55);
}

/* 좌측 패널도 긴 화면에서 보기 좋게 고정 */
@media (min-width: 981px) {
    .side-panel {
        position: sticky;
        top: 82px;
        align-self: start;
    }
}

/* 중간 화면에서는 DB 1열 */
@media (max-width: 1100px) {
    #heroList.card-list,
    #artifactList.card-list,
    #contentList.card-list {
        grid-template-columns: 1fr;
    }

    .tool-grid .result-panel {
        position: static;
        max-height: none;
        overflow-y: visible;
    }
}

/* 모바일에서는 내부 스크롤 제거 */
@media (max-width: 720px) {
    .result-panel {
        max-height: none;
        overflow-y: visible;
    }

    .result-panel h3 {
        position: static;
        margin: 0 0 12px;
        padding: 0;
        background: transparent;
    }

    #heroList.card-list,
    #artifactList.card-list,
    #contentList.card-list {
        grid-template-columns: 1fr;
    }

    .data-card .meta-grid {
        grid-template-columns: 1fr;
    }
}

/* =====[ 14_v0.9_UI개선_끝 ]===== */

/* =====[ 15B_v1.0_배포준비_기본문서_CSS_시작 ]===== */

.footer-links {
    margin-top: 10px;
}

.footer-links a,
.back-link {
    color: #d9e5ff;
    text-decoration: none;
    font-weight: 800;
}

.footer-links a:hover,
.back-link:hover {
    text-decoration: underline;
}

.static-layout {
    grid-template-columns: 1fr;
    width: min(900px, 100%);
}

.static-content .panel {
    margin-bottom: 16px;
}

.static-content h2,
.static-content h3 {
    margin-top: 18px;
}

.static-content h2:first-child,
.static-content h3:first-child {
    margin-top: 0;
}

.static-content p,
.static-content li {
    line-height: 1.8;
}

/* =====[ 15B_v1.0_배포준비_기본문서_CSS_끝 ]===== */
