/* ============================================
   Quant Guild Roadmap Panel
   Winding road: Practice → Courses → Level Up → Interviews & Masterclasses
   ============================================ */

/* ---------- Desktop Roadmap ---------- */
.roadmap-desktop {
    display: block;
}

.roadmap-mobile {
    display: none;
}

@media (max-width: 768px) {
    .roadmap-desktop {
        display: none !important;
    }
    .roadmap-mobile {
        display: block !important;
    }
}

/* Panel container - matches subscribe dark panels */
.roadmap-panel {
    margin-top: 3rem;
    padding: 2.75rem 2.25rem;
    background: linear-gradient(145deg, #0c0c18 0%, #16162a 45%, #0f0f1e 100%);
    border-radius: 20px;
    border: 1px solid rgba(245, 158, 11, 0.2);
    position: relative;
    overflow: hidden;
}

.roadmap-panel::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 80%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(245, 158, 11, 0.03), transparent);
    animation: roadmapShine 12s ease-in-out infinite;
}

@keyframes roadmapShine {
    0%, 90% { left: -100%; }
    95% { left: 100%; }
    100% { left: 100%; }
}

.roadmap-inner {
    position: relative;
    z-index: 2;
    max-width: 1200px;
    margin: 0 auto;
}

.roadmap-title {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    font-size: 2.15rem;
    font-weight: 700;
    color: #fff;
    margin: 0 0 0.35rem 0;
}

.roadmap-title i {
    font-size: 1.35rem;
    color: #4ade80;
    text-shadow: 0 0 18px rgba(74, 222, 128, 0.55), 0 0 26px rgba(74, 222, 128, 0.45);
}

.roadmap-subtitle {
    text-align: center;
    color: rgba(255, 255, 255, 0.7);
    font-size: 1.2rem;
    margin: 0 0 2rem 0;
}

/* Desktop: row of cards - equal width */
.roadmap-row {
    display: flex;
    flex-wrap: nowrap;
    justify-content: center;
    align-items: stretch;
    gap: 1.75rem;
    margin-bottom: 2rem;
}

.roadmap-stop {
    flex: 1 1 0;
    min-width: 0;
    max-width: 320px;
    display: flex;
    flex-direction: column;
    align-items: center;
    opacity: 0.65;
    transform: scale(0.97);
    transition: opacity 0.5s ease, transform 0.5s ease, box-shadow 0.5s ease;
}

/* Spotlight: current step is full opacity and scaled up */
.roadmap-desktop[data-current-step="1"] .roadmap-stop[data-step="1"],
.roadmap-desktop[data-current-step="2"] .roadmap-stop[data-step="2"],
.roadmap-desktop[data-current-step="3"] .roadmap-stop[data-step="3"],
.roadmap-desktop[data-current-step="4"] .roadmap-stop[data-step="4"] {
    opacity: 1;
    transform: scale(1);
}

.roadmap-stop:hover {
    opacity: 1;
}

/* Marker dot on the road - distinct color per step */
.roadmap-stop-marker {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    border: 3px solid rgba(255, 255, 255, 0.95);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 0.85rem auto;
    color: #fff;
    font-size: 1.25rem;
    transition: transform 0.35s ease, box-shadow 0.35s ease;
}

/* Step 1: Green energy bolt */
.roadmap-stop[data-step="1"] .roadmap-stop-marker {
    background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
    box-shadow: 0 0 0 2px rgba(34, 197, 94, 0.45), 0 4px 14px rgba(34, 197, 94, 0.35);
}
.roadmap-stop[data-step="1"]:hover .roadmap-stop-marker {
    box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.55), 0 6px 20px rgba(34, 197, 94, 0.45);
}

/* Step 2: Blue book */
.roadmap-stop[data-step="2"] .roadmap-stop-marker {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.45), 0 4px 14px rgba(59, 130, 246, 0.35);
}
.roadmap-stop[data-step="2"]:hover .roadmap-stop-marker {
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.55), 0 6px 20px rgba(59, 130, 246, 0.45);
}

/* Step 3: Orange level up */
.roadmap-stop[data-step="3"] .roadmap-stop-marker {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    box-shadow: 0 0 0 2px rgba(245, 158, 11, 0.5), 0 4px 14px rgba(245, 158, 11, 0.4);
}
.roadmap-stop[data-step="3"]:hover .roadmap-stop-marker {
    box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.6), 0 6px 20px rgba(245, 158, 11, 0.5);
}

