/* ═══════════════════════════════════════════
   Career Compass — Frontend Styles
   ═══════════════════════════════════════════ */

.cc-app {
    --saffron: #FF6B00;
    --gold: #FFB800;
    --cream: #FFF8F0;
    --deep: #1A0A00;
    --rose: #E53935;
    --green: #2E7D32;
    --bg: #0F0A04;
    --card: #1E1208;
    --border: rgba(255,107,0,0.2);
    font-family: 'DM Sans', -apple-system, sans-serif;
    background: var(--bg);
    color: var(--cream);
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
}

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

.cc-app::before {
    content: '';
    position: fixed;
    inset: 0;
    background:
        radial-gradient(ellipse 60% 40% at 20% 20%, rgba(255,107,0,0.08) 0%, transparent 70%),
        radial-gradient(ellipse 50% 60% at 80% 80%, rgba(255,184,0,0.06) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}

/* Screens */
.cc-screen { display: none; }
.cc-screen.cc-active { display: block; }
.cc-container { max-width: 780px; margin: 0 auto; padding: 20px; position: relative; z-index: 1; }
.cc-hidden { display: none !important; }

/* ── Landing ── */
#cc-landing {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 40px 20px;
    position: relative;
    z-index: 1;
}

.cc-badge {
    display: inline-block;
    background: rgba(255,107,0,0.15);
    border: 1px solid var(--saffron);
    color: var(--saffron);
    padding: 6px 20px;
    border-radius: 100px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 28px;
    animation: ccFadeDown .8s ease both;
}

.cc-hero-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(42px, 8vw, 80px);
    font-weight: 900;
    line-height: 1;
    margin-bottom: 8px;
    animation: ccFadeDown .8s .15s ease both;
}

.cc-hero-title span,
.cc-highlight {
    background: linear-gradient(135deg, var(--saffron), var(--gold));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.cc-hindi {
    font-size: 18px;
    color: rgba(255,248,240,0.5);
    margin-bottom: 24px;
    animation: ccFadeDown .8s .25s ease both;
}

.cc-hero-desc {
    font-size: 17px;
    color: rgba(255,248,240,0.7);
    line-height: 1.7;
    max-width: 520px;
    margin: 0 auto 40px;
    animation: ccFadeDown .8s .35s ease both;
}

.cc-stats-row { display: flex; gap: 32px; justify-content: center; margin-bottom: 48px; flex-wrap: wrap; animation: ccFadeDown .8s .45s ease both; }
.cc-stat { text-align: center; }
.cc-stat-num { font-family: 'Playfair Display', serif; font-size: 32px; font-weight: 700; color: var(--gold); }
.cc-stat-lbl { font-size: 12px; color: rgba(255,248,240,0.5); letter-spacing: 1px; }

.cc-info-row { display: flex; gap: 24px; justify-content: center; margin-top: 32px; flex-wrap: wrap; animation: ccFadeDown .8s .65s ease both; }
.cc-chip { display: flex; align-items: center; gap: 8px; color: rgba(255,248,240,0.5); font-size: 13px; }
.cc-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--saffron); }

/* ── Buttons ── */
.cc-btn-primary {
    background: linear-gradient(135deg, var(--saffron), #FF8C00);
    color: #fff;
    border: none;
    padding: 18px 56px;
    font-family: inherit;
    font-size: 17px;
    font-weight: 600;
    border-radius: 100px;
    cursor: pointer;
    letter-spacing: .5px;
    transition: all .3s;
    box-shadow: 0 8px 32px rgba(255,107,0,0.4);
    position: relative;
    overflow: hidden;
}
.cc-btn-primary:hover { transform: translateY(-3px); box-shadow: 0 16px 48px rgba(255,107,0,0.5); }

.cc-btn-outline {
    background: transparent;
    border: 1.5px solid rgba(255,248,240,0.15);
    color: rgba(255,248,240,0.5);
    padding: 14px 32px;
    font-family: inherit;
    font-size: 15px;
    font-weight: 600;
    border-radius: 100px;
    cursor: pointer;
    transition: all .25s;
}
.cc-btn-outline:hover { border-color: var(--saffron); color: var(--cream); }

.cc-full-w { width: 100%; }
.cc-start-btn { animation: ccFadeDown .8s .55s ease both; }

/* ── Card ── */
.cc-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 24px;
    padding: 56px 48px;
    text-align: center;
    max-width: 560px;
    width: 100%;
    margin: 0 auto;
    animation: ccScaleIn .4s ease;
}

.cc-card-emoji { font-size: 48px; display: block; margin-bottom: 20px; }
.cc-card h2 { font-family: 'Playfair Display', serif; font-size: 32px; margin-bottom: 8px; }
.cc-card-sub { color: rgba(255,248,240,0.6); margin-bottom: 32px; font-size: 15px; }

/* ── Form ── */
#cc-form-screen { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 40px 0; }

.cc-reg-form { text-align: left; }

