/* 모던 디자인 시스템 & 컬러 변수 */
:root {
    --bg-gradient: linear-gradient(135deg, #eef2ff 0%, #f8fafc 50%, #e0f2fe 100%);
    --glass-bg: rgba(255, 255, 255, 0.78);
    --glass-border: rgba(255, 255, 255, 0.9);
    --card-inner: rgba(248, 250, 252, 0.85);
    --text-main: #0f172a;
    --text-sub: #475569;
    --accent-gradient: linear-gradient(135deg, #4f46e5 0%, #06b6d4 100%);
    --accent-color: #4f46e5;
    --shadow-soft: 0 20px 40px -15px rgba(15, 23, 42, 0.08);
    --orb-1: rgba(99, 102, 241, 0.22);
    --orb-2: rgba(6, 182, 212, 0.22);
}

body.dark-mode {
    --bg-gradient: linear-gradient(135deg, #090d16 0%, #111827 50%, #0f172a 100%);
    --glass-bg: rgba(30, 41, 59, 0.68);
    --glass-border: rgba(255, 255, 255, 0.1);
    --card-inner: rgba(15, 23, 42, 0.6);
    --text-main: #f8fafc;
    --text-sub: #94a3b8;
    --accent-gradient: linear-gradient(135deg, #818cf8 0%, #22d3ee 100%);
    --accent-color: #818cf8;
    --shadow-soft: 0 20px 40px -15px rgba(0, 0, 0, 0.5);
    --orb-1: rgba(99, 102, 241, 0.18);
    --orb-2: rgba(34, 211, 238, 0.15);
}

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

body {
    font-family: 'Noto Sans KR', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg-gradient);
    color: var(--text-main);
    min-height: 100vh;
    line-height: 1.65;
    padding: 32px 20px;
    position: relative;
    overflow-x: hidden;
    transition: background 0.4s ease, color 0.3s ease;
}

/* 배경 은은한 오로라 블러 효과 */
.bg-orb {
    position: fixed;
    border-radius: 50%;
    filter: blur(80px);
    z-index: -1;
    pointer-events: none;
}

.orb-1 {
    width: 380px;
    height: 380px;
    background: var(--orb-1);
    top: -80px;
    left: -80px;
}

.orb-2 {
    width: 420px;
    height: 420px;
    background: var(--orb-2);
    bottom: -100px;
    right: -100px;
}

.container {
    max-width: 780px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

/* 글래스모피즘 공통 패널 */
.glass-panel {
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 32px;
    box-shadow: var(--shadow-soft);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.glass-panel:hover {
    transform: translateY(-2px);
}

/* 헤더 */
.glass-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 24px;
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 999px;
    box-shadow: var(--shadow-soft);
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 900;
    font-size: 14px;
    letter-spacing: 1.5px;
    color: var(--text-main);
}

.logo-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--accent-gradient);
    box-shadow: 0 0 10px var(--accent-color);
}

.btn-theme {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border-radius: 999px;
    border: 1px solid var(--glass-border);
    background: var(--card-inner);
    color: var(--text-main);
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-theme:hover {
    transform: scale(1.04);
}

/* 히어로 프로필 카드 */
.hero-card {
    display: flex;
    align-items: center;
    gap: 36px;
}

.avatar-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.avatar-ring {
    padding: 5px;
    border-radius: 50%;
    background: var(--accent-gradient);
    box-shadow: 0 12px 24px rgba(79, 70, 229, 0.25);
}

.profile-img {
    width: 136px;
    height: 136px;
    border-radius: 50%;
    display: block;
    background: #ffffff;
    object-fit: cover;
}

.status-badge {
    font-size: 12px;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 999px;
    background: var(--card-inner);
    border: 1px solid var(--glass-border);
    color: var(--accent-color);
}

.tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 12px;
}

.pill-tag {
    font-size: 12px;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 999px;
    background: rgba(79, 70, 229, 0.1);
    color: var(--accent-color);
}

.hero-info h1 {
    font-size: 32px;
    font-weight: 900;
    line-height: 1.25;
    margin-bottom: 10px;
}

.gradient-text {
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.typing-wrapper {
    font-size: 17px;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 12px;
    min-height: 28px;
}

.typing-text {
    color: var(--accent-color);
}

.cursor {
    animation: blink 0.8s infinite;
    color: var(--accent-color);
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

.intro-desc {
    font-size: 15px;
    color: var(--text-sub);
}

/* 탭 섹션 */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 24px;
}

.section-header h2 {
    font-size: 22px;
    font-weight: 900;
}

.tab-buttons {
    display: flex;
    gap: 6px;
    background: var(--card-inner);
    padding: 5px;
    border-radius: 14px;
}

.tab-btn {
    padding: 8px 16px;
    border: none;
    border-radius: 10px;
    background: transparent;
    color: var(--text-sub);
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.25s ease;
}

.tab-btn.active {
    background: var(--accent-gradient);
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.25);
}

.tab-content {
    display: none;
    animation: fadeIn 0.35s ease;
}

.tab-content.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(6px); }
    to { opacity: 1; transform: translateY(0); }
}

