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

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

html, body {
    width: 100%;
    min-height: 100%;
    overflow-x: hidden;
    overflow-y: auto;
}

body {
    font-family: 'Noto Sans KR', sans-serif;
    font-weight: 400;
    background: #0a0118;
    color: #e0d8ff;
    line-height: 1.8;
    font-size: 1rem;
}

/* ===== HEADER ===== */
header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(10, 1, 24, 0.96);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(155, 92, 246, 0.18);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.85rem 2rem;
    gap: 1rem;
}

.site-logo {
    font-family: 'Black Han Sans', 'Noto Sans KR', sans-serif;
    font-size: 1.1rem;
    color: #c77dff;
    text-decoration: none;
    letter-spacing: 0.04em;
    flex-shrink: 0;
    white-space: nowrap;
}

header nav {
    display: flex;
    gap: 1.4rem;
    flex-wrap: wrap;
    align-items: center;
}

header nav a {
    color: rgba(255, 255, 255, 0.55);
    text-decoration: none;
    font-size: 0.88rem;
    transition: color 0.2s;
    white-space: nowrap;
}

header nav a:hover,
header nav a.active { color: #c77dff; }

/* ===== HERO BANNER ===== */
.page-hero {
    background: linear-gradient(135deg, rgba(155, 92, 246, 0.08) 0%, rgba(58, 0, 104, 0.12) 100%);
    border-bottom: 1px solid rgba(155, 92, 246, 0.15);
    padding: 3.5rem 2rem 2.5rem;
    text-align: center;
}

.page-hero .breadcrumb {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.28);
    margin-bottom: 1.2rem;
}

.page-hero .breadcrumb a {
    color: rgba(200, 160, 255, 0.55);
    text-decoration: none;
}

.page-hero .breadcrumb a:hover { color: #c77dff; }

.page-hero h1 {
    font-family: 'Black Han Sans', 'Noto Sans KR', sans-serif;
    font-size: clamp(1.8rem, 5vw, 2.8rem);
    color: #fff;
    line-height: 1.3;
    margin-bottom: 0.8rem;
    text-shadow: 0 0 50px rgba(155, 92, 246, 0.5);
}

.page-hero .hero-desc {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.5);
    max-width: 560px;
    margin: 0 auto;
    line-height: 1.8;
}

/* ===== MAIN CONTENT ===== */
main {
    max-width: 820px;
    margin: 0 auto;
    padding: 3rem 1.5rem 5rem;
}

/* ===== TYPOGRAPHY ===== */
h2 {
    font-family: 'Black Han Sans', 'Noto Sans KR', sans-serif;
    font-size: clamp(1.3rem, 3.5vw, 1.7rem);
    color: #c77dff;
    margin: 3rem 0 1.1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid rgba(155, 92, 246, 0.2);
}

h3 {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.88);
    margin: 2rem 0 0.7rem;
    font-weight: 700;
}

h4 {
    font-size: 0.97rem;
    color: rgba(200, 160, 255, 0.75);
    margin: 1.4rem 0 0.5rem;
    font-weight: 500;
    letter-spacing: 0.04em;
}

p {
    color: rgba(255, 255, 255, 0.68);
    margin-bottom: 1.2rem;
    font-size: 0.97rem;
    line-height: 1.95;
}

a {
    color: #c77dff;
    text-decoration: none;
}

a:hover { text-decoration: underline; }

ul, ol {
    margin: 0.5rem 0 1.3rem 1.6rem;
    color: rgba(255, 255, 255, 0.68);
}

li {
    margin-bottom: 0.55rem;
    font-size: 0.97rem;
    line-height: 1.85;
}

strong {
    color: rgba(255, 255, 255, 0.88);
    font-weight: 700;
}

em {
    color: #c77dff;
    font-style: normal;
}

