
/* ========================================
   1. 기본 설정
======================================== */

@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+KR:wght@400;500;600;700;800;900&display=swap');

:root {
    --bg: #0c1020;
    --bg-secondary: #11182a;
    --card: #151e32;
    --card-hover: #1b2840;
    --border: #26334c;

    --text: #edf2ff;
    --text-secondary: #9ba9c4;
    --text-muted: #65738e;

    --primary: #6c8cff;
    --primary-light: #91a9ff;
    --gold: #f5c76b;
    --green: #5bd6a0;

    --radius: 14px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background: var(--bg);
    color: var(--text);
    font-family: 'Noto Sans KR', sans-serif;
    font-size: 14px;
    line-height: 1.6;
}

button,
input {
    font: inherit;
}

button {
    cursor: pointer;
}

a {
    color: inherit;
    text-decoration: none;
}

.app-container {
    width: 100%;
    min-height: 100vh;
    overflow: hidden;
}


/* ========================================
   2. 헤더
======================================== */

.header {
    width: 100%;
    height: 76px;
    background: rgba(13, 19, 35, 0.95);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(14px);
}

.header-inner {
    max-width: 1240px;
    height: 100%;
    margin: 0 auto;
    padding: 0 24px;

    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 35px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 11px;
    flex-shrink: 0;
}

.logo-icon {
    width: 40px;
    height: 40px;
    border-radius: 12px;

    display: flex;
    align-items: center;
    justify-content: center;

    background: linear-gradient(135deg, #6688ff, #8a6bdf);
    color: white;
    font-size: 23px;
    font-weight: 900;
}

.logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1.35;
}

.logo-text strong {
    font-size: 16px;
    font-weight: 800;
}

.logo-text small {
    color: var(--text-muted);
    font-size: 9px;
    letter-spacing: 1px;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 30px;
}

.nav-link {
    color: var(--text-secondary);
    font-size: 13px;
    font-weight: 600;
    transition: 0.2s;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary-light);
}

.header-actions {
    display: flex;
    align-items: center;
}

.server-status {
    color: var(--text-secondary);
    font-size: 10px;
    letter-spacing: 1px;

    display: flex;
    align-items: center;
    gap: 7px;
}

.status-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--green);
    box-shadow: 0 0 10px rgba(91, 214, 160, 0.7);
}


/* ========================================
   3. 메인 비주얼
======================================== */

main {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 24px;
}

.hero-section {
    min-height: 360px;
    margin-top: 28px;
    padding: 60px 65px;

    position: relative;
    overflow: hidden;

    display: flex;
    align-items: center;

    border: 1px solid #29385b;
    border-radius: 20px;

    background:
        radial-gradient(circle at 80% 40%, rgba(93, 112, 208, 0.23), transparent 35%),
        linear-gradient(115deg, #172443, #121a31 65%, #202346);
}

.hero-content {
    position: relative;
    z-index: 2;
    width: 65%;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;

    padding: 7px 13px;
    border: 1px solid rgba(128, 156, 255, 0.3);
    border-radius: 30px;

    color: var(--primary-light);
    background: rgba(108, 140, 255, 0.1);

    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1px;
}

.hero-badge span {
    color: var(--gold);
}

.hero-content h1 {
    margin-top: 23px;
    font-size: clamp(26px, 3.2vw, 39px);
    font-weight: 900;
    line-height: 1.4;
    letter-spacing: -1.5px;
}

.hero-content h1 span {
    display: block;
    color: var(--primary-light);
}

.hero-description {
    margin-top: 13px;
    color: var(--text-secondary);
    font-size: 13px;
    line-height: 1.9;
}

.search-box {
    width: min(100%, 580px);
    height: 54px;
    margin-top: 24px;
    padding: 5px 6px 5px 17px;

    display: flex;
    align-items: center;
    gap: 12px;

    border: 1px solid #43567e;
    border-radius: 10px;
    background: #f6f8ff;

    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.18);
}

.search-icon {
    color: #64728c;
    font-size: 25px;
}

.search-box input {
    min-width: 0;
    flex: 1;

    border: none;
    outline: none;
    background: transparent;

    color: #18233b;
    font-size: 12px;
}

.search-box input::placeholder {
    color: #8995aa;
}