/* Step 4: Purple masterclasses/interviews */
.roadmap-stop[data-step="4"] .roadmap-stop-marker {
    background: linear-gradient(135deg, #a855f7 0%, #7c3aed 100%);
    box-shadow: 0 0 0 2px rgba(168, 85, 247, 0.45), 0 4px 14px rgba(168, 85, 247, 0.35);
}
.roadmap-stop[data-step="4"]:hover .roadmap-stop-marker {
    box-shadow: 0 0 0 3px rgba(168, 85, 247, 0.55), 0 6px 20px rgba(168, 85, 247, 0.45);
}

.roadmap-stop:hover .roadmap-stop-marker {
    transform: scale(1.08);
}

.roadmap-stop-card {
    width: 100%;
    height: 220px;
    min-height: 220px;
    padding: 1.75rem 1.5rem;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    background: rgba(22, 22, 42, 0.9);
    backdrop-filter: blur(12px);
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
    transition: border-color 0.5s ease, box-shadow 0.5s ease, transform 0.5s ease;
}

/* Spotlight glow on current step's card */
.roadmap-desktop[data-current-step="1"] .roadmap-stop[data-step="1"] .roadmap-stop-card {
    border-color: rgba(34, 197, 94, 0.5);
    box-shadow: 0 10px 26px rgba(0, 0, 0, 0.35), 0 0 18px rgba(34, 197, 94, 0.16);
}
.roadmap-desktop[data-current-step="2"] .roadmap-stop[data-step="2"] .roadmap-stop-card {
    border-color: rgba(59, 130, 246, 0.5);
    box-shadow: 0 10px 26px rgba(0, 0, 0, 0.35), 0 0 18px rgba(59, 130, 246, 0.16);
}
.roadmap-desktop[data-current-step="3"] .roadmap-stop[data-step="3"] .roadmap-stop-card {
    border-color: rgba(245, 158, 11, 0.5);
    box-shadow: 0 10px 26px rgba(0, 0, 0, 0.35), 0 0 18px rgba(245, 158, 11, 0.16);
}
.roadmap-desktop[data-current-step="4"] .roadmap-stop[data-step="4"] .roadmap-stop-card {
    border-color: rgba(168, 85, 247, 0.5);
    box-shadow: 0 10px 26px rgba(0, 0, 0, 0.35), 0 0 18px rgba(168, 85, 247, 0.16);
}

.roadmap-stop[data-step="1"]:hover .roadmap-stop-card {
    border-color: rgba(34, 197, 94, 0.4);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.4), 0 0 20px rgba(34, 197, 94, 0.08);
}
.roadmap-stop[data-step="2"]:hover .roadmap-stop-card {
    border-color: rgba(59, 130, 246, 0.4);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.4), 0 0 20px rgba(59, 130, 246, 0.08);
}
.roadmap-stop[data-step="3"]:hover .roadmap-stop-card {
    border-color: rgba(245, 158, 11, 0.4);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.4), 0 0 20px rgba(245, 158, 11, 0.08);
}
.roadmap-stop[data-step="4"]:hover .roadmap-stop-card {
    border-color: rgba(168, 85, 247, 0.4);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.4), 0 0 20px rgba(168, 85, 247, 0.08);
}

