/* =============================================
   iCoder Academy – Learning Path Wizard
   ============================================= */

/* ──── Hero ──── */
.lp-hero {
    background: linear-gradient(135deg, #1976D2 0%, #7B1FA2 50%, #E65100 100%);
    padding: 80px 0 60px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.lp-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.lp-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255,255,255,.15);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255,255,255,.2);
    border-radius: 50px;
    padding: 8px 22px;
    color: white;
    font-size: .88rem;
    font-weight: 600;
    margin-bottom: 20px;
    position: relative;
}

.lp-hero-title {
    font-size: 2.4rem;
    font-weight: 800;
    color: white;
    margin: 0 0 14px;
    position: relative;
}

.lp-hero-desc {
    font-size: 1.1rem;
    color: rgba(255,255,255,.85);
    margin: 0 auto;
    max-width: 550px;
    position: relative;
}

/* ──── Wizard Section ──── */
.lp-wizard-section {
    padding: 50px 0 80px;
    background: #F4F8FF;
    min-height: 60vh;
}

/* ──── Progress Steps ──── */
.lp-progress {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    margin-bottom: 40px;
    max-width: 500px;
    margin-inline: auto;
}

.lp-progress-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    position: relative;
    z-index: 1;
}

.lp-progress-circle {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #e0e7f1;
    color: #8896a7;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: .95rem;
    transition: all .3s ease;
    border: 3px solid transparent;
}

.lp-progress-step.active .lp-progress-circle {
    background: #1976D2;
    color: white;
    border-color: rgba(25,118,210,.25);
    box-shadow: 0 0 0 6px rgba(25,118,210,.1);
}

.lp-progress-step.done .lp-progress-circle {
    background: #2E7D32;
    color: white;
    border-color: rgba(46,125,50,.25);
}

.lp-progress-label {
    font-size: .78rem;
    font-weight: 600;
    color: #8896a7;
    white-space: nowrap;
    transition: color .3s;
}

.lp-progress-step.active .lp-progress-label {
    color: #1976D2;
}

.lp-progress-step.done .lp-progress-label {
    color: #2E7D32;
}

.lp-progress-line {
    flex: 1;
    height: 3px;
    background: #e0e7f1;
    margin: 0 8px;
    margin-bottom: 28px;
    border-radius: 3px;
    transition: background .3s;
    min-width: 40px;
}

.lp-progress-line.active {
    background: #2E7D32;
}

/* ──── Wizard Card ──── */
.lp-wizard-card {
    background: white;
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 4px 24px rgba(27,40,69,.06);
    border: 1px solid rgba(27,40,69,.06);
    max-width: 800px;
    margin: 0 auto 40px;
    animation: lpFadeIn .4s ease;
}

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

.lp-step-title {
    font-size: 1.4rem;
    font-weight: 800;
    color: #1B2845;
    margin: 0 0 8px;
    text-align: center;
}

.lp-step-title i {
    color: #1976D2;
    margin-inline-end: 8px;
}

.lp-step-desc {
    font-size: .95rem;
    color: #5a6a80;
    text-align: center;
    margin: 0 0 32px;
}

/* ──── Option Cards ──── */
.lp-options {
    display: grid;
    gap: 16px;
    margin-bottom: 32px;
}

.lp-options--age {
    grid-template-columns: repeat(4, 1fr);
}

.lp-options--interest {
    grid-template-columns: repeat(5, 1fr);
}

.lp-options--exp {
    grid-template-columns: repeat(3, 1fr);
}