.search-button {
    height: 42px;
    padding: 0 22px;

    border: none;
    border-radius: 7px;

    background: #5578ee;
    color: white;
    font-size: 12px;
    font-weight: 700;

    transition: 0.2s;
}

.search-button:hover {
    background: #3d61dc;
}

.search-keywords {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 9px;
    margin-top: 14px;
}

.search-keywords > span {
    color: var(--text-muted);
    font-size: 10px;
}

.keyword {
    padding: 4px 10px;
    border: 1px solid #354565;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.04);

    color: #bdc9e1;
    font-size: 10px;

    transition: 0.2s;
}

.keyword:hover {
    border-color: var(--primary);
    color: white;
}


/* 히어로 장식 */

.hero-decoration {
    position: absolute;
    top: 0;
    right: 0;
    width: 42%;
    height: 100%;
    pointer-events: none;
}

.hero-circle {
    position: absolute;
    border: 1px solid rgba(148, 164, 255, 0.13);
    border-radius: 50%;
}

.circle-one {
    width: 290px;
    height: 290px;
    top: 25px;
    right: 35px;
}

.circle-two {
    width: 220px;
    height: 220px;
    top: 60px;
    right: 70px;
}

.hero-star {
    position: absolute;
    top: 50px;
    right: 85px;
    color: var(--gold);
    font-size: 30px;
}

.star-two {
    top: auto;
    right: auto;
    bottom: 50px;
    left: 45px;
    color: var(--primary-light);
}

.hero-level-card {
    position: absolute;
    top: 50%;
    right: 65px;
    transform: translateY(-50%);

    width: 200px;
    height: 145px;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    border: 1px solid rgba(165, 180, 255, 0.4);
    border-radius: 18px;

    background: linear-gradient(145deg, #293a68, #171e3a);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
}

.hero-level-card span {
    color: var(--gold);
    font-size: 10px;
    letter-spacing: 3px;
}

.hero-level-card strong {
    margin: 5px 0;
    font-size: 23px;
    letter-spacing: 1px;
}

.hero-level-card small {
    color: var(--text-muted);
    font-size: 7px;
    letter-spacing: 1px;
}


/* ========================================
   4. 통계 카드
======================================== */

.stats-section {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
    margin-top: 22px;
}

.stat-card {
    min-height: 95px;
    padding: 19px;

    display: flex;
    align-items: center;
    gap: 15px;

    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--bg-secondary);

    transition: 0.2s;
}

.stat-card:hover {
    transform: translateY(-3px);
    background: var(--card-hover);
}

.stat-icon {
    width: 43px;
    height: 43px;
    border-radius: 12px;

    display: flex;
    align-items: center;
    justify-content: center;

    background: rgba(108, 140, 255, 0.12);
    color: var(--primary-light);
    font-size: 20px;
}

.stat-label {
    display: block;
    margin-bottom: 3px;
    color: var(--text-muted);
    font-size: 10px;
}

.stat-card strong {
    font-size: 22px;
    font-weight: 800;
}

.stat-card strong span {
    margin-left: 3px;
    color: var(--text-secondary);
    font-size: 11px;
    font-weight: 500;
}


/* ========================================
   5. 공통 섹션
======================================== */

.content-section {
    margin-top: 55px;
}

.section-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 15px;
    margin-bottom: 20px;
}

.section-subtitle {
    color: var(--primary-light);
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 1.7px;
}

.section-heading h2 {
    margin-top: 5px;
    font-size: 22px;
    font-weight: 800;
    letter-spacing: -0.5px;
}

.section-heading p {
    margin-top: 4px;
    color: var(--text-muted);
    font-size: 11px;
}

.section-more {
    color: var(--text-secondary);
    font-size: 11px;
    cursor: pointer;
    white-space: nowrap;
    transition: 0.2s;
}

.section-more:hover {
    color: var(--primary-light);
}


/* ========================================
   6. 직업 카드
======================================== */

.job-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 14px;
}

.job-card {
    min-height: 130px;
    padding: 18px 10px;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;

    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--bg-secondary);
    color: var(--text);

    transition: 0.2s;
}

.job-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
    background: var(--card-hover);
}

.job-symbol {
    width: 45px;
    height: 45px;
    margin-bottom: 3px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 14px;
    font-size: 25px;
}

.warrior {
    color: #ff8888;
    background: rgba(255, 100, 100, 0.12);
}

