/* ══════════════════════════════════════════════════
   NTT × 명리 8재능 진단 · 공용 스타일 시스템
   ══════════════════════════════════════════════════ */

:root {
    --bg: #000000;
    --bg-image: none;
    --bg-dots: none;
    --panel: rgba(16, 14, 12, 0.4);
    --panel-glass: rgba(255, 255, 255, 0.03);
    --border: rgba(255, 255, 255, 0.08);
    --border-bright: rgba(255, 255, 255, 0.15);
    --text: #ffffff;
    --muted: #9a9080;
    --gold: #f59e0b;
    --gold-glow: rgba(245, 158, 11, 0.2);
    --accent: #ef4444;
    --accent-glow: rgba(239, 68, 68, 0.2);

    --talent-L: #f87171;
    --talent-N: #f472b6;
    --talent-R: #60a5fa;
    --talent-C: #c084fc;
    --talent-D: #22d3ee;
    --talent-M: #34d399;
    --talent-S: #fbbf24;
    --talent-A: #fb923c;

    --shadow-lg: 0 20px 50px rgba(0, 0, 0, 0.6);
    --glass-blur: blur(24px);
    --glass-border: 1px solid rgba(255, 255, 255, 0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

html,
body {
    height: 100%;
    font-family: "Noto Sans KR", "Poppins", "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    scroll-behavior: smooth;
}

body {
    display: flex;
    flex-direction: column;
}

/* ─────────────────────────────────────────────────
   ANIMATIONS
   ───────────────────────────────────────────────── */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes glowPulse {
    0% {
        box-shadow: 0 0 5px var(--gold-glow);
    }

    50% {
        box-shadow: 0 0 20px var(--gold-glow);
    }

    100% {
        box-shadow: 0 0 5px var(--gold-glow);
    }
}

.fade-in {
    animation: fadeIn 0.8s ease-out forwards;
}

/* ─────────────────────────────────────────────────
   HEADER
   ───────────────────────────────────────────────── */
.hdr {
    flex-shrink: 0;
    background: rgba(0, 0, 0, 0.88);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    padding: 16px 32px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 100;
}

.hdr-title {
    font-size: 20px;
    font-weight: 900;
    letter-spacing: -0.5px;
    background: linear-gradient(90deg, var(--gold), #fff, var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: flex;
    align-items: center;
    gap: 8px;
}

.hdr-sub {
    font-size: 10px;
    color: var(--muted);
    margin-top: 2px;
    letter-spacing: 2px;
    text-transform: uppercase;
    font-weight: 500;
}

/* ─────────────────────────────────────────────────
   MAIN & LAYOUT
   ───────────────────────────────────────────────── */
main {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 0;
}

.container {
    max-width: 1140px;
    margin: 0 auto;
    padding: 60px 24px;
    width: 100%;
}

.glass-card {
    background: var(--panel-glass);
    backdrop-filter: var(--glass);
    -webkit-backdrop-filter: var(--glass);
    border: 1px solid var(--border);
    border-radius: 20px;
    box-shadow: var(--shadow);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.glass-card:hover {
    border-color: var(--border-bright);
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
}

/* ─────────────────────────────────────────────────
   BUTTONS
   ───────────────────────────────────────────────── */
.btn {
    padding: 14px 36px;
    border: none;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
    font-family: inherit;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: linear-gradient(135deg, var(--gold), var(--accent));
    color: #000;
    box-shadow: 0 8px 25px var(--gold-glow);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px var(--gold-glow);
    filter: brightness(1.1);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text);
    border: 1px solid var(--border);
    backdrop-filter: blur(5px);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--gold);
}

/* ─────────────────────────────────────────────────
   FORMS
   ───────────────────────────────────────────────── */
.input-field {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 12px 16px;
    color: var(--text);
    font-size: 15px;
    font-family: inherit;
    outline: none;
    transition: all 0.2s;
    width: 100%;
}

.input-field:focus {
    border-color: var(--gold);
    background: rgba(255, 255, 255, 0.07);
    box-shadow: 0 0 0 4px var(--gold-glow);
}

/* ─────────────────────────────────────────────────
   SELECT ELEMENT STYLING
   ───────────────────────────────────────────────── */
select.input-field {
    appearance: none;
    background-color: rgb(10, 8, 6);
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23f59e0b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 20px;
    padding-right: 40px;
}

select.input-field option {
    background: var(--bg);
    color: var(--text);
    padding: 12px;
}

select.input-field option:hover {
    background: rgba(245, 158, 11, 0.2);
    color: var(--text);
}

select.input-field option:checked {
    background: linear-gradient(
        rgba(245, 158, 11, 0.3),
        rgba(245, 158, 11, 0.3)
    );
    color: var(--text);
}

/* ─────────────────────────────────────────────────
   SCROLLBAR
   ───────────────────────────────────────────────── */
/* ── Scrollbar ── */
* {
    scrollbar-width: thin;
    scrollbar-color: rgba(240, 192, 96, 0.45) rgba(255, 255, 255, 0.04);
}

::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.04);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, rgba(240,192,96,0.55), rgba(217,119,87,0.45));
    border-radius: 10px;
    border: 1px solid rgba(255,255,255,0.06);
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, rgba(240,192,96,0.85), rgba(217,119,87,0.70));
}

::-webkit-scrollbar-corner {
    background: transparent;
}

/* ─────────────────────────────────────────────────
   UTILITY
   ───────────────────────────────────────────────── */
.text-gradient {
    background: linear-gradient(90deg, var(--gold), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-label {
    font-size: 12px;
    font-weight: 700;
    color: var(--gold);
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 12px;
}

.mt-4 {
    margin-top: 32px;
}

.mb-4 {
    margin-bottom: 32px;
}

/* ─────────────────────────────────────────────────
   RESPONSIVE
   ───────────────────────────────────────────────── */
@media (max-width: 768px) {
    .hdr {
        padding: 12px 20px;
    }

    .hdr-title {
        font-size: 17px;
    }

    .container {
        padding: 40px 20px;
    }

    .btn {
        width: 100%;
        padding: 14px 24px;
    }
}