.lp-option {
    background: #f8fafd;
    border: 2px solid #e8edf5;
    border-radius: 16px;
    padding: 24px 16px;
    text-align: center;
    cursor: pointer;
    transition: all .25s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.lp-option:hover {
    border-color: #1976D2;
    background: rgba(25,118,210,.03);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(25,118,210,.1);
}

.lp-option.selected {
    border-color: #1976D2;
    background: rgba(25,118,210,.06);
    box-shadow: 0 0 0 4px rgba(25,118,210,.1);
}

.lp-option--blue.selected   { border-color: #1976D2; background: rgba(25,118,210,.06); box-shadow: 0 0 0 4px rgba(25,118,210,.1); }
.lp-option--green.selected  { border-color: #2E7D32; background: rgba(46,125,50,.06);  box-shadow: 0 0 0 4px rgba(46,125,50,.1); }
.lp-option--orange.selected { border-color: #E65100; background: rgba(230,81,0,.06);   box-shadow: 0 0 0 4px rgba(230,81,0,.1); }
.lp-option--red.selected    { border-color: #C62828; background: rgba(198,40,40,.06);  box-shadow: 0 0 0 4px rgba(198,40,40,.1); }
.lp-option--purple.selected { border-color: #7B1FA2; background: rgba(123,31,162,.06); box-shadow: 0 0 0 4px rgba(123,31,162,.1); }

.lp-option-emoji {
    font-size: 2.2rem;
    line-height: 1;
}

.lp-option-icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    margin-bottom: 4px;
}

.lp-option--blue .lp-option-icon   { background: rgba(25,118,210,.1);  color: #1976D2; }
.lp-option--green .lp-option-icon  { background: rgba(46,125,50,.1);   color: #2E7D32; }
.lp-option--orange .lp-option-icon { background: rgba(230,81,0,.1);    color: #E65100; }
.lp-option--red .lp-option-icon    { background: rgba(198,40,40,.1);   color: #C62828; }
.lp-option--purple .lp-option-icon { background: rgba(123,31,162,.1);  color: #7B1FA2; }

.lp-option-label {
    font-size: .92rem;
    font-weight: 700;
    color: #1B2845;
}

.lp-option-sub {
    font-size: .78rem;
    color: #5a6a80;
    line-height: 1.4;
}

/* ──── Navigation Buttons ──── */
.lp-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.lp-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 28px;
    border-radius: 12px;
    font-weight: 700;
    font-size: .92rem;
    cursor: pointer;
    transition: all .2s;
    border: none;
    text-decoration: none;
    font-family: inherit;
}

.lp-btn--back {
    background: #f0f3f8;
    color: #5a6a80;
}

.lp-btn--back:hover {
    background: #e4e9f0;
    color: #1B2845;
}

.lp-btn--next {
    background: linear-gradient(135deg, #1976D2, #1565C0);
    color: white;
    box-shadow: 0 4px 14px rgba(25,118,210,.25);
}

.lp-btn--next:hover {
    box-shadow: 0 6px 20px rgba(25,118,210,.35);
    transform: translateY(-1px);
}

/* ──── Result ──── */
.lp-result {
    max-width: 800px;
    margin: 0 auto;
    animation: lpFadeIn .5s ease;
}

.lp-result-header {
    text-align: center;
    margin-bottom: 32px;
}

.lp-result-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: linear-gradient(135deg, #F57F17, #FF9800);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    font-size: 1.6rem;
    color: white;
    box-shadow: 0 4px 20px rgba(245,127,23,.3);
}

.lp-result-title {
    font-size: 1.6rem;
    font-weight: 800;
    color: #1B2845;
    margin: 0;
}

/* -- Path Card -- */
.lp-result-path {
    display: flex;
    align-items: center;
    gap: 20px;
    background: white;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 4px 16px rgba(27,40,69,.06);
    border: 1px solid rgba(27,40,69,.06);
    margin-bottom: 24px;
}

.lp-result-path-icon {
    width: 60px;
    height: 60px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
    flex-shrink: 0;
}

.lp-result-path-name {
    font-size: 1.25rem;
    font-weight: 800;
    color: #1B2845;
    margin: 0 0 4px;
}

.lp-result-path-level {
    font-size: .88rem;
    color: #5a6a80;
    margin: 0;
}

/* -- Sections -- */
.lp-result-body {
    background: white;
    border-radius: 16px;
    padding: 32px;
    box-shadow: 0 4px 16px rgba(27,40,69,.06);
    border: 1px solid rgba(27,40,69,.06);
    margin-bottom: 24px;
}

.lp-result-section {
    margin-bottom: 28px;
}

.lp-result-section:last-child {
    margin-bottom: 0;
}

.lp-result-section h4 {
    font-size: 1rem;
    font-weight: 700;
    color: #1B2845;
    margin: 0 0 14px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.lp-result-section h4 i {
    color: #1976D2;
    font-size: .9rem;
}

.lp-result-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.lp-result-list li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: .9rem;
    color: #3a4a5f;
    padding: 8px 12px;
    background: #f8fafd;
    border-radius: 10px;
}

.lp-result-list li i {
    color: #2E7D32;
    margin-top: 3px;
    flex-shrink: 0;
}

.lp-result-skills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.lp-skill-tag {
    background: rgba(25,118,210,.08);
    color: #1976D2;
    padding: 6px 16px;
    border-radius: 50px;
    font-size: .82rem;
    font-weight: 600;
    border: 1px solid rgba(25,118,210,.15);
}

.lp-skill-tag--tool {
    background: rgba(123,31,162,.08);
    color: #7B1FA2;
    border-color: rgba(123,31,162,.15);
}

/* -- Matching Courses -- */
.lp-result-courses {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 16px;
}

.lp-course-card {
    background: #f8fafd;
    border: 1px solid #e8edf5;
    border-radius: 14px;
    overflow: hidden;
    text-decoration: none;
    transition: all .25s;
}

.lp-course-card:hover {
    border-color: #1976D2;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(25,118,210,.1);
}

.lp-course-img {
    height: 120px;
    background-size: cover;
    background-position: center;
    background-color: #e0e7f1;
}

.lp-course-info {
    padding: 14px;
}

.lp-course-title {
    font-size: .88rem;
    font-weight: 700;
    color: #1B2845;
    margin-bottom: 8px;
    line-height: 1.4;
}

.lp-course-meta {
    display: flex;
    gap: 12px;
    font-size: .78rem;
    color: #5a6a80;
}

.lp-course-meta i {
    margin-inline-end: 4px;
}

/* -- No Courses -- */
.lp-no-courses {
    text-align: center;
    padding: 28px 16px;
    background: #f8fafd;
    border-radius: 14px;
    border: 1px dashed #d0d9e6;
}

.lp-no-courses > i {
    font-size: 2rem;
    color: #b0bec5;
    margin-bottom: 12px;
    display: block;
}

.lp-no-courses p {
    color: #5a6a80;
    font-size: .92rem;
    margin: 0 0 16px;
    line-height: 1.6;
}

.lp-btn--contact {
    background: rgba(25,118,210,.08);
    color: #1976D2;
    padding: 10px 24px;
    border-radius: 10px;
    font-size: .88rem;
    border: 1px solid rgba(25,118,210,.2);
}

.lp-btn--contact:hover {
    background: rgba(25,118,210,.15);
    color: #1976D2;
}

/* -- CTA -- */
.lp-result-cta {
    display: flex;
    gap: 14px;
    justify-content: center;
    flex-wrap: wrap;
}

.lp-btn--register {
    background: linear-gradient(135deg, #E65100, #FF6D00);
    color: white;
    padding: 14px 36px;
    font-size: 1rem;
    border-radius: 14px;
    box-shadow: 0 4px 16px rgba(230,81,0,.25);
}

.lp-btn--register:hover {
    box-shadow: 0 6px 24px rgba(230,81,0,.35);
    transform: translateY(-2px);
    color: white;
}

.lp-btn--retry {
    background: #f0f3f8;
    color: #5a6a80;
    padding: 14px 28px;
    font-size: .92rem;
    border-radius: 14px;
}

.lp-btn--retry:hover {
    background: #e4e9f0;
    color: #1B2845;
}

/* ──── Responsive ──── */
@media (max-width: 768px) {
    .lp-hero { padding: 60px 0 40px; }
    .lp-hero-title { font-size: 1.7rem; }
    .lp-hero-desc { font-size: .95rem; }

    .lp-wizard-card { padding: 24px 20px; }
    .lp-step-title { font-size: 1.15rem; }

    .lp-options--age { grid-template-columns: repeat(2, 1fr); }
    .lp-options--interest { grid-template-columns: repeat(2, 1fr); }
    .lp-options--exp { grid-template-columns: 1fr; }

    .lp-option { padding: 18px 12px; }
    .lp-option-emoji { font-size: 1.8rem; }

    .lp-progress-label { font-size: .7rem; }
    .lp-progress-circle { width: 36px; height: 36px; font-size: .85rem; }

    .lp-result-list { grid-template-columns: 1fr; }
    .lp-result-courses { grid-template-columns: 1fr; }
    .lp-result-body { padding: 20px; }
    .lp-result-path { flex-direction: column; text-align: center; }
}

@media (max-width: 480px) {
    .lp-options--interest { grid-template-columns: 1fr; }
    .lp-result-cta { flex-direction: column; }
    .lp-btn--register, .lp-btn--retry { width: 100%; justify-content: center; }
}