/* ===== CALLOUT / INFO BOXES ===== */
.info-box {
    background: rgba(155, 92, 246, 0.07);
    border: 1px solid rgba(155, 92, 246, 0.22);
    border-left: 3px solid #9b5cf6;
    border-radius: 10px;
    padding: 1.3rem 1.5rem;
    margin: 1.8rem 0;
}

.info-box p { margin-bottom: 0; color: rgba(220, 200, 255, 0.75); }

.warning-box {
    background: rgba(239, 68, 68, 0.06);
    border: 1px solid rgba(239, 68, 68, 0.2);
    border-left: 3px solid #ef4444;
    border-radius: 10px;
    padding: 1.3rem 1.5rem;
    margin: 1.8rem 0;
}

.warning-box p { margin-bottom: 0; color: rgba(255, 200, 200, 0.75); }

/* ===== DIVIDER ===== */
.section-divider {
    border: none;
    border-top: 1px solid rgba(155, 92, 246, 0.12);
    margin: 3rem 0;
}

/* ===== DATE / META ===== */
.meta-info {
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.28);
    margin-bottom: 2.5rem;
    display: flex;
    gap: 1.2rem;
    flex-wrap: wrap;
}

/* ===== TYPE CARDS ===== */
.type-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1rem;
    margin: 1.8rem 0;
}

.type-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(155, 92, 246, 0.18);
    border-radius: 14px;
    padding: 1.4rem 1.3rem;
    transition: border-color 0.25s;
}

.type-card:hover { border-color: rgba(155, 92, 246, 0.45); }

.type-card .type-emoji {
    font-size: 1.8rem;
    display: block;
    margin-bottom: 0.7rem;
}

.type-card h3 {
    font-size: 0.95rem;
    color: #c77dff;
    margin: 0 0 0.5rem;
}

.type-card p {
    font-size: 0.88rem;
    margin-bottom: 0;
    color: rgba(255, 255, 255, 0.55);
}

/* ===== FAQ ===== */
.faq-item {
    border-bottom: 1px solid rgba(155, 92, 246, 0.1);
    padding: 1.2rem 0;
}

.faq-item:last-child { border-bottom: none; }

.faq-item h3 {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.82);
    margin: 0 0 0.6rem;
    font-weight: 500;
    cursor: default;
}

.faq-item p { margin-bottom: 0; font-size: 0.94rem; }

/* ===== STAT CHIPS ===== */
.stat-row {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin: 1.5rem 0;
}

.stat-chip {
    background: rgba(155, 92, 246, 0.08);
    border: 1px solid rgba(155, 92, 246, 0.2);
    border-radius: 8px;
    padding: 0.7rem 1.1rem;
    text-align: center;
    flex: 1;
    min-width: 110px;
}

.stat-chip .stat-num {
    display: block;
    font-family: 'Black Han Sans', sans-serif;
    font-size: 1.5rem;
    color: #c77dff;
}

.stat-chip .stat-label {
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.4);
}

/* ===== CONTACT FORM ===== */
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
    margin: 1.8rem 0;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
}

.form-group label {
    font-size: 0.88rem;
    color: rgba(255, 255, 255, 0.55);
    font-weight: 500;
}

.form-group input,
.form-group textarea,
.form-group select {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(155, 92, 246, 0.25);
    border-radius: 10px;
    padding: 0.85rem 1rem;
    color: #fff;
    font-family: 'Noto Sans KR', sans-serif;
    font-size: 0.95rem;
    transition: border-color 0.25s, background 0.25s;
    width: 100%;
    outline: none;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    border-color: rgba(199, 125, 255, 0.6);
    background: rgba(255, 255, 255, 0.07);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: rgba(255, 255, 255, 0.22);
}

.form-group textarea {
    min-height: 150px;
    resize: vertical;
    line-height: 1.7;
}