.cc-field-group { margin-bottom: 18px; }
.cc-field-group label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: rgba(255,248,240,0.7);
    margin-bottom: 6px;
}
.cc-req { color: var(--rose); }

.cc-field-group input,
.cc-field-group textarea,
.cc-field-group select {
    width: 100%;
    background: rgba(255,248,240,0.05);
    border: 1.5px solid rgba(255,107,0,0.3);
    border-radius: 12px;
    padding: 14px 18px;
    font-family: inherit;
    font-size: 16px;
    color: var(--cream);
    outline: none;
    transition: border-color .3s;
}
.cc-field-group input:focus,
.cc-field-group textarea:focus,
.cc-field-group select:focus { border-color: var(--saffron); }

.cc-field-group input::placeholder,
.cc-field-group textarea::placeholder { color: rgba(255,248,240,0.3); }

.cc-field-group select option { background: #1E1208; color: var(--cream); }
.cc-field-group .cc-field-error { border-color: var(--rose) !important; }
.cc-err-msg { color: var(--rose); font-size: 12px; margin-top: 4px; }

/* ── Confirmation ── */
.cc-check-circle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px; height: 44px;
    border-radius: 50%;
    background: rgba(46,125,50,0.2);
    border: 2px solid var(--green);
    margin-bottom: 20px;
}
.cc-check-circle svg { width: 22px; height: 22px; stroke: var(--green); stroke-width: 3; fill: none; }

.cc-saved-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--green);
    font-weight: 600;
    margin-bottom: 28px;
    padding: 8px 18px;
    background: rgba(46,125,50,0.1);
    border: 1px solid rgba(46,125,50,0.25);
    border-radius: 100px;
}

.cc-data-card {
    background: rgba(255,248,240,0.04);
    border: 1px solid var(--border);
    border-radius: 16px;
    overflow: hidden;
    margin-bottom: 32px;
    text-align: left;
}
.cc-data-header {
    background: rgba(255,107,0,0.1);
    padding: 14px 20px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--saffron);
    border-bottom: 1px solid rgba(255,107,0,0.15);
}
.cc-data-row { display: flex; padding: 14px 20px; border-bottom: 1px solid rgba(255,248,240,0.06); gap: 16px; align-items: flex-start; }
.cc-data-row:last-child { border-bottom: none; }
.cc-data-label { min-width: 120px; font-size: 12px; font-weight: 600; color: rgba(255,248,240,0.45); text-transform: uppercase; letter-spacing: .5px; flex-shrink: 0; }
.cc-data-value { font-size: 15px; color: var(--cream); line-height: 1.5; word-break: break-word; }

/* ── Quiz ── */
#cc-quiz-screen { padding: 40px 0; }

.cc-progress-wrap { background: rgba(255,248,240,0.08); height: 4px; border-radius: 100px; margin-bottom: 48px; overflow: hidden; }
.cc-progress-fill { height: 100%; background: linear-gradient(90deg, var(--saffron), var(--gold)); border-radius: 100px; transition: width .6s cubic-bezier(.4,0,.2,1); width: 0; }

.cc-q-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.cc-q-counter { font-size: 13px; color: rgba(255,248,240,0.4); letter-spacing: 1px; font-weight: 600; }
.cc-q-cat { font-size: 12px; padding: 4px 14px; border-radius: 100px; background: rgba(255,107,0,0.12); color: var(--saffron); font-weight: 600; letter-spacing: 1px; }
.cc-q-text { font-family: 'Playfair Display', serif; font-size: clamp(20px,4vw,28px); font-weight: 700; line-height: 1.4; margin-bottom: 8px; }
.cc-q-hint { font-size: 13px; color: rgba(255,248,240,0.4); margin-bottom: 32px; font-style: italic; }

.cc-opts { display: grid; gap: 12px; margin-bottom: 40px; }
.cc-opt-btn {
    background: rgba(255,248,240,0.04);
    border: 1.5px solid rgba(255,248,240,0.1);
    border-radius: 14px;
    padding: 18px 24px;
    text-align: left;
    color: var(--cream);
    font-family: inherit;
    font-size: 15px;
    cursor: pointer;
    transition: all .25s;
    display: flex;
    align-items: center;
    gap: 16px;
    line-height: 1.5;
}
.cc-opt-btn:hover { background: rgba(255,107,0,0.1); border-color: var(--saffron); transform: translateX(4px); }
.cc-opt-btn.cc-selected { background: rgba(255,107,0,0.15); border-color: var(--saffron); }

