﻿/* ── Reset ─────────────────────────────────────────── */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --primary: #4F46E5;
    --primary-light: #EEF2FF;
    --primary-mid: #C7D2FE;
    --accent: #0EA5E9;
    --accent-light: #E0F2FE;
    --success: #10B981;
    --success-light: #D1FAE5;
    --warning: #F59E0B;
    --warning-light: #FEF3C7;
    --danger: #EF4444;
    --danger-light: #FEE2E2;
    --bg: #F8FAFC;
    --surface: #FFFFFF;
    --surface-2: #F1F5F9;
    --border: #E2E8F0;
    --border-strong: #CBD5E1;
    --text-primary: #0F172A;
    --text-secondary: #475569;
    --text-muted: #94A3B8;
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-full: 9999px;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.08), 0 2px 4px rgba(0,0,0,0.04);
    --shadow-lg: 0 10px 30px rgba(0,0,0,0.10), 0 4px 8px rgba(0,0,0,0.06);
    --max-width: 900px;
    --padding-x: 1.5rem;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Inter', sans-serif;
    background: var(--bg);
    color: var(--text-primary);
    font-size: 15px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    min-height: 100vh;
}

#root, #app {
    min-height: 100vh;
}

/* ── Layout ─────────────────────────────────────────── */
.home-container, .page-container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 2rem var(--padding-x) 4rem;
}

/* ── Hero ────────────────────────────────────────────── */
.hero {
    text-align: center;
    padding: 3rem 1rem 2rem;
    background: linear-gradient(135deg, var(--primary-light) 0%, var(--accent-light) 100%);
    border-radius: var(--radius-xl);
    margin-bottom: 2rem;
    border: 1px solid var(--primary-mid);
}

.hero-icon {
    font-size: 52px;
    margin-bottom: 12px;
    display: block;
}

.hero h1 {
    font-size: clamp(22px, 4vw, 32px);
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 10px;
    letter-spacing: -0.5px;
}

.hero-sub {
    font-size: clamp(13px, 2vw, 15px);
    color: var(--text-secondary);
    line-height: 1.7;
    max-width: 560px;
    margin: 0 auto;
}

    .hero-sub strong {
        color: var(--primary);
        font-weight: 600;
    }

/* ── Highlights Grid ─────────────────────────────────── */
.highlights-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-bottom: 16px;
}

.highlight-card {
    background: var(--surface);
    border-radius: var(--radius-md);
    padding: 1.25rem 1rem;
    cursor: pointer;
    border: 1.5px solid var(--border);
    transition: all 0.2s ease;
    box-shadow: var(--shadow-sm);
}

    .highlight-card:hover {
        border-color: var(--primary);
        box-shadow: var(--shadow-md);
        transform: translateY(-2px);
    }

.h-icon {
    font-size: 26px;
    display: block;
    margin-bottom: 8px;
}

.h-label {
    font-weight: 600;
    font-size: 14px;
    color: var(--text-primary);
    margin-bottom: 3px;
}

.h-sub {
    font-size: 12px;
    color: var(--text-muted);
    line-height: 1.4;
}

/* ── Browse Button ───────────────────────────────────── */
.browse-btn {
    width: 100%;
    padding: 14px;
    border-radius: var(--radius-md);
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    background: var(--primary);
    color: #fff;
    border: none;
    margin-bottom: 20px;
    transition: all 0.2s;
    box-shadow: var(--shadow-sm);
    letter-spacing: 0.2px;
}

    .browse-btn:hover {
        background: #4338CA;
        box-shadow: var(--shadow-md);
        transform: translateY(-1px);
    }

.footer-tags {
    font-size: 11px;
    color: var(--text-muted);
    text-align: center;
    line-height: 2;
    margin-bottom: 2rem;
}

/* ── Byline ──────────────────────────────────────────── */
.hero-byline {
    font-size: 13px;
    color: var(--primary);
    margin-bottom: 10px;
    font-weight: 400;
    letter-spacing: 0.01em;
}

    .hero-byline strong {
        font-weight: 700;
        color: var(--primary);
    }

/* ── Disclaimer ──────────────────────────────────────── */
.disclaimer-box {
    display: flex;
    gap: 14px;
    background: #FFFBEB;
    border: 1.5px solid #FCD34D;
    border-radius: var(--radius-lg);
    padding: 1.25rem 1.5rem;
    margin-top: 0.5rem;
}

.disclaimer-icon {
    font-size: 22px;
    flex-shrink: 0;
    padding-top: 2px;
}

.disclaimer-body {
    flex: 1;
}

.disclaimer-title {
    font-size: 13px;
    font-weight: 700;
    color: #92400E;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.disclaimer-text {
    font-size: 12.5px;
    color: #78350F;
    line-height: 1.75;
    margin-bottom: 10px;
}

    .disclaimer-text:last-of-type {
        margin-bottom: 12px;
    }

    .disclaimer-text strong {
        color: #92400E;
        font-weight: 600;
    }

.disclaimer-footer {
    font-size: 11px;
    color: #A16207;
    font-weight: 500;
    padding-top: 10px;
    border-top: 1px solid #FDE68A;
    margin-top: 4px;
}