/* 기본 정보 그리드 */
.info-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
}

.info-item {
    background: var(--card-inner);
    padding: 16px 20px;
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.info-label {
    font-size: 12px;
    font-weight: 700;
    color: var(--text-sub);
}

.info-value {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-main);
}

/* 스킬 바 */
.skill-bars {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.skill-top {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 8px;
}

.progress-bg {
    width: 100%;
    height: 10px;
    background: var(--card-inner);
    border-radius: 999px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: var(--accent-gradient);
    border-radius: 999px;
}

/* 타임라인 목표 */
.timeline {
    display: flex;
    flex-direction: column;
    gap: 18px;
    padding-left: 12px;
    border-left: 2px solid var(--accent-color);
}

.timeline-item {
    position: relative;
    padding-left: 18px;
}

.timeline-dot {
    position: absolute;
    left: -19px;
    top: 5px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--accent-gradient);
}

.timeline-body h4 {
    font-size: 16px;
    margin-bottom: 4px;
}

.timeline-body p {
    font-size: 14px;
    color: var(--text-sub);
}

/* O/X 퀴즈 섹션 */
.quiz-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 20px;
}

.quiz-badge {
    display: inline-block;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 1px;
    color: var(--accent-color);
    margin-bottom: 4px;
}

.quiz-header h2 {
    font-size: 22px;
    font-weight: 900;
}

.quiz-progress {
    font-size: 14px;
    font-weight: 900;
    padding: 4px 12px;
    border-radius: 999px;
    background: var(--card-inner);
    color: var(--accent-color);
}

.quiz-box {
    background: var(--card-inner);
    padding: 24px;
    border-radius: 18px;
}

.quiz-question {
    font-size: 17px;
    font-weight: 700;
    margin-bottom: 20px;
}

.quiz-buttons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.ox-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 16px;
    border-radius: 16px;
    border: 2px solid transparent;
    background: var(--glass-bg);
    color: var(--text-main);
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.03);
}

.ox-symbol {
    font-size: 26px;
    font-weight: 900;
}

.btn-o .ox-symbol { color: #10b981; }
.btn-x .ox-symbol { color: #ef4444; }

.ox-label {
    font-size: 13px;
    font-weight: 700;
    color: var(--text-sub);
}

.btn-o:hover {
    border-color: #10b981;
    transform: translateY(-2px);
}

.btn-x:hover {
    border-color: #ef4444;
    transform: translateY(-2px);
}

.quiz-feedback {
    margin-top: 18px;
    padding-top: 16px;
    border-top: 1px solid var(--glass-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}

#quiz-result {
    font-size: 15px;
    font-weight: 700;
}

.btn-next {
    padding: 10px 18px;
    border: none;
    border-radius: 12px;
    background: var(--accent-gradient);
    color: #ffffff;
    font-weight: 700;
    cursor: pointer;
    transition: opacity 0.2s;
}

.btn-next:hover {
    opacity: 0.9;
}

footer {
    text-align: center;
    font-size: 13px;
    color: var(--text-sub);
    padding: 8px 0 16px;
}

/* 모바일 반응형 */
@media (max-width: 640px) {
    .hero-card {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }
    .tag-list {
        justify-content: center;
    }
    .info-grid {
        grid-template-columns: 1fr;
    }
    .glass-panel {
        padding: 24px 20px;
    }
}
