/**
 * Roadmap Progress Module Styles
 *
 * Horizontal progress bar with four stages,
 * matching the approved mockup design.
 */

/* Import Caveat font for title */
@import url('https://fonts.googleapis.com/css2?family=Caveat:wght@500;600&display=swap');

/* Container */
.roadmap-progress {
    margin: 0;
}

/* Title - Outside the card, gold script */
.roadmap-progress__title {
    font-family: 'Caveat', cursive;
    font-size: 2rem;
    font-weight: 600;
    color: #c9a227;
    margin: 0 0 16px 0;
    letter-spacing: 0.5px;
}

/* Card container */
.roadmap-progress__card {
    background: #ffffff;
    border-radius: 16px;
    padding: 32px 40px 24px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

/* Progress Bar Container */
.roadmap-progress__bar {
    position: relative;
    padding: 0 40px;
    margin-bottom: 20px;
}

/* Connecting Line (background - full width) */
.roadmap-progress__line {
    position: absolute;
    top: 24px;
    left: 60px;
    right: 60px;
    height: 3px;
    background: #e5e5e5;
    border-radius: 2px;
    z-index: 1;
}

/* Connecting Line (progress fill - teal) */
.roadmap-progress__line-fill {
    position: absolute;
    top: 24px;
    left: 60px;
    height: 3px;
    background: #1e3a3a;
    border-radius: 2px;
    z-index: 2;
    transition: width 0.5s ease;
}

/* Stages Container */
.roadmap-progress__stages {
    display: flex;
    justify-content: space-between;
    position: relative;
    z-index: 3;
}

/* Individual Stage */
.roadmap-progress__stage {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    transition: transform 0.2s ease;
    flex: 1;
}

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

/* Hover: Light blue to indicate "considering this" (distinct from gold "current") */
.roadmap-progress__stage:hover .roadmap-progress__dot {
    background: #5a9bc7;
    color: #ffffff;
    box-shadow: 0 0 0 4px rgba(90, 155, 199, 0.25), 0 4px 12px rgba(90, 155, 199, 0.3);
}

/* Current stage stays gold on hover (already selected) */
.roadmap-progress__stage--current:hover .roadmap-progress__dot {
    background: #c9a227;
    box-shadow: 0 0 0 6px rgba(201, 162, 39, 0.3), 0 4px 16px rgba(201, 162, 39, 0.4);
}

/* Stage Dot */
.roadmap-progress__dot {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 1.125rem;
    transition: all 0.3s ease;
    position: relative;
}

/* Complete Stage Dot - Dark teal with white checkmark */
.roadmap-progress__stage--complete .roadmap-progress__dot {
    background: #1e3a3a;
    color: #ffffff;
}

/* Current Stage Dot - Gold with gold ring */
.roadmap-progress__stage--current .roadmap-progress__dot {
    background: #c9a227;
    color: #ffffff;
    box-shadow: 0 0 0 4px rgba(201, 162, 39, 0.25);
}

/* Future Stage Dot - Light gray */
.roadmap-progress__stage--future .roadmap-progress__dot {
    background: #e8e8e8;
    color: #999999;
}

/* Icon in dot */
.roadmap-progress__icon {
    width: 22px;
    height: 22px;
    color: currentColor;
}

/* Stage Label */
.roadmap-progress__label {
    margin-top: 16px;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.roadmap-progress__stage-title {
    font-size: 0.9375rem;
    font-weight: 600;
    color: #1a1a1a;
    display: block;
}

.roadmap-progress__stage-subtitle {
    font-size: 0.8125rem;
    font-style: italic;
    color: #888888;
    display: block;
}

.roadmap-progress__stage--future .roadmap-progress__stage-title {
    color: #999999;
}

.roadmap-progress__stage--future .roadmap-progress__stage-subtitle {
    color: #aaaaaa;
}

/* Toggle Link - Centered at bottom of card */
.roadmap-progress__toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 0.9375rem;
    color: #c9a227;
    text-decoration: none;
    padding-top: 16px;
    border-top: 1px solid #f0f0f0;
    transition: color 0.2s ease;
}

.roadmap-progress__toggle:hover {
    color: #a88820;
}

.roadmap-progress__toggle-icon {
    display: flex;
    align-items: center;
    transition: transform 0.3s ease;
}

.roadmap-progress__toggle[aria-expanded="true"] .roadmap-progress__toggle-icon {
    transform: rotate(180deg);
}

/* Details Section */
.roadmap-progress__details {
    margin-top: 24px;
    animation: slideDown 0.3s ease;
}

.roadmap-progress__details[hidden] {
    display: none;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Detail Cards Grid */
.roadmap-progress__detail-cards {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

/* Individual Detail Card */
.roadmap-progress__detail-card {
    display: flex;
    flex-direction: column;
    padding: 16px;
    border-radius: 12px;
    text-decoration: none;
    transition: all 0.2s ease;
    position: relative;
}

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

/* Non-current Detail Cards (complete and future) - unified white style */
.roadmap-progress__detail-card--complete,
.roadmap-progress__detail-card--future {
    background: #ffffff;
    border: 1px solid #e8e8e8;
}

.roadmap-progress__detail-card--complete:hover,
.roadmap-progress__detail-card--future:hover {
    border-color: #d0d0d0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

/* Non-current card text colors - standard dark text on white */
.roadmap-progress__detail-card--complete .roadmap-progress__detail-icon,
.roadmap-progress__detail-card--future .roadmap-progress__detail-icon {
    color: #666666;
}

.roadmap-progress__detail-card--complete .roadmap-progress__detail-title,
.roadmap-progress__detail-card--future .roadmap-progress__detail-title {
    color: #666666;
}

.roadmap-progress__detail-card--complete .roadmap-progress__detail-subtitle,
.roadmap-progress__detail-card--future .roadmap-progress__detail-subtitle {
    color: #888888;
}

.roadmap-progress__detail-card--complete .roadmap-progress__detail-description,
.roadmap-progress__detail-card--future .roadmap-progress__detail-description {
    color: #555555;
}

/* Current Detail Card - solid darker gray for legibility on dark page backgrounds */
.roadmap-progress__detail-card--current {
    background: #3d454e;
    border: 2px solid #c9a227;
}

.roadmap-progress__detail-card--current:hover {
    box-shadow: 0 4px 16px rgba(201, 162, 39, 0.2);
}

/* Current card text colors - must be light to work on dark page backgrounds */
.roadmap-progress__detail-card--current .roadmap-progress__detail-subtitle {
    color: rgba(255, 255, 255, 0.8);
}

.roadmap-progress__detail-card--current .roadmap-progress__detail-description {
    color: rgba(255, 255, 255, 0.9);
}

/* Future Detail Card - styles now unified with complete above */

/* Detail Card Header */
.roadmap-progress__detail-header {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 12px;
}

.roadmap-progress__detail-titles {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.roadmap-progress__detail-icon {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.roadmap-progress__detail-icon .roadmap-progress__icon {
    width: 28px;
    height: 28px;
}

.roadmap-progress__detail-card--current .roadmap-progress__detail-icon {
    color: #c9a227;
}

.roadmap-progress__detail-title {
    font-size: 0.9375rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.roadmap-progress__detail-card--current .roadmap-progress__detail-title {
    color: #c9a227;
}

/* Detail Card Subtitle */
.roadmap-progress__detail-subtitle {
    font-size: 0.8125rem;
    font-style: italic;
    color: #888888;
    line-height: 1.3;
}

/* Detail Card Description */
.roadmap-progress__detail-description {
    font-size: 0.8125rem;
    color: #555555;
    margin: 0;
    line-height: 1.5;
}

/* Current Badge */
.roadmap-progress__detail-badge {
    display: inline-block;
    margin-top: 12px;
    padding: 4px 12px;
    background: #c9a227;
    color: #ffffff;
    font-size: 0.6875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-radius: 12px;
    align-self: flex-start;
}

/* Responsive Styles */
@media (max-width: 900px) {
    .roadmap-progress__card {
        padding: 32px 24px 24px;
    }

    .roadmap-progress__bar {
        padding: 0 30px;
    }

    .roadmap-progress__line {
        left: 50px;
        right: 50px;
    }

    .roadmap-progress__line-fill {
        left: 50px;
    }

    .roadmap-progress__dot {
        width: 40px;
        height: 40px;
    }

    .roadmap-progress__dot .roadmap-progress__icon {
        width: 18px;
        height: 18px;
    }

    .roadmap-progress__stage-title {
        font-size: 0.8125rem;
    }

    .roadmap-progress__stage-subtitle {
        font-size: 0.75rem;
    }

    .roadmap-progress__detail-cards {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .roadmap-progress__title {
        font-size: 1.5rem;
    }

    .roadmap-progress__card {
        padding: 24px 16px 20px;
    }

    .roadmap-progress__bar {
        padding: 0 10px;
    }

    .roadmap-progress__line {
        left: 30px;
        right: 30px;
        top: 20px;
    }

    .roadmap-progress__line-fill {
        left: 30px;
        top: 20px;
    }

    .roadmap-progress__dot {
        width: 36px;
        height: 36px;
    }

    .roadmap-progress__dot .roadmap-progress__icon {
        width: 16px;
        height: 16px;
    }

    .roadmap-progress__label {
        margin-top: 12px;
    }

    .roadmap-progress__stage-title {
        font-size: 0.6875rem;
    }

    .roadmap-progress__stage-subtitle {
        font-size: 0.625rem;
    }

    .roadmap-progress__toggle {
        font-size: 0.8125rem;
    }

    .roadmap-progress__detail-cards {
        grid-template-columns: 1fr;
    }
}