.form-group select option {
    background: #1a0d35;
    color: #fff;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.submit-btn {
    padding: 0.95rem 2.2rem;
    background: linear-gradient(135deg, #9b5cf6, #c77dff);
    border: none;
    border-radius: 10px;
    color: #fff;
    font-family: 'Noto Sans KR', sans-serif;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
    letter-spacing: 0.03em;
    align-self: flex-start;
    min-width: 160px;
}

.submit-btn:hover {
    background: linear-gradient(135deg, #8b4fe0, #b56aee);
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(155, 92, 246, 0.4);
}

.form-notice {
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.3);
}

/* ===== CTA BUTTON ===== */
.cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.95rem 2rem;
    background: transparent;
    border: 1px solid rgba(200, 160, 255, 0.4);
    border-radius: 50px;
    color: #c77dff;
    font-size: 0.97rem;
    text-decoration: none;
    transition: all 0.35s;
    margin-top: 0.5rem;
}

.cta-btn:hover {
    background: rgba(200, 160, 255, 0.08);
    border-color: rgba(200, 160, 255, 0.65);
    text-decoration: none;
    box-shadow: 0 0 28px rgba(200, 160, 255, 0.18);
}

.cta-btn.filled {
    background: linear-gradient(135deg, #9b5cf6, #c77dff);
    border-color: transparent;
    color: #fff;
}

.cta-btn.filled:hover {
    background: linear-gradient(135deg, #8b4fe0, #b56aee);
    box-shadow: 0 8px 28px rgba(155, 92, 246, 0.4);
}

/* ===== TABLE ===== */
.data-table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
    font-size: 0.92rem;
}

.data-table th,
.data-table td {
    padding: 0.85rem 1rem;
    text-align: left;
    border-bottom: 1px solid rgba(155, 92, 246, 0.1);
}

.data-table th {
    color: rgba(200, 160, 255, 0.75);
    font-weight: 500;
    font-size: 0.85rem;
    letter-spacing: 0.04em;
}

.data-table td {
    color: rgba(255, 255, 255, 0.62);
}

/* ===== ARTICLE CARD ===== */
.article-list {
    display: flex;
    flex-direction: column;
    gap: 1.4rem;
    margin: 2rem 0;
}

.article-card {
    background: rgba(255, 255, 255, 0.025);
    border: 1px solid rgba(155, 92, 246, 0.15);
    border-radius: 14px;
    padding: 1.6rem;
    transition: border-color 0.25s, background 0.25s;
}

.article-card:hover {
    border-color: rgba(155, 92, 246, 0.4);
    background: rgba(155, 92, 246, 0.04);
}

.article-card .tag {
    display: inline-block;
    font-size: 0.72rem;
    color: #9b5cf6;
    background: rgba(155, 92, 246, 0.1);
    border: 1px solid rgba(155, 92, 246, 0.25);
    border-radius: 20px;
    padding: 0.2rem 0.7rem;
    margin-bottom: 0.75rem;
    letter-spacing: 0.04em;
}

.article-card h2 {
    font-size: 1.2rem;
    color: #fff;
    margin: 0 0 0.6rem;
    padding: 0;
    border: none;
}

.article-card p {
    font-size: 0.9rem;
    margin-bottom: 1rem;
    color: rgba(255, 255, 255, 0.52);
}

.article-card .read-more {
    font-size: 0.85rem;
    color: #c77dff;
}

/* ===== ARTICLE FULL ===== */
.article-header {
    margin-bottom: 2.5rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid rgba(155, 92, 246, 0.15);
}

.article-body p {
    font-size: 1rem;
    line-height: 2;
    color: rgba(255, 255, 255, 0.72);
}

.article-body h2 {
    margin-top: 3.5rem;
}

blockquote {
    margin: 2rem 0;
    padding: 1.2rem 1.5rem;
    background: rgba(155, 92, 246, 0.06);
    border-left: 3px solid #9b5cf6;
    border-radius: 0 10px 10px 0;
    font-size: 1.05rem;
    color: rgba(220, 200, 255, 0.72);
    font-style: italic;
    line-height: 1.9;
}

/* ===== FOOTER ===== */
footer {
    background: rgba(0, 0, 0, 0.45);
    border-top: 1px solid rgba(155, 92, 246, 0.12);
    padding: 2.5rem 2rem;
    text-align: center;
}

.footer-inner {
    max-width: 820px;
    margin: 0 auto;
}

.footer-brand {
    font-family: 'Black Han Sans', sans-serif;
    font-size: 1rem;
    color: rgba(200, 160, 255, 0.5);
    margin-bottom: 0.8rem;
    display: block;
}

.footer-desc {
    font-size: 0.84rem;
    color: rgba(255, 255, 255, 0.25);
    margin-bottom: 1.2rem;
    line-height: 1.7;
}

footer nav {
    display: flex;
    gap: 1.2rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 1.2rem;
}

footer nav a {
    color: rgba(200, 160, 255, 0.45);
    text-decoration: none;
    font-size: 0.84rem;
    transition: color 0.2s;
}

footer nav a:hover { color: #c77dff; }

.footer-copy {
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.18);
    margin: 0;
}

/* ===== BLOG INDEX GRID ===== */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.4rem;
    margin: 2rem 0;
}

