/**
 * ============================================================================
 * AI Matchmaking Flow - Theme-Compliant Styles
 * ============================================================================
 *
 * Design System Compliant - Uses only CSS variables from theme-config.css
 * Brand Colors: Primary Red (var(--color-primary)), Dark Navy (var(--color-secondary))
 * Typography: Parkinsans (headings), Lato (body)
 *
 * ============================================================================
 */

/* ========================================
   PROGRESS INDICATORS
   ======================================== */

.progress-header {
    text-align: center;
    margin-bottom: var(--space-8);
    color: var(--color-white);
}

.progress-step {
    font-family: var(--font-body);
    font-size: var(--text-sm);
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: var(--space-2);
    font-weight: var(--font-weight-medium);
}

.progress-title {
    font-family: var(--font-heading);
    font-size: var(--text-4xl);
    font-weight: var(--font-weight-bold);
    color: var(--color-white);
    margin-bottom: var(--space-3);
    line-height: var(--leading-tight);
}

.progress-description {
    font-family: var(--font-body);
    font-size: var(--text-lg);
    color: rgba(255, 255, 255, 0.9);
    line-height: var(--leading-relaxed);
}

/* ========================================
   LOADING STATES
   ======================================== */

.loading-container {
    background: var(--color-white);
    border-radius: var(--radius-3xl);
    padding: var(--space-12);
    box-shadow: var(--shadow-2xl);
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.loading-icon {
    color: var(--color-primary);
    margin-bottom: var(--space-6);
}

.loading-title {
    font-family: var(--font-heading);
    font-size: var(--text-3xl);
    font-weight: var(--font-weight-bold);
    color: var(--color-dark);
    margin-bottom: var(--space-4);
}

.loading-subtitle {
    font-family: var(--font-body);
    font-size: var(--text-base);
    color: var(--color-gray-600);
    margin-bottom: var(--space-8);
}

.progress-bar-container {
    background: var(--color-gray-200);
    border-radius: var(--radius-full);
    height: 8px;
    overflow: hidden;
    margin-bottom: var(--space-6);
}

.progress-bar {
    background: var(--gradient-primary);
    height: 100%;
    border-radius: var(--radius-full);
    transition: width var(--transition-slow);
}

.progress-steps {
    text-align: left;
    margin-top: var(--space-6);
}

.progress-step-item {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    padding: var(--space-3) 0;
    font-family: var(--font-body);
    font-size: var(--text-base);
}

.progress-step-item.completed {
    color: var(--color-success);
}

.progress-step-item.active {
    color: var(--color-primary);
    font-weight: var(--font-weight-semibold);
}

.progress-step-item.pending {
    color: var(--color-gray-400);
}

/* ========================================
   MENTOR CARDS
   ======================================== */

.mentor-card {
    background: var(--color-white);
    border-radius: var(--radius-2xl);
    padding: var(--space-6);
    box-shadow: var(--shadow-md);
    transition: all var(--transition-base);
    border: 2px solid transparent;
}

.mentor-card:hover {
    box-shadow: var(--shadow-xl);
    transform: translateY(-4px);
    border-color: var(--color-primary);
}

.mentor-card-header {
    display: flex;
    align-items: center;
    gap: var(--space-4);
    margin-bottom: var(--space-6);
}

.mentor-avatar {
    width: 80px;
    height: 80px;
    border-radius: var(--radius-full);
    object-fit: cover;
    border: 3px solid var(--color-primary);
}

.mentor-info {
    flex: 1;
}

.mentor-name {
    font-family: var(--font-heading);
    font-size: var(--text-2xl);
    font-weight: var(--font-weight-bold);
    color: var(--color-dark);
    margin-bottom: var(--space-1);
}

.mentor-title {
    font-family: var(--font-body);
    font-size: var(--text-base);
    color: var(--color-gray-600);
    margin-bottom: var(--space-2);
}

.match-score {
    display: inline-block;
    background: var(--gradient-primary);
    color: var(--color-white);
    padding: var(--space-1) var(--space-3);
    border-radius: var(--radius-full);
    font-family: var(--font-heading);
    font-size: var(--text-sm);
    font-weight: var(--font-weight-bold);
}

.mentor-expertise {
    margin-bottom: var(--space-4);
}

.expertise-label {
    font-family: var(--font-heading);
    font-size: var(--text-sm);
    font-weight: var(--font-weight-semibold);
    color: var(--color-dark);
    margin-bottom: var(--space-2);
    text-transform: uppercase;
    letter-spacing: var(--tracking-wide);
}

.expertise-tags {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-2);
}

.expertise-tag {
    background: var(--color-light-bg);
    color: var(--color-primary);
    padding: var(--space-1-5) var(--space-3);
    border-radius: var(--radius-full);
    font-family: var(--font-body);
    font-size: var(--text-sm);
    font-weight: var(--font-weight-medium);
}

.mentor-bio {
    font-family: var(--font-body);
    font-size: var(--text-base);
    color: var(--color-gray-700);
    line-height: var(--leading-relaxed);
    margin-bottom: var(--space-6);
}

/* ========================================
   BUTTONS & ACTIONS
   ======================================== */

.btn-select-mentor {
    width: 100%;
    background: var(--gradient-primary);
    color: var(--color-white);
    font-family: var(--font-heading);
    font-weight: var(--font-weight-semibold);
    font-size: var(--text-base);
    padding: var(--space-4) var(--space-6);
    border-radius: var(--radius-full);
    border: none;
    cursor: pointer;
    transition: all var(--transition-base);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
}

.btn-select-mentor:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-primary);
    color: var(--color-white);
    text-decoration: none;
}

