/* ═══════════════════════════════════════════════════════════
   BioMed Careers — Global Design System v2.0
   Light theme: clinical whites, warm greys, medical blue
   ═══════════════════════════════════════════════════════════ */

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

body {
    font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background-color: #FAFAFA;
    color: #1E293B;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    line-height: 1.6;
}

/* ── State container transitions ── */
.state-screen {
    transition: opacity 0.5s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.5s cubic-bezier(0.16, 1, 0.3, 1),
                visibility 0.5s;
}
.state-hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    position: absolute;
    inset: 0;
    transform: scale(0.97) translateY(16px);
    z-index: 0;
}
.state-visible {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    position: relative;
    transform: scale(1) translateY(0);
    z-index: 10;
}

/* ── results-nav-scroll: invisible but occupies layout space ──
   Used only while computing offsetTop for a scroll-to-section
   targeting a child of #state-landing after the quiz is done.
   Because position:relative + visibility:hidden keeps the element
   in the normal document flow (children have real offsets) while
   leaving it visually hidden, no flicker and no duplication. ── */
.results-nav-scroll {
    position: relative !important;
    inset: auto !important;
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
    z-index: 0;
    transform: none;
}

/* ── Primary button (medical blue, refined) ── */
.btn-glow {
    position: relative;
    background: linear-gradient(135deg, #0d9488 0%, #0ea5e9 100%);
    color: #FFFFFF;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06), 0 4px 16px rgba(13, 148, 136, 0.18);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.btn-glow:hover {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08), 0 12px 28px rgba(13, 148, 136, 0.25);
    transform: translateY(-2px);
}
.btn-glow:active {
    transform: translateY(0);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06), 0 4px 12px rgba(13, 148, 136, 0.15);
}