.blog-card {
    background: rgba(255, 255, 255, 0.025);
    border: 1px solid rgba(155, 92, 246, 0.15);
    border-radius: 16px;
    padding: 1.6rem;
    transition: border-color 0.25s, transform 0.25s, background 0.25s;
    display: flex;
    flex-direction: column;
    gap: 0.7rem;
    text-decoration: none;
    color: inherit;
}

.blog-card:hover {
    border-color: rgba(155, 92, 246, 0.45);
    background: rgba(155, 92, 246, 0.04);
    transform: translateY(-3px);
    text-decoration: none;
}

.blog-card .card-category {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.73rem;
    color: #9b5cf6;
    background: rgba(155, 92, 246, 0.1);
    border: 1px solid rgba(155, 92, 246, 0.25);
    border-radius: 20px;
    padding: 0.2rem 0.75rem;
    letter-spacing: 0.04em;
    width: fit-content;
}

.blog-card h2 {
    font-family: 'Black Han Sans', 'Noto Sans KR', sans-serif;
    font-size: 1.1rem;
    color: #fff;
    line-height: 1.45;
    margin: 0;
    padding: 0;
    border: none;
}

.blog-card p {
    font-size: 0.88rem;
    color: rgba(255, 255, 255, 0.48);
    margin: 0;
    line-height: 1.75;
    flex: 1;
}

.blog-card .card-meta {
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.25);
    display: flex;
    gap: 0.8rem;
    margin-top: auto;
    padding-top: 0.6rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.blog-card.featured {
    grid-column: 1 / -1;
    background: linear-gradient(135deg, rgba(155, 92, 246, 0.08) 0%, rgba(58, 0, 104, 0.1) 100%);
    border-color: rgba(155, 92, 246, 0.3);
    flex-direction: row;
    align-items: flex-start;
    gap: 2rem;
}

.blog-card.featured .card-body { flex: 1; }

.blog-card.featured h2 {
    font-size: 1.35rem;
    margin-bottom: 0.5rem;
}

.blog-card.featured p { font-size: 0.94rem; }

/* ===== CATEGORY TABS ===== */
.category-tabs {
    display: flex;
    gap: 0.6rem;
    flex-wrap: wrap;
    margin-bottom: 1.5rem;
}

.cat-tab {
    padding: 0.4rem 1rem;
    border-radius: 20px;
    border: 1px solid rgba(155, 92, 246, 0.2);
    background: transparent;
    color: rgba(255, 255, 255, 0.45);
    font-size: 0.85rem;
    font-family: 'Noto Sans KR', sans-serif;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.2s;
}

.cat-tab:hover,
.cat-tab.active {
    background: rgba(155, 92, 246, 0.12);
    border-color: rgba(155, 92, 246, 0.5);
    color: #c77dff;
    text-decoration: none;
}