.magician {
    color: #b49aff;
    background: rgba(155, 116, 255, 0.12);
}

.archer {
    color: #83dca5;
    background: rgba(83, 214, 140, 0.12);
}

.thief {
    color: #a8baff;
    background: rgba(108, 140, 255, 0.12);
}

.pirate {
    color: #f4c16d;
    background: rgba(245, 193, 109, 0.12);
}

.job-card strong {
    font-size: 13px;
}

.job-card small {
    color: var(--text-muted);
    font-size: 8px;
    letter-spacing: 1px;
}


/* ========================================
   7. 사냥터 테이블
======================================== */

.table-wrapper {
    overflow-x: auto;
    border: 1px solid var(--border);
    border-radius: var(--radius);
}

.data-table {
    width: 100%;
    min-width: 680px;
    border-collapse: collapse;
    text-align: left;
}

.data-table th {
    padding: 15px 17px;
    background: #19243a;

    color: var(--text-secondary);
    font-size: 10px;
    font-weight: 600;
    white-space: nowrap;
}

.data-table td {
    padding: 15px 17px;
    border-top: 1px solid var(--border);

    color: #c5d0e5;
    font-size: 11px;
}

.data-table tbody tr {
    background: var(--bg-secondary);
    transition: 0.2s;
}

.data-table tbody tr:hover {
    background: var(--card-hover);
}

.data-table td strong {
    display: block;
    color: var(--text);
    font-size: 12px;
}

.data-table td small {
    display: block;
    margin-top: 3px;
    color: var(--text-muted);
    font-size: 9px;
}

.rank {
    width: 28px;
    height: 28px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    border-radius: 8px;
    background: #25324b;
    color: #d2dbee;
    font-size: 11px;
    font-weight: 800;
}

.rank-gold {
    color: #f5ce78;
    background: rgba(245, 199, 107, 0.13);
}

.rank-silver {
    color: #c7d4e9;
}

.rank-bronze {
    color: #d99a6e;
}

.highlight-number {
    color: var(--green) !important;
    font-weight: 800;
}

.popularity {
    padding: 4px 8px;
    border-radius: 5px;
    background: rgba(108, 140, 255, 0.13);
    color: var(--primary-light);
    font-size: 9px;
    font-weight: 800;
}


/* ========================================
   8. 사냥 계산기 배너
======================================== */

.calculator-banner {
    min-height: 125px;
    margin-top: 35px;
    padding: 25px 30px;

    display: flex;
    align-items: center;
    gap: 22px;

    border: 1px solid #3d4677;
    border-radius: var(--radius);

    background:
        radial-gradient(circle at 90% 20%, rgba(136, 118, 255, 0.2), transparent 30%),
        linear-gradient(100deg, #242d57, #1a2343);
}

.calculator-icon {
    width: 58px;
    height: 58px;
    flex-shrink: 0;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 16px;
    background: rgba(143, 154, 255, 0.14);
    color: var(--gold);
    font-size: 28px;
}

.calculator-text {
    flex: 1;
}

.calculator-text > span {
    color: var(--primary-light);
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 1.5px;
}

.calculator-text h2 {
    margin-top: 3px;
    font-size: 17px;
}

.calculator-text p {
    margin-top: 3px;
    color: var(--text-secondary);
    font-size: 10px;
}

.calculator-button {
    padding: 12px 17px;
    border: 1px solid rgba(177, 190, 255, 0.35);
    border-radius: 8px;

    background: rgba(108, 140, 255, 0.16);
    color: white;
    font-size: 11px;
    font-weight: 700;

    transition: 0.2s;
}

.calculator-button:hover {
    background: var(--primary);
    border-color: var(--primary);
}


/* ========================================
   9. 하단 2열 레이아웃
======================================== */

.bottom-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
    margin-top: 15px;
}

.bottom-grid .content-section {
    min-width: 0;
    margin-top: 40px;
}

.compact-heading {
    align-items: center;
}


/* ========================================
   10. 최신 게시글
======================================== */

.post-list,
.market-list {
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--bg-secondary);
}

.post-item {
    min-height: 74px;
    padding: 12px 14px;

    display: flex;
    align-items: center;
    gap: 12px;

    border-bottom: 1px solid var(--border);
    transition: 0.2s;
}

