/* ============================================
   Configurator Styles
   Multi-step wizard with premium dark theme
   ============================================ */

.config {
    position: relative;
    z-index: 1;
    padding: 160px 0 100px;
    min-height: 100vh;
}

.config__header {
    text-align: center;
    margin-bottom: 60px;
}

.config__header .section-subtitle {
    max-width: 600px;
    margin: 0 auto;
}

/* Progress Bar */
.config__progress {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    margin-bottom: 60px;
    padding: 0 40px;
}

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

.progress-step__number {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-display);
    font-size: 18px;
    font-weight: 400;
    color: var(--text-muted);
    background: var(--bg-primary);
    transition: all 0.5s var(--ease-out-expo);
}

.progress-step.active .progress-step__number {
    border-color: var(--gold);
    color: var(--gold);
    box-shadow: 0 0 20px rgba(201, 168, 76, 0.2);
}

.progress-step.completed .progress-step__number {
    border-color: var(--gold);
    background: var(--gold);
    color: var(--bg-primary);
}

.progress-step__label {
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--text-muted);
    transition: color 0.4s ease;
    white-space: nowrap;
}

.progress-step.active .progress-step__label,
.progress-step.completed .progress-step__label {
    color: var(--text-secondary);
}

.progress-line {
    flex: 1;
    max-width: 120px;
    height: 1px;
    background: rgba(255,255,255,0.06);
    margin: 0 16px;
    margin-bottom: 24px;
    position: relative;
}

.progress-line__fill {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 0;
    background: var(--gold);
    transition: width 0.6s var(--ease-out-expo);
}

/* Steps */
.config__step {
    display: none;
    animation: stepFadeIn 0.5s var(--ease-out-expo);
}

.config__step.active {
    display: block;
}

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

.config__step-title {
    font-family: var(--font-display);
    font-size: 28px;
    font-weight: 400;
    text-align: center;
    margin-bottom: 40px;
    color: var(--text-primary);
}

/* Option Cards */
.config__options {
    display: grid;
    gap: 20px;
    max-width: 900px;
    margin: 0 auto;
}

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

.config__options--2 {
    grid-template-columns: repeat(2, 1fr);
    max-width: 640px;
}

.config-option {
    background: var(--bg-card);
    border: 1px solid rgba(255,255,255,0.04);
    padding: 36px 28px;
    cursor: pointer;
    transition: all 0.5s var(--ease-out-expo);
    position: relative;
    overflow: hidden;
    text-align: center;
}

.config-option::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--gold), var(--copper));
    transform: scaleX(0);
    transform-origin: center;
    transition: transform 0.5s var(--ease-out-expo);
}

.config-option:hover {
    border-color: rgba(201, 168, 76, 0.15);
    transform: translateY(-4px);
    box-shadow: 0 16px 48px rgba(0,0,0,0.3), 0 0 30px var(--gold-glow);
}

.config-option:hover::after {
    transform: scaleX(1);
}

.config-option.selected {
    border-color: var(--gold);
    box-shadow: 0 0 40px var(--gold-glow);
}

.config-option.selected::after {
    transform: scaleX(1);
}

.config-option__icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 20px;
    color: var(--gold);
    opacity: 0.6;
    transition: opacity 0.4s ease;
}

.config-option:hover .config-option__icon,
.config-option.selected .config-option__icon {
    opacity: 1;
}

.config-option__icon svg {
    width: 100%;
    height: 100%;
}

.config-option__icon,
.config-option__title,
.config-option__desc,
.config-option__badge {
    pointer-events: none;
}

.config-option__title {
    font-family: var(--font-display);
    font-size: 22px;
    font-weight: 500;
    margin-bottom: 8px;
    transition: color 0.3s ease;
}

.config-option:hover .config-option__title {
    color: var(--gold-light);
}

.config-option__desc {
    font-size: 14px;
    font-weight: 300;
    color: var(--text-secondary);
    line-height: 1.6;
}

.config-option__badge {
    display: inline-block;
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--text-muted);
    padding: 4px 14px;
    border: 1px solid rgba(255,255,255,0.1);
    margin-bottom: 16px;
}

.config-option__badge--accent {
    color: var(--text-primary);
    border-color: rgba(255,255,255,0.2);
}

.config-option__badge--gold {
    color: var(--gold);
    border-color: rgba(201, 168, 76, 0.3);
}