.cc-opt-ltr {
    min-width: 32px; height: 32px;
    border-radius: 8px;
    background: rgba(255,248,240,0.08);
    display: flex; align-items: center; justify-content: center;
    font-size: 12px; font-weight: 700;
    color: var(--saffron);
    transition: all .25s;
}
.cc-opt-btn.cc-selected .cc-opt-ltr { background: var(--saffron); color: #fff; }

.cc-nav-row { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.cc-btn-primary:disabled, .cc-btn-outline:disabled { opacity: .3; cursor: not-allowed; transform: none !important; }

.cc-q-animate { animation: ccFadeDown .35s ease; }

/* ── Results ── */
#cc-results-screen { padding: 48px 0 80px; }

.cc-results-header { text-align: center; margin-bottom: 48px; }
.cc-res-greeting { font-size: 14px; color: var(--saffron); letter-spacing: 2px; font-weight: 600; text-transform: uppercase; margin-bottom: 12px; }
.cc-results-header h2 { font-family: 'Playfair Display', serif; font-size: clamp(28px,6vw,48px); font-weight: 900; margin-bottom: 16px; }
.cc-results-header p { color: rgba(255,248,240,0.6); font-size: 16px; max-width: 500px; margin: 0 auto; line-height: 1.6; }

.cc-personality-card {
    border-radius: 24px;
    padding: 40px;
    margin-bottom: 32px;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.1);
}
.cc-personality-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--type-color, #FF6B00), transparent 70%);
    opacity: .15;
}

.cc-type-emoji { font-size: 56px; margin-bottom: 16px; display: block; position: relative; }
.cc-type-label { font-size: 11px; letter-spacing: 3px; color: rgba(255,248,240,0.5); text-transform: uppercase; margin-bottom: 8px; position: relative; }
.cc-type-name { font-family: 'Playfair Display', serif; font-size: 36px; font-weight: 900; margin-bottom: 12px; position: relative; }
.cc-type-desc { color: rgba(255,248,240,0.75); font-size: 16px; line-height: 1.7; max-width: 600px; margin-bottom: 24px; position: relative; }
.cc-traits { display: flex; gap: 10px; flex-wrap: wrap; position: relative; }
.cc-trait { padding: 6px 16px; border-radius: 100px; font-size: 13px; font-weight: 600; background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.15); }

.cc-section { margin-bottom: 36px; }
.cc-sec-title {
    font-family: 'Playfair Display', serif;
    font-size: 22px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}
.cc-sec-title::after { content: ''; flex: 1; height: 1px; background: rgba(255,248,240,0.1); }

/* Score bars */
.cc-score-row { display: flex; align-items: center; gap: 16px; margin-bottom: 14px; }
.cc-score-label { min-width: 130px; font-size: 13px; font-weight: 600; color: rgba(255,248,240,0.7); }
.cc-score-track { flex: 1; height: 8px; background: rgba(255,248,240,0.08); border-radius: 100px; overflow: hidden; }
.cc-score-fill { height: 100%; border-radius: 100px; transition: width 1s cubic-bezier(.4,0,.2,1); }
.cc-score-pct { min-width: 40px; text-align: right; font-size: 13px; font-weight: 700; color: var(--gold); }

/* Career Cards */
.cc-careers-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px,1fr)); gap: 16px; margin-bottom: 36px; }
.cc-career-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: 24px;
    transition: all .3s;
    position: relative;
    overflow: hidden;
}
.cc-career-card::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: var(--c-color); border-radius: 18px 18px 0 0; }
.cc-career-card:hover { transform: translateY(-4px); border-color: rgba(255,107,0,0.4); }
.cc-career-card.cc-top { border-color: rgba(255,184,0,0.4); background: rgba(255,184,0,0.05); }
.cc-top-badge { position: absolute; top: 16px; right: 16px; background: var(--gold); color: var(--deep); font-size: 10px; font-weight: 700; padding: 3px 10px; border-radius: 100px; letter-spacing: 1px; }
.cc-c-icon { font-size: 32px; margin-bottom: 12px; }
.cc-c-name { font-family: 'Playfair Display', serif; font-size: 18px; font-weight: 700; margin-bottom: 8px; }
.cc-c-match { font-size: 12px; font-weight: 700; color: var(--gold); margin-bottom: 8px; letter-spacing: 1px; }
.cc-c-desc { font-size: 13px; color: rgba(255,248,240,0.6); line-height: 1.6; margin-bottom: 14px; }
.cc-c-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.cc-c-tag { font-size: 11px; padding: 3px 10px; border-radius: 100px; background: rgba(255,248,240,0.07); color: rgba(255,248,240,0.6); border: 1px solid rgba(255,248,240,0.1); }

.cc-restart { display: block; margin: 40px auto 0; }

/* ── Animations ── */
@keyframes ccFadeDown { from { opacity: 0; transform: translateY(-20px); } to { opacity: 1; transform: translateY(0); } }
@keyframes ccScaleIn { from { opacity: 0; transform: scale(.95); } to { opacity: 1; transform: scale(1); } }

/* ── Responsive ── */
@media (max-width: 480px) {
    .cc-card { padding: 36px 24px; }
    .cc-data-row { flex-direction: column; gap: 4px; padding: 12px 16px; }
    .cc-data-label { min-width: unset; }
    .cc-personality-card { padding: 28px 20px; }
}