.post-item:last-child,
.market-item:last-child {
    border-bottom: none;
}

.post-item:hover,
.market-item:hover {
    background: var(--card-hover);
}

.post-category {
    min-width: 60px;
    padding: 5px 7px;
    border-radius: 5px;
    text-align: center;
    font-size: 9px;
    font-weight: 700;
}

.category-guide {
    color: #a7b9ff;
    background: rgba(108, 140, 255, 0.13);
}

.category-free {
    color: #f4c16d;
    background: rgba(245, 193, 109, 0.12);
}

.category-tip {
    color: #78dcb2;
    background: rgba(91, 214, 160, 0.12);
}

.post-info {
    min-width: 0;
    flex: 1;
}

.post-info strong {
    display: block;
    overflow: hidden;
    color: var(--text);
    font-size: 11px;
    font-weight: 600;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.post-info span {
    display: block;
    margin-top: 5px;
    color: var(--text-muted);
    font-size: 9px;
}

.post-comments {
    flex-shrink: 0;
    color: var(--text-muted);
    font-size: 9px;
}


/* ========================================
   11. 쩔 시세
======================================== */

.market-item {
    min-height: 74px;
    padding: 12px 14px;

    display: flex;
    align-items: center;
    gap: 12px;

    border-bottom: 1px solid var(--border);
    transition: 0.2s;
}

.market-type {
    min-width: 48px;
    padding: 6px 5px;
    border-radius: 6px;

    background: rgba(108, 140, 255, 0.13);
    color: var(--primary-light);

    text-align: center;
    font-size: 10px;
    font-weight: 800;
}

.type-attack {
    background: rgba(245, 193, 109, 0.12);
    color: #f5c76b;
}

.type-sleep {
    background: rgba(175, 138, 255, 0.13);
    color: #b89aff;
}

.market-info {
    min-width: 0;
    flex: 1;
}

.market-info strong {
    display: block;
    color: var(--text);
    font-size: 11px;
}

.market-info span {
    display: block;
    margin-top: 4px;
    color: var(--text-muted);
    font-size: 9px;
}

.market-price {
    flex-shrink: 0;
    text-align: right;
}

.market-price strong {
    display: block;
    color: var(--gold);
    font-size: 13px;
}

.market-price small {
    color: var(--text-muted);
    font-size: 9px;
}

.market-notice {
    margin-top: 10px;
    color: var(--text-muted);
    font-size: 9px;
}


/* ========================================
   12. 인기 육성 가이드
======================================== */

.guide-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 17px;
}

.guide-card {
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--bg-secondary);
    transition: 0.2s;
}

.guide-card:hover {
    transform: translateY(-4px);
    border-color: #536baf;
}

.guide-card-top {
    height: 125px;
    padding: 17px 20px;

    display: flex;
    align-items: center;
    justify-content: space-between;
}

.guide-card-top span {
    color: rgba(255, 255, 255, 0.7);
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 1px;
}

.guide-card-top strong {
    color: rgba(255, 255, 255, 0.9);
    font-size: 45px;
}

