/* ===== ROADMAP GUIDE - Override Styles ===== */
/* Base styles from common/base.css */

:root {
    --bg: #0f0f13;
    --bg-card: #1a1a24;
    --bg-card-hover: #22222e;
    --bg-secondary: #14141c;
    --bg-surface: #14141c;
    --bg-section-alt: #14141c;
    --text: #e8e8ed;
    --text-secondary: #9999aa;
    --text-muted: #66667a;
    --border: #2a2a3a;
    --border-light: #33334a;
    --accent: #8E44AD;
    --accent-dim: #8E44AD20;
    --gradient-1: linear-gradient(135deg, #8E44AD, #3498DB);
}

body {
    font-family: 'Inter', 'Noto Sans KR', -apple-system, sans-serif;
}

/* ===== SUB NAV (role/level selector) ===== */
.sub-nav {
    max-width: 760px;
    margin: 0 auto;
    padding: 0 20px;
}

.role-tabs {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 10px 0 8px;
    flex-wrap: wrap;
}

.role-btn {
    padding: 6px 14px;
    border-radius: 20px;
    border: none;
    background: transparent;
    color: var(--text-muted);
    font-weight: 500;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.2s;
    font-family: inherit;
}

.role-btn.active {
    color: #fff;
    font-weight: 700;
}

.level-tabs {
    display: flex;
    padding: 0 0 12px;
}

.level-tabs-inner {
    display: inline-flex;
    border-radius: 10px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    padding: 3px;
}

.level-btn {
    padding: 7px 18px;
    border-radius: 8px;
    border: none;
    background: transparent;
    color: var(--text-muted);
    font-weight: 500;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.2s;
    font-family: inherit;
    white-space: nowrap;
}

.level-btn.active {
    color: #fff;
    font-weight: 700;
}

/* ===== MAIN CONTENT ===== */
.roadmap-content {
    flex: 1;
    max-width: 760px;
    width: 100%;
    margin: 0 auto;
    padding: 16px 20px 60px;
}

/* ===== SUMMARY CARD ===== */
.summary-card {
    border-radius: 14px;
    padding: 24px 28px;
    margin-bottom: 24px;
    position: relative;
    overflow: hidden;
}

.summary-card .glow {
    position: absolute;
    top: -30px;
    right: -30px;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    filter: blur(40px);
}

.summary-label {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    margin-bottom: 10px;
    opacity: 0.8;
}

.summary-title {
    font-size: 20px;
    font-weight: 800;
    color: var(--text);
    margin-bottom: 10px;
    letter-spacing: -0.5px;
    line-height: 1.3;
}

.summary-desc {
    font-size: 13px;
    line-height: 1.7;
    color: var(--text-secondary);
    position: relative;
}

/* ===== STATS BAR ===== */
.stats-bar {
    display: flex;
    gap: 8px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.stat-chip {
    padding: 8px 14px;
    border-radius: 8px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    font-size: 12px;
    color: var(--text-muted);
}

.stat-chip strong {
    color: var(--text);
    margin-left: 4px;
}

/* ===== TRACK SECTION ===== */
.track-name {
    font-size: 13px;
    font-weight: 700;
    margin: 0 0 12px;
    letter-spacing: -0.2px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.track-name .line {
    height: 1px;
    flex: 1;
    background: var(--border);
    opacity: 0.5;
}

/* ===== CURRICULUM ITEM ===== */
.curriculum-item {
    background: var(--bg-card);
    border-radius: 12px;
    margin-bottom: 10px;
    border: 1px solid var(--border);
    overflow: hidden;
    transition: all 0.2s;
}

.curriculum-item.open {
    border-color: var(--item-accent, var(--border));
}

.curriculum-header {
    padding: 18px 20px;
    cursor: pointer;
    user-select: none;
}

.curriculum-header-inner {
    display: flex;
    align-items: flex-start;
    gap: 14px;
}

.curriculum-num {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-top: 1px;
}

.curriculum-body {
    flex: 1;
    min-width: 0;
}

.curriculum-title-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
}

.curriculum-skill {
    font-weight: 700;
    font-size: 15px;
    line-height: 1.3;
}

.curriculum-toggle {
    font-size: 11px;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 20px;
    flex-shrink: 0;
    transition: all 0.2s;
}

.curriculum-action {
    font-size: 13px;
    color: var(--text-secondary);
    margin-top: 8px;
    line-height: 1.6;
}

.curriculum-how {
    margin-top: 10px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.curriculum-how-badge {
    font-size: 10px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 4px;
    letter-spacing: 0.5px;
}

.curriculum-how-text {
    font-size: 12px;
    font-weight: 500;
}

/* ===== CURRICULUM DETAIL ===== */
.curriculum-detail {
    padding: 0 20px 20px;
    display: none;
}

.curriculum-item.open .curriculum-detail {
    display: block;
}

.curriculum-detail-header {
    font-size: 11px;
    font-weight: 700;
    color: var(--text-muted);
    letter-spacing: 1.5px;
    text-transform: uppercase;
    padding: 16px 0 12px;
}

.curriculum-topic {
    padding: 14px 16px;
    border-radius: 10px;
    margin-bottom: 8px;
}

.curriculum-topic-num {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    font-size: 10px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.curriculum-topic-title {
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.curriculum-topic-desc {
    font-size: 12.5px;
    color: var(--text-secondary);
    line-height: 1.75;
    margin-left: 32px;
}

/* ===== PAGE TABS ===== */
.page-tabs {
    display: flex;
    gap: 2px;
}

.page-btn {
    padding: 7px 16px;
    border-radius: 20px;
    border: none;
    background: transparent;
    color: var(--text-muted);
    font-weight: 500;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.2s;
    font-family: inherit;
}

.page-btn.active {
    background: var(--text);
    color: var(--bg);
    font-weight: 700;
}

/* ===== INSIGHT CARD ===== */
.insight-card {
    border-radius: 14px;
    padding: 20px 24px;
    margin-bottom: 20px;
}

.insight-label {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1px;
    margin-bottom: 12px;
    text-transform: uppercase;
}

.insight-item {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.6;
    display: flex;
    gap: 8px;
    align-items: flex-start;
    margin-bottom: 8px;
}

/* ===== LEVEL CARD ===== */
.level-card {
    background: var(--bg-card);
    border-radius: 14px;
    margin-bottom: 12px;
    border: 1px solid var(--border);
    overflow: hidden;
    transition: all 0.25s;
}

.level-card.open {
    border-color: var(--card-color, var(--border));
}

.level-card-header {
    padding: 20px 24px;
    cursor: pointer;
    user-select: none;
    display: flex;
    align-items: center;
    gap: 16px;
}

.level-card-icon {
    font-size: 28px;
}

.level-card-info {
    flex: 1;
}

.level-card-title {
    font-weight: 700;
    font-size: 16px;
}

.level-card-sub {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 2px;
}

.level-card-toggle {
    font-size: 11px;
    font-weight: 600;
    padding: 4px 12px;
    border-radius: 20px;
    transition: all 0.2s;
}

.level-card-detail {
    padding: 0 24px 24px;
    display: none;
}

.level-card.open .level-card-detail {
    display: block;
}

.detail-section-label {
    font-size: 11px;
    font-weight: 700;
    color: var(--text-muted);
    letter-spacing: 1px;
    margin-bottom: 10px;
    text-transform: uppercase;
}

.trait-tag {
    font-size: 12px;
    padding: 6px 12px;
    border-radius: 8px;
    color: var(--text-secondary);
    line-height: 1.4;
    display: inline-block;
    margin: 0 6px 6px 0;
}

.competency-item {
    padding: 12px 16px;
    border-radius: 10px;
    background: var(--bg-secondary);
    margin-bottom: 8px;
}

.competency-name {
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 4px;
}

.competency-desc {
    font-size: 12px;
    color: var(--text-secondary);
    line-height: 1.6;
}

.growth-item {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    padding: 10px 14px;
    border-radius: 8px;
    background: var(--bg-secondary);
    margin-bottom: 6px;
}

.growth-year {
    font-size: 11px;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 6px;
    white-space: nowrap;
    flex-shrink: 0;
}

.growth-desc {
    font-size: 12.5px;
    color: var(--text-secondary);
    line-height: 1.6;
}

.source-link {
    font-size: 12px;
    text-decoration: none;
    padding: 6px 10px;
    border-radius: 6px;
    display: block;
    margin-bottom: 4px;
    transition: background 0.15s;
}

/* ===== INTERVIEW CARD ===== */
.interview-card {
    background: var(--bg-card);
    border-radius: 14px;
    border: 1px solid var(--border);
    overflow: hidden;
    transition: all 0.2s;
    margin-bottom: 10px;
}

.interview-card.open {
    border-color: var(--card-color, var(--border));
}

.interview-header {
    padding: 16px 20px;
    cursor: pointer;
    user-select: none;
    display: flex;
    align-items: center;
    gap: 14px;
}

.interview-icon {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 14px;
    flex-shrink: 0;
    color: #fff;
}

.interview-info {
    flex: 1;
}

.interview-company {
    font-weight: 700;
    font-size: 14px;
}

.interview-sub {
    font-size: 11px;
    color: var(--text-muted);
    margin-top: 2px;
}

.difficulty-bars {
    display: flex;
    gap: 2px;
    margin-right: 8px;
}

.difficulty-bar {
    width: 6px;
    height: 16px;
    border-radius: 2px;
    background: var(--border);
    transition: all 0.2s;
}

.difficulty-bar.filled {
    background: var(--card-color);
}

.interview-toggle {
    font-size: 11px;
    font-weight: 600;
    padding: 4px 12px;
    border-radius: 20px;
    transition: all 0.2s;
}

.interview-detail {
    padding: 0 20px 20px;
    display: none;
}

.interview-card.open .interview-detail {
    display: block;
}

.interview-process {
    padding: 12px 16px;
    border-radius: 10px;
    background: var(--bg-secondary);
    margin-bottom: 14px;
}

.interview-process-label {
    font-size: 11px;
    font-weight: 700;
    margin-bottom: 6px;
    letter-spacing: 0.5px;
}

.interview-process-text {
    font-size: 13px;
    color: var(--text);
    line-height: 1.6;
    font-weight: 500;
}

.highlight-item {
    padding: 10px 14px;
    border-radius: 8px;
    font-size: 12.5px;
    color: var(--text-secondary);
    line-height: 1.5;
    margin-bottom: 6px;
}

/* ===== TECH TOPICS ===== */
.tech-topics-card {
    background: var(--bg-card);
    border-radius: 14px;
    padding: 24px;
    border: 1px solid var(--border);
    margin-bottom: 28px;
}

.tech-topics-title {
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 20px;
}

.tech-category {
    margin-bottom: 16px;
}

.tech-category-label {
    font-size: 12px;
    font-weight: 700;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.tech-category-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    display: inline-block;
}

.tech-tag {
    font-size: 12px;
    padding: 5px 12px;
    border-radius: 8px;
    color: var(--text-secondary);
    display: inline-block;
    margin: 0 6px 6px 0;
}

/* ===== TAB TOGGLE (reusable) ===== */
.tab-toggle {
    display: flex;
    margin-bottom: 16px;
}

.tab-toggle-inner {
    display: inline-flex;
    border-radius: 10px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    padding: 3px;
}

.tab-btn {
    padding: 7px 16px;
    border-radius: 8px;
    border: none;
    background: transparent;
    color: var(--text-muted);
    font-weight: 500;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.2s;
    font-family: inherit;
    white-space: nowrap;
}

.tab-btn.active {
    color: #fff;
    font-weight: 700;
}

/* ===== INFO BOX ===== */
.info-box {
    font-size: 12px;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 16px;
    padding: 12px 16px;
    background: var(--bg-card);
    border-radius: 10px;
    border: 1px solid var(--border);
}

/* ===== ROADMAP FOOTER ===== */
.roadmap-footer {
    max-width: 760px;
    width: 100%;
    margin: 0 auto;
    padding: 0 20px 40px;
}

.roadmap-footer-inner {
    padding: 14px 20px;
    background: var(--bg-card);
    border-radius: 10px;
    border: 1px solid var(--border);
    font-size: 12px;
    color: var(--text-muted);
    line-height: 1.7;
    text-align: center;
}

/* ===== HIDDEN ===== */
.hidden { display: none !important; }

/* ===== RESPONSIVE ===== */
@media (max-width: 480px) {
    .role-tabs { gap: 2px; }
    .role-btn { padding: 5px 10px; font-size: 11px; }
    .level-btn { padding: 6px 12px; font-size: 11px; }
    .summary-card { padding: 20px; }
    .curriculum-header { padding: 14px 16px; }
    .curriculum-skill { font-size: 14px; }
}