/* Back Button */
.config__back {
    display: block;
    margin: 40px auto 0;
    background: none;
    border: none;
    color: var(--text-muted);
    font-family: var(--font-body);
    font-size: 14px;
    cursor: pointer;
    transition: color 0.3s ease;
    padding: 8px 16px;
}

.config__back:hover {
    color: var(--gold);
}

/* Result */
.config__result {
    max-width: 800px;
    margin: 0 auto;
}

.result__header {
    text-align: center;
    margin-bottom: 48px;
}

.result__title {
    font-family: var(--font-display);
    font-size: 32px;
    font-weight: 400;
    margin-bottom: 8px;
}

.result__subtitle {
    font-size: 16px;
    color: var(--text-secondary);
    font-weight: 300;
}

.result__badge {
    display: inline-block;
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--gold);
    padding: 6px 16px;
    border: 1px solid rgba(201, 168, 76, 0.3);
    margin-bottom: 20px;
}

/* Spec Table */
.spec-table {
    width: 100%;
    margin: 32px 0;
    border-collapse: collapse;
}

.spec-table thead th {
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--gold);
    padding: 14px 16px;
    text-align: left;
    border-bottom: 1px solid rgba(201, 168, 76, 0.2);
    background: var(--bg-card);
}

.spec-table tbody td {
    font-size: 15px;
    font-weight: 300;
    color: var(--text-secondary);
    padding: 14px 16px;
    border-bottom: 1px solid rgba(255,255,255,0.04);
    transition: all 0.3s ease;
}

.spec-table tbody tr {
    animation: rowAppear 0.4s var(--ease-out-expo) backwards;
}

.spec-table tbody tr:nth-child(1) { animation-delay: 0.05s; }
.spec-table tbody tr:nth-child(2) { animation-delay: 0.1s; }
.spec-table tbody tr:nth-child(3) { animation-delay: 0.15s; }
.spec-table tbody tr:nth-child(4) { animation-delay: 0.2s; }
.spec-table tbody tr:nth-child(5) { animation-delay: 0.25s; }
.spec-table tbody tr:nth-child(6) { animation-delay: 0.3s; }
.spec-table tbody tr:nth-child(7) { animation-delay: 0.35s; }
.spec-table tbody tr:nth-child(8) { animation-delay: 0.4s; }
.spec-table tbody tr:nth-child(9) { animation-delay: 0.45s; }
.spec-table tbody tr:nth-child(10) { animation-delay: 0.5s; }

@keyframes rowAppear {
    from {
        opacity: 0;
        transform: translateX(-10px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.spec-table tbody tr:hover td {
    background: rgba(201, 168, 76, 0.03);
    color: var(--text-primary);
}

.spec-table .material-name {
    font-weight: 400;
    color: var(--text-primary);
}

.spec-table .material-detail {
    font-size: 13px;
    color: var(--text-muted);
    display: block;
    margin-top: 2px;
}

/* Result Stats */
.result__stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin: 40px 0;
}

.result-stat {
    background: var(--bg-card);
    border: 1px solid rgba(255,255,255,0.04);
    padding: 24px;
    text-align: center;
    animation: rowAppear 0.5s var(--ease-out-expo) backwards;
}

.result-stat:nth-child(1) { animation-delay: 0.3s; }
.result-stat:nth-child(2) { animation-delay: 0.4s; }
.result-stat:nth-child(3) { animation-delay: 0.5s; }

.result-stat__value {
    font-family: var(--font-display);
    font-size: 32px;
    font-weight: 300;
    color: var(--gold);
    margin-bottom: 4px;
}

.result-stat__label {
    font-size: 12px;
    color: var(--text-muted);
    letter-spacing: 1px;
}

/* Result Note */
.result__note {
    margin-top: 32px;
    padding: 20px 24px;
    background: rgba(201, 168, 76, 0.04);
    border-left: 2px solid var(--gold);
    font-size: 14px;
    font-weight: 300;
    color: var(--text-secondary);
    line-height: 1.7;
}

/* Result Actions */
.config__result-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    margin-top: 48px;
}

/* Responsive */
@media (max-width: 768px) {
    .config__options--3 {
        grid-template-columns: 1fr;
    }

    .config__progress {
        padding: 0 10px;
    }

    .progress-line {
        max-width: 40px;
        margin: 0 8px;
    }

    .progress-step__label {
        font-size: 9px;
    }

    .result__stats {
        grid-template-columns: 1fr;
    }

    .config__result-actions {
        flex-direction: column;
        align-items: center;
    }
}