/* ── Progress bar ── */
.progress-fill {
    background: linear-gradient(90deg, #0d9488, #0ea5e9);
    box-shadow: none;
    transition: width 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ── Card styling (clean white, subtle elevation) ── */
.card-glass {
    background: #FFFFFF;
    border: 1px solid #E8ECF0;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03), 0 6px 20px rgba(0, 0, 0, 0.03);
    backdrop-filter: none;
}

/* ── Stat card hover ── */
.stat-card {
    transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    border: 1px solid #E8ECF0;
}
.stat-card:hover {
    border-color: #A7F3D0;
    box-shadow: 0 8px 28px rgba(13, 148, 136, 0.07);
    transform: translateY(-3px);
}

/* ── Option button hover ── */
.option-btn {
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    border: 1.5px solid #E2E8F0;
    background: #FFFFFF;
    color: #475569;
}
.option-btn:hover {
    border-color: #67E8F9;
    background: #F0FDFA;
    box-shadow: none;
}

/* ── Floating particles (subtle, light) ── */
@keyframes float {
    0%, 100% { transform: translateY(0) rotate(0deg); opacity: 0.12; }
    50% { transform: translateY(-24px) rotate(180deg); opacity: 0.25; }
}
@keyframes pulse-ring {
    0% { transform: scale(0.8); opacity: 0.3; }
    50% { transform: scale(1.2); opacity: 0; }
    100% { transform: scale(0.8); opacity: 0; }
}
.particle {
    animation: float 12s ease-in-out infinite;
}

/* ── Custom scrollbar (light) ── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: #F4F4F5; }
::-webkit-scrollbar-thumb { background: #CBD5E1; border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: #94A3B8; }

/* ── Subtle dot-grid background ── */
.bg-grid {
    background-image:
        radial-gradient(circle, #D1D5DB 0.5px, transparent 0.5px);
    background-size: 28px 28px;
    background-repeat: repeat;
}

/* ── Form input focus ── */
.input-field {
    transition: all 0.2s ease;
    border: 1.5px solid #E2E8F0;
    background: #FFFFFF;
    color: #1E293B;
}
.input-field::placeholder {
    color: #94A3B8;
}
.input-field:focus {
    border-color: #67E8F9;
    box-shadow: 0 0 0 3px rgba(103, 232, 249, 0.18);
    outline: none;
}

/* ── Results: SVG score circles ── */
.score-circle {
    transform: rotate(-90deg);
}
.score-circle-bg {
    fill: none;
    stroke: #F1F5F9;
    stroke-width: 8;
}
.score-circle-fill {
    fill: none;
    stroke-width: 8;
    stroke-linecap: round;
    transition: stroke-dashoffset 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ── Results: rank badge pulse ── */
@keyframes badge-pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(13, 148, 136, 0.15); }
    50% { box-shadow: 0 0 0 12px rgba(13, 148, 136, 0); }
}
.rank-badge-pulse {
    animation: badge-pulse 2.5s ease-in-out infinite;
}

/* ── Comparison table ── */
.compare-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
}
.compare-table thead th {
    padding: 12px 16px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #64748B;
    background: #F8FAFC;
    border-bottom: 1px solid #E8ECF0;
}
.compare-table thead th:first-child { border-radius: 12px 0 0 0; }
.compare-table thead th:last-child { border-radius: 0 12px 0 0; }
.compare-table tbody td {
    padding: 14px 16px;
    font-size: 13px;
    color: #475569;
    border-bottom: 1px solid #F4F4F5;
    vertical-align: middle;
}
.compare-table tbody tr:last-child td { border-bottom: none; }
.compare-table tbody tr:hover td { background: #F0FDFA; }
.compare-table tbody tr.top-match td { color: #1E293B; }
.compare-table tbody tr.top-match td:first-child { border-left: 2px solid #0d9488; }

/* ── Checkout button pulse ── */
@keyframes checkout-pulse {
    0%, 100% { box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06), 0 4px 16px rgba(13, 148, 136, 0.18); }
    50% { box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08), 0 12px 32px rgba(13, 148, 136, 0.28); }
}
.btn-checkout-pulse {
    animation: checkout-pulse 2s ease-in-out infinite;
}

/* ── Payment modal ── */
.payment-modal-backdrop {
    position: fixed;
    inset: 0;
    z-index: 100;
    background: rgba(15, 23, 42, 0.35);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}
.payment-modal-backdrop.open {
    opacity: 1;
    visibility: visible;
}
.payment-modal {
    width: 100%;
    max-width: 460px;
    background: #FFFFFF;
    border: 1px solid #E8ECF0;
    border-radius: 20px;
    padding: 32px;
    transform: scale(0.95) translateY(16px);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.08), 0 4px 16px rgba(0, 0, 0, 0.03);
}
.payment-modal-backdrop.open .payment-modal {
    transform: scale(1) translateY(0);
}
.payment-method-btn {
    transition: all 0.2s ease;
    border: 1.5px solid #E2E8F0;
    background: #FFFFFF;
}
.payment-method-btn:hover {
    border-color: #A7F3D0;
    background: #F0FDFA;
}
.payment-method-btn.active {
    border-color: #0d9488;
    background: #F0FDFA;
    box-shadow: 0 0 0 1px rgba(13, 148, 136, 0.12);
}

/* ── Growth badge colors ── */
.growth-high { color: #059669; }
.growth-mid  { color: #D97706; }
.growth-low  { color: #DC2626; }

/* ── Unlocked content reveal ── */
.unlock-reveal {
    opacity: 0;
    transform: translateY(12px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}
.unlock-reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ── Starter Kit: Section headers ── */
.sk-section-tag {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    padding: 4px 12px;
    border-radius: 9999px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 16px;
}

/* ── Starter Kit: Accordion ── */
.sk-accordion-item {
    border: 1px solid #E8ECF0;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 8px;
    transition: border-color 0.25s ease;
    background: #FFFFFF;
}
.sk-accordion-item:hover {
    border-color: #A7F3D0;
}
.sk-accordion-item.open {
    border-color: #67E8F9;
}
.sk-accordion-header {
    padding: 14px 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: between;
    gap: 12px;
    background: #F8FAFC;
    transition: background 0.2s ease;
}
.sk-accordion-header:hover {
    background: #F0FDFA;
}
.sk-accordion-body {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.sk-accordion-body-inner {
    padding: 16px 18px;
    border-top: 1px solid #F4F4F5;
}
.sk-accordion-chevron {
    transition: transform 0.3s ease;
    flex-shrink: 0;
}
.sk-accordion-item.open .sk-accordion-chevron {
    transform: rotate(180deg);
}

/* ── Starter Kit: Checklist ── */
.sk-checklist-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid #F4F4F5;
    cursor: pointer;
    transition: all 0.2s ease;
}
.sk-checklist-item:last-child { border-bottom: none; }
.sk-checklist-item:hover { background: #F0FDFA; }
.sk-checklist-item.checked .sk-checklist-label {
    text-decoration: line-through;
    color: #94A3B8;
}
.sk-checkbox {
    width: 20px;
    height: 20px;
    min-width: 20px;
    border-radius: 6px;
    border: 2px solid #CBD5E1;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 1px;
    transition: all 0.2s ease;
}
.sk-checklist-item.checked .sk-checkbox {
    background: #0d9488;
    border-color: #0d9488;
    box-shadow: none;
}
.sk-checklist-label {
    font-size: 13px;
    line-height: 1.5;
    color: #475569;
    transition: all 0.2s ease;
}
.sk-day-badge {
    font-size: 10px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 6px;
    white-space: nowrap;
}

/* ── Starter Kit: Timeline / Salary Graph ── */
.salary-timeline-node {
    position: relative;
    padding-left: 28px;
}
.salary-timeline-node::before {
    content: '';
    position: absolute;
    left: 8px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, #0d9488, #67E8F9);
}
.salary-timeline-node::after {
    content: '';
    position: absolute;
    left: 3px;
    top: 6px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #0d9488;
    border: 2px solid #FFFFFF;
    box-shadow: 0 0 0 3px rgba(13, 148, 136, 0.1);
}

/* ── Starter Kit: Resume block ── */
.resume-preview {
    background: #FFFFFF;
    color: #1E293B;
    border-radius: 12px;
    border: 1px solid #E8ECF0;
    font-family: 'Inter', system-ui, sans-serif;
}
.resume-preview h1, .resume-preview h2, .resume-preview h3 {
    color: #0F172A;
}

/* ── Starter Kit: Micro-eval radio matrix ── */
.micro-eval-option {
    transition: all 0.2s ease;
    border: 1.5px solid #E2E8F0;
    background: #FFFFFF;
    color: #64748B;
}
.micro-eval-option:hover {
    border-color: #A7F3D0;
    background: #F0FDFA;
}
.micro-eval-option.selected {
    border-color: #0d9488;
    background: #F0FDFA;
    box-shadow: 0 0 0 1px rgba(13, 148, 136, 0.12);
}

/* ═══════════════════════════════════════════════════════════
   NEW: Platform Section Styles
   ═══════════════════════════════════════════════════════════ */

/* ── Navigation ── */
.nav-link {
    position: relative;
    color: #64748B;
    font-weight: 500;
    font-size: 14px;
    text-decoration: none;
    transition: color 0.2s ease;
    padding: 4px 0;
}
.nav-link:hover,
.nav-link.active {
    color: #0d9488;
}
.nav-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #0d9488, #0ea5e9);
    border-radius: 2px;
    transition: width 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

/* ── Section containers ── */
.section-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}
@media (min-width: 768px) {
    .section-container {
        padding: 0 32px;
    }
}

/* ── Section header ── */
.section-header {
    margin-bottom: 40px;
}
.section-header h2 {
    font-size: 28px;
    font-weight: 800;
    color: #1E293B;
    letter-spacing: -0.02em;
    line-height: 1.2;
}
@media (min-width: 768px) {
    .section-header h2 {
        font-size: 32px;
    }
}
.section-header p {
    margin-top: 8px;
    font-size: 16px;
    color: #64748B;
    line-height: 1.6;
}

/* ── Card grid ── */
.card-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}
@media (min-width: 640px) {
    .card-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (min-width: 1024px) {
    .card-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* ── Platform card ── */
.platform-card {
    background: #FFFFFF;
    border: 1px solid #E8ECF0;
    border-radius: 16px;
    padding: 24px;
    transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    cursor: pointer;
    position: relative;
    overflow: hidden;
}
.platform-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #0d9488, #0ea5e9);
    opacity: 0;
    transition: opacity 0.3s ease;
}
.platform-card:hover {
    border-color: #A7F3D0;
    box-shadow: 0 8px 32px rgba(13, 148, 136, 0.06);
    transform: translateY(-4px);
}
.platform-card:hover::before {
    opacity: 1;
}
.platform-card .card-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
    font-size: 20px;
}
.platform-card h3 {
    font-size: 16px;
    font-weight: 700;
    color: #1E293B;
    margin-bottom: 6px;
    letter-spacing: -0.01em;
}
.platform-card p {
    font-size: 14px;
    color: #64748B;
    line-height: 1.5;
}
.platform-card .card-meta {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid #F4F4F5;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.platform-card .card-tag {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 3px 10px;
    border-radius: 9999px;
}
.platform-card .card-arrow {
    color: #CBD5E1;
    transition: color 0.2s ease, transform 0.2s ease;
}
.platform-card:hover .card-arrow {
    color: #0d9488;
    transform: translateX(3px);
}

/* ── Blog list item ── */
.blog-item {
    display: flex;
    gap: 16px;
    padding: 16px 0;
    border-bottom: 1px solid #F4F4F5;
    transition: background 0.2s ease;
    cursor: pointer;
}
.blog-item:last-child { border-bottom: none; }
.blog-item:hover { background: #F8FAFC; }
.blog-item .blog-thumb {
    width: 80px;
    height: 80px;
    min-width: 80px;
    border-radius: 12px;
    background: linear-gradient(135deg, #F0FDFA, #E0F2FE);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
}
.blog-item .blog-info h4 {
    font-size: 15px;
    font-weight: 600;
    color: #1E293B;
    line-height: 1.4;
    margin-bottom: 4px;
}
.blog-item .blog-info p {
    font-size: 13px;
    color: #64748B;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.blog-item .blog-date {
    font-size: 12px;
    color: #94A3B8;
    margin-top: 6px;
    font-weight: 500;
}

/* ── Resource list item ── */
.resource-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 0;
    border-bottom: 1px solid #F4F4F5;
    cursor: pointer;
    transition: background 0.2s ease;
}
.resource-item:last-child { border-bottom: none; }
.resource-item:hover { background: #F8FAFC; }
.resource-item .resource-icon {
    width: 40px;
    height: 40px;
    min-width: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}
.resource-item .resource-info h4 {
    font-size: 14px;
    font-weight: 600;
    color: #1E293B;
    line-height: 1.4;
}
.resource-item .resource-info p {
    font-size: 12px;
    color: #94A3B8;
    margin-top: 2px;
}

/* ── Mobile nav ── */
.mobile-nav-overlay {
    position: fixed;
    inset: 0;
    z-index: 200;
    background: rgba(15, 23, 42, 0.3);
    backdrop-filter: blur(4px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}
.mobile-nav-overlay.open {
    opacity: 1;
    visibility: visible;
}
.mobile-nav-panel {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: 280px;
    background: #FFFFFF;
    border-left: 1px solid #E8ECF0;
    z-index: 201;
    padding: 24px;
    transform: translateX(100%);
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: -8px 0 32px rgba(0, 0, 0, 0.06);
}
.mobile-nav-panel.open {
    transform: translateX(0);
}
.mobile-nav-panel .mobile-nav-link {
    display: block;
    padding: 12px 0;
    font-size: 16px;
    font-weight: 500;
    color: #1E293B;
    text-decoration: none;
    border-bottom: 1px solid #F4F4F5;
    transition: color 0.2s ease;
}
.mobile-nav-panel .mobile-nav-link:hover {
    color: #0d9488;
}

/* ── Footer ── */
.platform-footer {
    background: #FFFFFF;
    border-top: 1px solid #E8ECF0;
    padding: 40px 0;
    margin-top: 80px;
}
.platform-footer .footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}
@media (min-width: 768px) {
    .platform-footer .footer-inner {
        flex-direction: row;
        justify-content: space-between;
        padding: 0 32px;
    }
}
.platform-footer .footer-links {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
    justify-content: center;
}
.platform-footer .footer-links a {
    font-size: 13px;
    color: #94A3B8;
    text-decoration: none;
    transition: color 0.2s ease;
}
.platform-footer .footer-links a:hover {
    color: #0d9488;
}
.platform-footer .footer-copy {
    font-size: 12px;
    color: #CBD5E1;
}

/* ═══════════════════════════════════════════════════════════
   DIAGNOSTIC REPORT — Clinical Profile View
   ═══════════════════════════════════════════════════════════ */

/* ── Fade-in for report container ── */
@keyframes diagnostic-fade-in {
    from { opacity: 0; transform: translateY(16px); }
    to   { opacity: 1; transform: translateY(0); }
}
.animate-fade-in {
    animation: diagnostic-fade-in 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* ── Skill gauge bar animation ── */
.gauge-bar {
    transition: width 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ── Report badge pulse ── */
@keyframes report-badge-pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(13, 148, 136, 0.15); }
    50%      { box-shadow: 0 0 0 8px rgba(13, 148, 136, 0); }
}
.report-badge-pulse {
    animation: report-badge-pulse 2.5s ease-in-out infinite;
}

/* ── Report checkbox styling ── */
#report-checklist input[type="checkbox"] {
    accent-color: #0d9488;
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    cursor: pointer;
}
#report-checklist input[type="checkbox"]:checked:disabled {
    opacity: 0.7;
}

/* ── Secondary pathway card hover ── */
#report-pathway-cards > div {
    transition: box-shadow 0.25s ease, transform 0.25s ease;
}
#report-pathway-cards > div:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
    transform: translateY(-2px);
}

/* ── Mobile refinements for report ── */
@media (max-width: 767px) {
    #diagnostic-report-view {
        padding-left: 16px;
        padding-right: 16px;
    }
    #diagnostic-report-view .space-y-8 > * + * {
        margin-top: 20px;
    }
}