/* Step label colors match marker */
.roadmap-stop-label {
    display: inline-block;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 0.5rem;
}
.roadmap-stop[data-step="1"] .roadmap-stop-label { color: #4ade80; }
.roadmap-stop[data-step="2"] .roadmap-stop-label { color: #60a5fa; }
.roadmap-stop[data-step="3"] .roadmap-stop-label { color: #fbbf24; }
.roadmap-stop[data-step="4"] .roadmap-stop-label { color: #c084fc; }

.roadmap-stop-card h4 {
    font-size: 1.22rem;
    font-weight: 700;
    color: #fff;
    margin: 0 0 0.5rem 0;
    line-height: 1.3;
    flex-shrink: 0;
}

.roadmap-stop-card p {
    font-size: 1.02rem;
    color: rgba(255, 255, 255, 0.8);
    margin: 0;
    line-height: 1.5;
    flex: 1;
    min-height: 0;
    overflow-wrap: break-word;
    word-break: normal;
}

/* CTA - shows "Step X" in current step color */
.roadmap-cta-wrap {
    text-align: center;
    padding-top: 0.35rem;
}

.roadmap-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1.1rem 2.6rem;
    color: #fff !important;
    font-weight: 700;
    font-size: 1.28rem;
    letter-spacing: 0.03em;
    border-radius: 9999px;
    text-decoration: none;
    border: 1px solid rgba(255, 255, 255, 0.12);
    transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease, color 0.3s ease, border-color 0.3s ease;
    cursor: default;
    pointer-events: none;
}

.roadmap-cta-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-right: 0.55rem;
    font-size: 1.2rem;
}

.roadmap-cta-step-1 {
    background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
    box-shadow: 0 8px 26px rgba(15, 23, 42, 0.9), 0 0 20px rgba(34, 197, 94, 0.45);
}
.roadmap-cta-step-1:hover {
    box-shadow: 0 10px 32px rgba(15, 23, 42, 0.95), 0 0 26px rgba(34, 197, 94, 0.6);
    border-color: rgba(34, 197, 94, 0.6);
    color: #fff;
}

.roadmap-cta-step-2 {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    box-shadow: 0 8px 26px rgba(15, 23, 42, 0.9), 0 0 20px rgba(59, 130, 246, 0.45);
}
.roadmap-cta-step-2:hover {
    box-shadow: 0 10px 32px rgba(15, 23, 42, 0.95), 0 0 26px rgba(59, 130, 246, 0.6);
    border-color: rgba(59, 130, 246, 0.6);
    color: #fff;
}

.roadmap-cta-step-3 {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    box-shadow: 0 8px 26px rgba(15, 23, 42, 0.9), 0 0 20px rgba(245, 158, 11, 0.45);
}
.roadmap-cta-step-3:hover {
    box-shadow: 0 10px 32px rgba(15, 23, 42, 0.95), 0 0 26px rgba(245, 158, 11, 0.6);
    border-color: rgba(245, 158, 11, 0.6);
    color: #fff;
}

.roadmap-cta-step-4 {
    background: linear-gradient(135deg, #a855f7 0%, #7c3aed 100%);
    box-shadow: 0 8px 26px rgba(15, 23, 42, 0.9), 0 0 20px rgba(168, 85, 247, 0.45);
}
.roadmap-cta-step-4:hover {
    box-shadow: 0 10px 32px rgba(15, 23, 42, 0.95), 0 0 26px rgba(168, 85, 247, 0.6);
    border-color: rgba(168, 85, 247, 0.6);
    color: #fff;
}

.roadmap-cta:hover {
    transform: translateY(-2px);
}

/* Light theme overrides */
html:not([data-theme='dark']) .roadmap-panel {
    background: linear-gradient(145deg, #004aad 0%, #0066cc 50%, #003d8f 100%);
    border-color: rgba(255, 255, 255, 0.25);
}

html:not([data-theme='dark']) .roadmap-title,
html:not([data-theme='dark']) .roadmap-stop-card h4 {
    color: #fff;
}

html:not([data-theme='dark']) .roadmap-subtitle {
    color: rgba(255, 255, 255, 0.85);
}

html:not([data-theme='dark']) .roadmap-stop-card {
    background: rgba(0, 0, 0, 0.2);
    border-color: rgba(255, 255, 255, 0.3);
}

html:not([data-theme='dark']) .roadmap-stop-card p {
    color: rgba(255, 255, 255, 0.9);
}

/* ---------- Mobile Roadmap ---------- */
.roadmap-mobile-inner {
    padding: 0 0.5rem 0.5rem 0.5rem;
}

.roadmap-mobile-title {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-size: 1.35rem;
    font-weight: 700;
    color: #fff;
    margin: 0 0 0.25rem 0;
}

.roadmap-mobile-title i {
    color: #4ade80;
    text-shadow: 0 0 16px rgba(74, 222, 128, 0.55), 0 0 22px rgba(74, 222, 128, 0.45);
}

.roadmap-mobile-subtitle {
    text-align: center;
    color: rgba(255, 255, 255, 0.75);
    font-size: 0.9rem;
    margin: 0 0 1.1rem 0;
}

/* Shared video embed styling for desktop and mobile roadmap */
.roadmap-video-embed {
    max-width: 720px;
    margin: 1.75rem auto 2.25rem auto;
}

.roadmap-video-embed .video-wrapper {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
}

.roadmap-video-embed .video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 14px;
}

.roadmap-mobile-row {
    display: flex;
    flex-wrap: nowrap;
    gap: 0.9rem;
    margin-bottom: 1.5rem;
    overflow-x: auto;
    padding-bottom: 0.5rem;
    -webkit-overflow-scrolling: touch;
}

.roadmap-mobile-step {
    flex: 0 0 180px;
    min-width: 180px;
    max-width: 180px;
    display: flex;
    flex-direction: column;
    align-items: center;
    opacity: 0.65;
    transform: scale(0.97);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.roadmap-mobile[data-current-step="1"] .roadmap-mobile-step[data-step="1"],
.roadmap-mobile[data-current-step="2"] .roadmap-mobile-step[data-step="2"],
.roadmap-mobile[data-current-step="3"] .roadmap-mobile-step[data-step="3"],
.roadmap-mobile[data-current-step="4"] .roadmap-mobile-step[data-step="4"] {
    opacity: 1;
    transform: scale(1);
}

.roadmap-mobile-marker {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 0.85rem;
    margin-bottom: 0.5rem;
}
.roadmap-mobile-step[data-step="1"] .roadmap-mobile-marker {
    background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
    box-shadow: 0 2px 10px rgba(34, 197, 94, 0.35);
}
.roadmap-mobile-step[data-step="2"] .roadmap-mobile-marker {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    box-shadow: 0 2px 10px rgba(59, 130, 246, 0.35);
}
.roadmap-mobile-step[data-step="3"] .roadmap-mobile-marker {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    box-shadow: 0 2px 10px rgba(245, 158, 11, 0.35);
}
.roadmap-mobile-step[data-step="4"] .roadmap-mobile-marker {
    background: linear-gradient(135deg, #a855f7 0%, #7c3aed 100%);
    box-shadow: 0 2px 10px rgba(168, 85, 247, 0.35);
}

.roadmap-mobile-card {
    width: 100%;
    height: 200px;
    min-height: 200px;
    padding: 1.05rem 1.05rem;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    background: rgba(22, 22, 42, 0.9);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
    transition: border-color 0.5s ease, box-shadow 0.5s ease;
}

.roadmap-mobile[data-current-step="1"] .roadmap-mobile-step[data-step="1"] .roadmap-mobile-card {
    border-color: rgba(34, 197, 94, 0.5);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.35), 0 0 20px rgba(34, 197, 94, 0.18);
}
.roadmap-mobile[data-current-step="2"] .roadmap-mobile-step[data-step="2"] .roadmap-mobile-card {
    border-color: rgba(59, 130, 246, 0.5);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.35), 0 0 20px rgba(59, 130, 246, 0.18);
}
.roadmap-mobile[data-current-step="3"] .roadmap-mobile-step[data-step="3"] .roadmap-mobile-card {
    border-color: rgba(245, 158, 11, 0.5);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.35), 0 0 20px rgba(245, 158, 11, 0.18);
}
.roadmap-mobile[data-current-step="4"] .roadmap-mobile-step[data-step="4"] .roadmap-mobile-card {
    border-color: rgba(168, 85, 247, 0.5);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.35), 0 0 20px rgba(168, 85, 247, 0.18);
}

.roadmap-mobile-label {
    display: inline-block;
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 0.3rem;
}
.roadmap-mobile-step[data-step="1"] .roadmap-mobile-label { color: #4ade80; }
.roadmap-mobile-step[data-step="2"] .roadmap-mobile-label { color: #60a5fa; }
.roadmap-mobile-step[data-step="3"] .roadmap-mobile-label { color: #fbbf24; }
.roadmap-mobile-step[data-step="4"] .roadmap-mobile-label { color: #c084fc; }

.roadmap-mobile-card h4 {
    font-size: 0.95rem;
    font-weight: 700;
    color: #fff;
    margin: 0 0 0.35rem 0;
    line-height: 1.3;
    flex-shrink: 0;
}

.roadmap-mobile-card p {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.8);
    margin: 0;
    line-height: 1.5;
    flex: 1;
    min-height: 0;
    overflow-wrap: break-word;
    word-break: normal;
}

.roadmap-mobile-cta {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    margin-top: 0.5rem;
    padding: 1rem 1.5rem;
    color: #fff !important;
    font-weight: 700;
    font-size: 1.05rem;
    border-radius: 12px;
    text-decoration: none;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.roadmap-mobile-cta:hover {
    transform: translateY(-2px);
    color: #fff;
}

/* Mobile light theme */
html:not([data-theme='dark']) .roadmap-mobile-title,
html:not([data-theme='dark']) .roadmap-mobile-card h4 {
    color: #fff;
}

html:not([data-theme='dark']) .roadmap-mobile-card {
    background: rgba(0, 0, 0, 0.25);
    border-color: rgba(255, 255, 255, 0.35);
}

html:not([data-theme='dark']) .roadmap-mobile-card p {
    color: rgba(255, 255, 255, 0.95);
}

/* Responsive: narrow desktop smaller cards */
@media (min-width: 769px) and (max-width: 960px) {
    .roadmap-stop {
        max-width: 240px;
    }
    .roadmap-stop-card {
        padding: 0.85rem 0.9rem;
    }
    .roadmap-stop-card h4 {
        font-size: 0.88rem;
    }
    .roadmap-stop-card p {
        font-size: 0.75rem;
    }
}