.btn-select-mentor:active {
    transform: translateY(0);
}

.btn-back {
    background: var(--color-secondary);
    color: var(--color-white);
    font-family: var(--font-heading);
    font-weight: var(--font-weight-medium);
    font-size: var(--text-base);
    padding: var(--space-3) var(--space-6);
    border-radius: var(--radius-lg);
    border: none;
    cursor: pointer;
    transition: all var(--transition-base);
    text-decoration: none;
}

.btn-back:hover {
    background: var(--color-secondary-light);
    transform: translateY(-1px);
    color: var(--color-white);
    text-decoration: none;
}

/* ========================================
   PAYMENT SECTION
   ======================================== */

.payment-container {
    background: var(--color-white);
    border-radius: var(--radius-3xl);
    padding: var(--space-8);
    box-shadow: var(--shadow-xl);
    max-width: 600px;
    margin: 0 auto;
}

.payment-header {
    text-align: center;
    margin-bottom: var(--space-8);
}

.payment-title {
    font-family: var(--font-heading);
    font-size: var(--text-3xl);
    font-weight: var(--font-weight-bold);
    color: var(--color-dark);
    margin-bottom: var(--space-3);
}

.payment-subtitle {
    font-family: var(--font-body);
    font-size: var(--text-base);
    color: var(--color-gray-600);
}

.package-selection {
    margin-bottom: var(--space-6);
}

.package-card {
    background: var(--color-light-bg);
    border: 2px solid transparent;
    border-radius: var(--radius-xl);
    padding: var(--space-6);
    margin-bottom: var(--space-4);
    cursor: pointer;
    transition: all var(--transition-base);
}

.package-card:hover {
    border-color: var(--color-primary);
    transform: translateY(-2px);
}

.package-card.selected {
    border-color: var(--color-primary);
    background: var(--color-primary-lighter);
}

.package-name {
    font-family: var(--font-heading);
    font-size: var(--text-xl);
    font-weight: var(--font-weight-bold);
    color: var(--color-dark);
    margin-bottom: var(--space-2);
}

.package-price {
    font-family: var(--font-heading);
    font-size: var(--text-4xl);
    font-weight: var(--font-weight-bold);
    color: var(--color-primary);
    margin-bottom: var(--space-3);
}

.package-description {
    font-family: var(--font-body);
    font-size: var(--text-base);
    color: var(--color-gray-700);
    line-height: var(--leading-relaxed);
}

/* ========================================
   SUCCESS STATES
   ======================================== */

.success-container {
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
    padding: var(--space-12);
}

.success-icon {
    width: 120px;
    height: 120px;
    margin: 0 auto var(--space-6);
    background: var(--gradient-success);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-white);
    font-size: var(--text-6xl);
}

.success-title {
    font-family: var(--font-heading);
    font-size: var(--text-4xl);
    font-weight: var(--font-weight-bold);
    color: var(--color-white);
    margin-bottom: var(--space-4);
}

.success-message {
    font-family: var(--font-body);
    font-size: var(--text-lg);
    color: rgba(255, 255, 255, 0.9);
    line-height: var(--leading-relaxed);
    margin-bottom: var(--space-8);
}

.next-steps {
    background: var(--color-white);
    border-radius: var(--radius-2xl);
    padding: var(--space-8);
    margin-bottom: var(--space-8);
    text-align: left;
}

.next-steps-title {
    font-family: var(--font-heading);
    font-size: var(--text-2xl);
    font-weight: var(--font-weight-bold);
    color: var(--color-dark);
    margin-bottom: var(--space-6);
}

.step-item {
    display: flex;
    gap: var(--space-4);
    margin-bottom: var(--space-4);
}

.step-number {
    width: 40px;
    height: 40px;
    background: var(--gradient-primary);
    color: var(--color-white);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-heading);
    font-weight: var(--font-weight-bold);
    flex-shrink: 0;
}

.step-content {
    flex: 1;
    padding-top: var(--space-1);
}

.step-title {
    font-family: var(--font-heading);
    font-size: var(--text-lg);
    font-weight: var(--font-weight-semibold);
    color: var(--color-dark);
    margin-bottom: var(--space-1);
}

.step-description {
    font-family: var(--font-body);
    font-size: var(--text-base);
    color: var(--color-gray-600);
    line-height: var(--leading-relaxed);
}

/* ========================================
   RESPONSIVE DESIGN
   ======================================== */

@media (max-width: 768px) {
    .progress-title {
        font-size: var(--text-3xl);
    }

    .loading-title {
        font-size: var(--text-2xl);
    }

    .mentor-card {
        padding: var(--space-4);
    }

    .mentor-card-header {
        flex-direction: column;
        text-align: center;
    }

    .payment-container {
        padding: var(--space-6);
    }

    .success-container {
        padding: var(--space-8);
    }

    .success-title {
        font-size: var(--text-3xl);
    }
}

/* ========================================
   ANIMATIONS
   ======================================== */

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

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

.fade-in {
    animation: fadeIn var(--transition-slow) var(--ease-out);
}

.slide-in {
    animation: slideIn var(--transition-base) var(--ease-out);
}

/* ========================================
   UTILITY CLASSES
   ======================================== */

.text-center {
    text-align: center;
}

.mb-2 {
    margin-bottom: var(--space-2);
}

.mb-4 {
    margin-bottom: var(--space-4);
}

.mb-6 {
    margin-bottom: var(--space-6);
}

.mb-8 {
    margin-bottom: var(--space-8);
}

.mt-4 {
    margin-top: var(--space-4);
}

.mt-6 {
    margin-top: var(--space-6);
}

.mt-8 {
    margin-top: var(--space-8);
}