/* ===== POST NAVIGATION ===== */
.post-nav {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(155, 92, 246, 0.12);
}

.post-nav-item {
    background: rgba(255, 255, 255, 0.025);
    border: 1px solid rgba(155, 92, 246, 0.12);
    border-radius: 12px;
    padding: 1rem 1.2rem;
    text-decoration: none;
    transition: border-color 0.2s, background 0.2s;
}

.post-nav-item:hover {
    border-color: rgba(155, 92, 246, 0.35);
    background: rgba(155, 92, 246, 0.04);
    text-decoration: none;
}

.post-nav-item .nav-label {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.28);
    display: block;
    margin-bottom: 0.3rem;
}

.post-nav-item .nav-title {
    font-size: 0.92rem;
    color: rgba(200, 160, 255, 0.75);
    line-height: 1.4;
}

.post-nav-item.next { text-align: right; }

/* ===== TIMELINE (역사 연표) ===== */
.timeline {
    position: relative;
    padding-left: 2rem;
    margin: 2rem 0;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 0.45rem;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, #9b5cf6, rgba(155, 92, 246, 0.1));
}

.timeline-item {
    position: relative;
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid rgba(155, 92, 246, 0.08);
}

.timeline-item:last-child { border-bottom: none; margin-bottom: 0; }

.timeline-item::before {
    content: '';
    position: absolute;
    left: -1.75rem;
    top: 0.4rem;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #9b5cf6;
    box-shadow: 0 0 10px rgba(155, 92, 246, 0.6);
}

.timeline-year {
    font-family: 'Black Han Sans', sans-serif;
    font-size: 0.9rem;
    color: #9b5cf6;
    letter-spacing: 0.06em;
    margin-bottom: 0.4rem;
    display: block;
}

.timeline-item h3 {
    margin-top: 0;
    color: rgba(255, 255, 255, 0.88);
}

/* ===== 밸런스게임 질문 카드 ===== */
.question-grid {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin: 1.8rem 0;
}

.q-card {
    background: rgba(255, 255, 255, 0.025);
    border: 1px solid rgba(155, 92, 246, 0.14);
    border-radius: 14px;
    padding: 1.4rem 1.5rem;
    transition: border-color 0.2s;
}

.q-card:hover { border-color: rgba(155, 92, 246, 0.35); }

.q-card .q-num {
    font-size: 0.72rem;
    color: rgba(155, 92, 246, 0.6);
    letter-spacing: 0.1em;
    font-weight: 500;
    margin-bottom: 0.5rem;
    display: block;
}

.q-card .q-text {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.82);
    line-height: 1.7;
    font-weight: 500;
    margin-bottom: 0.9rem;
}

.q-options {
    display: flex;
    gap: 0.6rem;
    flex-wrap: wrap;
}

.q-opt {
    flex: 1;
    min-width: 140px;
    padding: 0.6rem 0.9rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    font-size: 0.88rem;
    color: rgba(255, 255, 255, 0.58);
    text-align: center;
    line-height: 1.4;
}

.q-opt.a { border-color: rgba(99, 102, 241, 0.2); }
.q-opt.b { border-color: rgba(236, 72, 153, 0.2); }

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar {
    width: 5px;
}
::-webkit-scrollbar-track { background: rgba(255, 255, 255, 0.02); }
::-webkit-scrollbar-thumb { background: rgba(155, 92, 246, 0.3); border-radius: 4px; }

/* ===== MOBILE ===== */
@media (max-width: 640px) {
    header { padding: 0.75rem 1rem; }
    .page-hero { padding: 2.5rem 1rem 2rem; }
    main { padding: 2rem 1rem 4rem; }
    .form-row { grid-template-columns: 1fr; }
    .submit-btn { align-self: stretch; text-align: center; }
    .stat-row { gap: 0.7rem; }
    .type-grid { grid-template-columns: 1fr; }
}