/* ── Responsive disclaimer ───────────────────────────── */
@media (max-width: 480px) {
    .disclaimer-box {
        flex-direction: column;
        gap: 8px;
        padding: 1rem;
    }

    .disclaimer-icon {
        padding-top: 0;
    }
}

/* ── Back Button ─────────────────────────────────────── */
.back-btn {
    background: var(--surface);
    border: 1.5px solid var(--border);
    border-radius: var(--radius-full);
    cursor: pointer;
    color: var(--text-secondary);
    font-size: 13px;
    font-weight: 500;
    margin-bottom: 1.5rem;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    transition: all 0.15s;
}

    .back-btn:hover {
        background: var(--surface-2);
        border-color: var(--border-strong);
        color: var(--text-primary);
    }

/* ── Page Heading ────────────────────────────────────── */
.page-container h2 {
    font-size: clamp(18px, 3vw, 24px);
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 4px;
    letter-spacing: -0.3px;
}

.sub-text {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 16px;
}

/* ── Search Input ────────────────────────────────────── */
.search-input {
    width: 100%;
    font-size: 14px;
    margin-bottom: 14px;
    border-radius: var(--radius-full);
    border: 1.5px solid var(--border);
    padding: 10px 18px;
    background: var(--surface);
    color: var(--text-primary);
    outline: none;
    transition: border-color 0.15s, box-shadow 0.15s;
    box-shadow: var(--shadow-sm);
}

    .search-input:focus {
        border-color: var(--primary);
        box-shadow: 0 0 0 3px rgba(79,70,229,0.1);
    }

    .search-input::placeholder {
        color: var(--text-muted);
    }

/* ── Category Tabs ───────────────────────────────────── */
.category-tabs {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.cat-tab {
    font-size: 12px;
    padding: 5px 13px;
    border-radius: var(--radius-full);
    border: 1.5px solid var(--border);
    background: var(--surface);
    color: var(--text-secondary);
    cursor: pointer;
    font-weight: 500;
    transition: all 0.15s;
    white-space: nowrap;
}

    .cat-tab:hover {
        background: var(--surface-2);
        border-color: var(--border-strong);
    }

/* ── Career Grid ─────────────────────────────────────── */
.career-group {
    margin-bottom: 24px;
}

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

.career-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
    gap: 8px;
}

.career-card {
    background: var(--surface);
    border: 1.5px solid var(--border);
    border-radius: var(--radius-md);
    padding: 12px 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.15s;
    box-shadow: var(--shadow-sm);
}

    .career-card:hover {
        box-shadow: var(--shadow-md);
        transform: translateY(-1px);
    }

.career-icon {
    font-size: 20px;
    flex-shrink: 0;
}

.career-label {
    font-size: 13px;
    line-height: 1.4;
    font-weight: 500;
    color: var(--text-primary);
}

.no-results {
    color: var(--text-muted);
    font-size: 14px;
    margin-top: 20px;
    text-align: center;
    padding: 40px;
}

/* ── Roadmap Page ────────────────────────────────────── */
.career-header {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 10px;
    padding: 1.25rem;
    background: var(--surface);
    border-radius: var(--radius-lg);
    border: 1.5px solid var(--border);
    box-shadow: var(--shadow-sm);
}

.career-icon-lg {
    font-size: 36px;
    flex-shrink: 0;
}

.career-header h2 {
    font-size: clamp(17px, 3vw, 22px);
    font-weight: 700;
    margin: 0 0 4px;
}

.cat-badge {
    font-size: 11px;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: var(--radius-full);
    display: inline-block;
    letter-spacing: 0.03em;
}

.path-summary {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
    margin: 10px 0 8px;
    padding: 10px 14px;
    background: var(--surface-2);
    border-radius: var(--radius-sm);
    border-left: 3px solid var(--primary);
}

.duration-badge {
    display: inline-block;
    font-size: 12px;
    font-weight: 600;
    padding: 4px 12px;
    border-radius: var(--radius-full);
    background: var(--primary-light);
    color: var(--primary);
    border: 1px solid var(--primary-mid);
    margin-bottom: 16px;
}

/* ── Salary + Business Cards ─────────────────────────── */
.salary-business-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 20px;
}

.info-card {
    background: var(--surface);
    border-radius: var(--radius-md);
    padding: 14px 16px;
    border: 1.5px solid var(--border);
    box-shadow: var(--shadow-sm);
}

.info-card-label {
    font-size: 10px;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 8px;
}

.salary-row {
    font-size: 12px;
    margin-bottom: 4px;
    color: var(--text-secondary);
}

    .salary-row:last-child {
        margin-bottom: 0;
    }

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

/* ── Steps ───────────────────────────────────────────── */
.steps-label {
    font-size: 11px;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 12px;
}

.step-row {
    display: flex;
    gap: 12px;
}