.guide-bg-blue {
    background: linear-gradient(135deg, #365e9c, #263a68);
}

.guide-bg-purple {
    background: linear-gradient(135deg, #7353ad, #3e356f);
}

.guide-bg-orange {
    background: linear-gradient(135deg, #ad7143, #6a473b);
}

.guide-card-content {
    padding: 17px;
}

.guide-tag {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 5px;

    background: rgba(108, 140, 255, 0.12);
    color: var(--primary-light);
    font-size: 9px;
    font-weight: 700;
}

.guide-card-content h3 {
    margin-top: 10px;
    font-size: 13px;
}

.guide-card-content p {
    min-height: 35px;
    margin-top: 7px;
    color: var(--text-muted);
    font-size: 10px;
    line-height: 1.7;
}

.guide-meta {
    margin-top: 13px;
    padding-top: 11px;

    display: flex;
    justify-content: space-between;

    border-top: 1px solid var(--border);
    color: var(--text-muted);
    font-size: 9px;
}


/* ========================================
   13. 푸터
======================================== */

.footer {
    margin-top: 80px;
    border-top: 1px solid var(--border);
    background: #0a0e19;
}

.footer-inner {
    max-width: 1240px;
    margin: 0 auto;
    padding: 35px 24px;

    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.footer-logo {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.footer-logo strong {
    font-size: 16px;
}

.footer-logo span {
    color: var(--text-muted);
    font-size: 8px;
    letter-spacing: 2px;
}

.footer-inner p {
    margin-top: 15px;
    color: var(--text-secondary);
    font-size: 10px;
}

.footer-inner small {
    margin-top: 8px;
    color: var(--text-muted);
    font-size: 9px;
}

.footer-inner .copyright {
    margin-top: 15px;
    color: #47536c;
}


/* ========================================
   14. 검색 결과 표시
======================================== */

.search-highlight {
    outline: 1px solid var(--primary);
    background: rgba(108, 140, 255, 0.08) !important;
}

.no-search-result {
    padding: 25px;
    color: var(--text-secondary);
    text-align: center;
    font-size: 12px;
}


/* ========================================
   15. 반응형 - 태블릿
======================================== */

@media (max-width: 1000px) {

    .header-inner {
        gap: 20px;
    }

    .main-nav {
        gap: 15px;
    }

    .nav-link {
        font-size: 11px;
    }

    .hero-section {
        padding: 45px;
    }

    .hero-decoration {
        opacity: 0.55;
    }

    .stats-section {
        grid-template-columns: repeat(2, 1fr);
    }

    .bottom-grid {
        grid-template-columns: 1fr;
        gap: 5px;
    }

}


/* ========================================
   16. 반응형 - 모바일
======================================== */

@media (max-width: 650px) {

    .header {
        height: auto;
        position: relative;
    }

    .header-inner {
        min-height: 68px;
        padding: 12px 17px;
        flex-wrap: wrap;
        gap: 12px;
    }

    .logo-icon {
        width: 35px;
        height: 35px;
        font-size: 19px;
    }

    .logo-text strong {
        font-size: 14px;
    }

    .main-nav {
        width: 100%;
        padding: 8px 0 4px;
        overflow-x: auto;
        gap: 22px;
    }

    .nav-link {
        flex-shrink: 0;
        font-size: 11px;
    }

    .server-status {
        font-size: 8px;
    }

    main {
        padding: 0 15px;
    }

    .hero-section {
        min-height: 330px;
        margin-top: 17px;
        padding: 32px 22px;
    }

    .hero-content {
        width: 100%;
    }

    .hero-content h1 {
        font-size: 27px;
    }

    .hero-decoration {
        opacity: 0.13;
        width: 100%;
    }

    .hero-level-card {
        right: 10px;
    }

    .search-box {
        height: 49px;
    }

    .search-button {
        padding: 0 15px;
    }

    .search-box input {
        font-size: 10px;
    }

    .search-keywords {
        gap: 6px;
    }

    .stats-section {
        gap: 9px;
        margin-top: 15px;
    }

    .stat-card {
        min-height: 80px;
        padding: 12px;
        gap: 9px;
    }

    .stat-icon {
        width: 34px;
        height: 34px;
        font-size: 16px;
    }

    .stat-label {
        font-size: 9px;
    }

    .stat-card strong {
        font-size: 17px;
    }

    .content-section {
        margin-top: 40px;
    }

    .section-heading h2 {
        font-size: 19px;
    }

    .section-heading p {
        font-size: 10px;
    }

    .job-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 9px;
    }

    .job-card {
        min-height: 110px;
    }

    .calculator-banner {
        padding: 20px 15px;
        flex-wrap: wrap;
        gap: 12px;
    }

    .calculator-icon {
        width: 45px;
        height: 45px;
    }

    .calculator-text {
        min-width: 0;
    }

    .calculator-text h2 {
        font-size: 14px;
    }

    .calculator-text p {
        font-size: 9px;
    }

    .calculator-button {
        width: 100%;
    }

    .bottom-grid {
        gap: 0;
    }

    .bottom-grid .content-section {
        margin-top: 35px;
    }

    .post-item,
    .market-item {
        padding: 12px 10px;
        gap: 8px;
    }

    .post-category {
        min-width: 52px;
        font-size: 8px;
    }

    .post-info strong {
        font-size: 10px;
    }

    .post-comments {
        font-size: 8px;
    }

    .guide-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .guide-card-top {
        height: 95px;
    }

    .guide-card-content p {
        min-height: auto;
    }

    .footer {
        margin-top: 55px;
    }

}
