/**
 * TeacherAI Center - Smart Wait Screen Styles
 * Created by: Claude 141
 * Date: November 21, 2025
 * Purpose: Engaging, educational wait experience during lesson generation
 * 
 * COMPONENTS:
 * - Timeline (left): Visual progress tracker with step completion
 * - Educational Cards (right): Rotating feature highlights
 * - Coffee Message: Appears at 90 seconds
 * - Professional design: Purple/blue gradients, smooth animations
 */

/* ===========================================
   GENERATION SCREEN CONTAINER
   =========================================== */

.generation-header {
    text-align: center;
    margin-bottom: 40px;
}

.generation-header h2 {
    font-size: 32px;
    color: #6366f1;
    margin-bottom: 10px;
    font-weight: 700;
}

.time-estimate {
    font-size: 18px;
    color: #6b7280;
    margin-bottom: 5px;
    font-weight: 500;
}

.comparison {
    font-size: 14px;
    color: #9ca3af;
    font-style: italic;
}

/* ===========================================
   MAIN CONTAINER - TWO COLUMN LAYOUT
   =========================================== */

.generation-container {
    display: flex;
    gap: 40px;
    align-items: flex-start;
    max-width: 1000px;
    margin: 0 auto;
}

/* ===========================================
   TIMELINE (LEFT SIDE)
   =========================================== */

.progress-timeline {
    flex: 0 0 320px;
    background: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.progress-step {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    border-radius: 8px;
    transition: all 0.3s ease;
    color: #9ca3af;
}

.progress-step.active {
    background: linear-gradient(135deg, #e0e7ff 0%, #f3f4f6 100%);
    color: #6366f1;
    animation: pulse 2s infinite;
}

.progress-step.completed {
    color: #10b981;
}

.step-icon {
    font-size: 24px;
    flex-shrink: 0;
}

.step-text {
    flex: 1;
    font-size: 14px;
    font-weight: 500;
}

.step-status {
    font-size: 18px;
    flex-shrink: 0;
}

.progress-arrow {
    text-align: center;
    color: #d1d5db;
    font-size: 20px;
    margin: 8px 0;
}

/* Pulse animation for active step */
@keyframes pulse {
    0%, 100% { 
        box-shadow: 0 0 0 0 rgba(99, 102, 241, 0.4); 
    }
    50% { 
        box-shadow: 0 0 0 8px rgba(99, 102, 241, 0); 
    }
}

/* ===========================================
   EDUCATIONAL CARDS (RIGHT SIDE)
   =========================================== */

.education-cards {
    flex: 1;
    position: relative;
    min-height: 350px;
}

.edu-card {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    padding: 40px;
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    border-radius: 16px;
    box-shadow: 0 8px 24px rgba(99, 102, 241, 0.3);
    color: white;
    text-align: center;
    opacity: 0;
    display: none;
    transition: opacity 1s ease;
}

.edu-card.active {
    opacity: 1;
    display: block;
}

.card-icon {
    font-size: 64px;
    margin-bottom: 20px;
}

.edu-card h3 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 16px;
    color: white;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.edu-card p {
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 8px;
    color: rgba(255,255,255,0.95);
}

/* ===========================================
   COFFEE MESSAGE
   =========================================== */

.coffee-message {
    text-align: center;
    margin-top: 30px;
    padding: 16px;
    background: #fef3c7;
    border: 2px solid #fbbf24;
    border-radius: 8px;
    font-size: 16px;
    color: #92400e;
    font-weight: 600;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

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

@media (max-width: 768px) {
    .generation-header h2 {
        font-size: 24px;
    }
    
    .time-estimate {
        font-size: 16px;
    }
    
    .comparison {
        font-size: 13px;
    }
    
    .generation-container {
        flex-direction: column;
        gap: 30px;
    }
    
    .progress-timeline {
        flex: 1 1 auto;
        width: 100%;
        padding: 20px;
    }
    
    .progress-step {
        padding: 10px;
    }
    
    .step-text {
        font-size: 13px;
    }
    
    .education-cards {
        position: relative;
        min-height: 300px;
    }
    
    .edu-card {
        padding: 30px 20px;
    }
    
    .card-icon {
        font-size: 48px;
        margin-bottom: 15px;
    }
    
    .edu-card h3 {
        font-size: 20px;
        margin-bottom: 12px;
    }
    
    .edu-card p {
        font-size: 14px;
    }
    
    .coffee-message {
        font-size: 14px;
        padding: 12px;
    }
}

/* ===========================================
   TABLET BREAKPOINT
   =========================================== */

@media (min-width: 769px) and (max-width: 1024px) {
    .generation-container {
        gap: 30px;
    }
    
    .progress-timeline {
        flex: 0 0 280px;
        padding: 25px;
    }
    
    .edu-card {
        padding: 35px 25px;
    }
}

/* ===========================================
   ACCESSIBILITY
   =========================================== */

/* Reduce motion for users who prefer it */
@media (prefers-reduced-motion: reduce) {
    .progress-step,
    .edu-card {
        transition: none;
    }
    
    .progress-step.active {
        animation: none;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .progress-timeline {
        border: 2px solid #000;
    }
    
    .edu-card {
        border: 2px solid rgba(255,255,255,0.3);
    }
}

/* ===========================================
   END SMART WAIT SCREEN STYLES
   =========================================== */