.step-left {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.step-circle {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 2px solid;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 13px;
    flex-shrink: 0;
    box-shadow: var(--shadow-sm);
}

.step-line {
    width: 2px;
    flex: 1;
    min-height: 16px;
    margin: 4px 0;
    opacity: 0.4;
}

.step-content {
    flex: 1;
    padding-bottom: 10px;
}

.step-card {
    background: var(--surface);
    border: 1.5px solid var(--border);
    border-radius: var(--radius-md);
    padding: 12px 16px;
    cursor: pointer;
    transition: all 0.15s;
    box-shadow: var(--shadow-sm);
}

    .step-card:hover {
        box-shadow: var(--shadow-md);
    }

    .step-card.expanded {
        box-shadow: var(--shadow-md);
    }

.step-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.step-meta {
    display: flex;
    gap: 8px;
    align-items: center;
    flex-wrap: wrap;
    margin-bottom: 3px;
}

.step-stage {
    font-size: 11px;
    color: var(--text-muted);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.step-duration {
    font-size: 10px;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: var(--radius-full);
}

.step-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
}

.chevron {
    color: var(--text-muted);
    font-size: 12px;
    margin-left: 8px;
    flex-shrink: 0;
    margin-top: 2px;
}

.step-detail {
    margin-top: 14px;
    border-top: 1.5px solid var(--border);
    padding-top: 14px;
}

.step-text {
    font-size: 13px;
    line-height: 1.7;
    margin-bottom: 12px;
    color: var(--text-secondary);
}

.detail-section {
    margin-bottom: 12px;
}

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

.tags-row {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.tag {
    font-size: 11px;
    font-weight: 500;
    padding: 4px 10px;
    border-radius: var(--radius-full);
}

.tag-neutral {
    font-size: 11px;
    font-weight: 500;
    padding: 4px 10px;
    border-radius: var(--radius-full);
    background: var(--surface-2);
    color: var(--text-secondary);
    border: 1px solid var(--border);
}

.tip-box {
    border-radius: var(--radius-sm);
    padding: 10px 14px;
    margin-top: 4px;
    border-left: 3px solid;
}

    .tip-box p {
        margin: 0;
        font-size: 13px;
        line-height: 1.6;
    }

.not-found {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-muted);
}

/* ── Form Elements ───────────────────────────────────── */
input, button, select {
    font-family: inherit;
    font-size: 14px;
}

button {
    cursor: pointer;
}

    button:disabled {
        opacity: 0.5;
        cursor: not-allowed;
    }

/* ── Blazor Error UI ─────────────────────────────────── */
#blazor-error-ui {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 12px 20px;
    background: #FEF2F2;
    border-top: 2px solid #FECACA;
    color: #991B1B;
    font-size: 13px;
    z-index: 9999;
}

    #blazor-error-ui.shown {
        display: block;
    }

    #blazor-error-ui .reload {
        margin-left: 12px;
        color: var(--primary);
        text-decoration: underline;
        cursor: pointer;
    }

    #blazor-error-ui .dismiss {
        float: right;
        cursor: pointer;
    }

/* ── Responsive: Tablet (≤768px) ─────────────────────── */
@media (max-width: 768px) {
    :root {
        --padding-x: 1rem;
    }

    .home-container, .page-container {
        padding: 1rem var(--padding-x) 3rem;
    }

    .hero {
        padding: 2rem 1rem 1.5rem;
        border-radius: var(--radius-lg);
    }

    .highlights-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .salary-business-grid {
        grid-template-columns: 1fr;
    }

    .career-grid {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    }
}

/* ── Responsive: Mobile (≤480px) ────────────────────── */
@media (max-width: 480px) {
    :root {
        --padding-x: 0.75rem;
    }

    .hero {
        padding: 1.5rem 0.75rem 1.25rem;
        border-radius: var(--radius-md);
        margin-bottom: 1.25rem;
    }

    .hero-icon {
        font-size: 40px;
    }

    .highlights-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }

    .highlight-card {
        padding: 1rem 0.75rem;
    }

    .h-icon {
        font-size: 22px;
    }

    .h-label {
        font-size: 13px;
    }

    .h-sub {
        font-size: 11px;
    }

    .browse-btn {
        padding: 13px;
        font-size: 14px;
    }

    .career-grid {
        grid-template-columns: 1fr 1fr;
        gap: 7px;
    }

    .career-card {
        padding: 10px 10px;
        gap: 8px;
    }

    .career-icon {
        font-size: 18px;
    }

    .career-label {
        font-size: 12px;
    }

    .category-tabs {
        gap: 5px;
    }

    .cat-tab {
        font-size: 11px;
        padding: 4px 10px;
    }

    .career-header {
        padding: 1rem;
        gap: 10px;
    }

    .career-icon-lg {
        font-size: 28px;
    }

    .salary-business-grid {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .step-card {
        padding: 10px 12px;
    }

    .step-title {
        font-size: 13px;
    }

    .step-circle {
        width: 28px;
        height: 28px;
        font-size: 12px;
    }

    .back-btn {
        font-size: 12px;
        padding: 5px 12px;
    }
}

/* ── Responsive: Very small (≤360px) ────────────────── */
@media (max-width: 360px) {
    .highlights-grid {
        grid-template-columns: 1fr 1fr;
    }

    .career-grid {
        grid-template-columns: 1fr;
    }
}
