/**
 * Event Face Recognition - Main Stylesheet
 * Modern, responsive design for event photo finder
 */

/* ========================================
   CSS Variables & Reset
======================================== */
:root {
    --primary-color: #667eea;
    --secondary-color: #764ba2;
    --success-color: #2ecc71;
    --warning-color: #f39c12;
    --danger-color: #e74c3c;
    --dark-color: #2c3e50;
    --light-color: #ecf0f1;
    --text-muted: #6c757d;
    
    --gradient-primary: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --shadow-sm: 0 2px 10px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 5px 20px rgba(0, 0, 0, 0.15);
    --shadow-lg: 0 15px 35px rgba(0, 0, 0, 0.2);
    
    --border-radius-sm: 8px;
    --border-radius-md: 12px;
    --border-radius-lg: 20px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: var(--dark-color);
    overflow-x: hidden;
}

/* ========================================
   Hero Section
======================================== */
.hero-section {
    position: relative;
    min-height: 100vh;
    background: url('https://images.unsplash.com/photo-1519741497674-611481863552?ixlib=rb-4.0.3&auto=format&fit=crop&w=1920&q=80') center/cover no-repeat;
    display: flex;
    align-items: center;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.9) 0%, rgba(118, 75, 162, 0.85) 100%);
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero-content h1 {
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1.2;
}

@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 2.5rem;
    }
}

/* QR Card */
.qr-card {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border-radius: var(--border-radius-lg);
    padding: 40px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.qr-image {
    width: 180px;
    height: 180px;
    border-radius: var(--border-radius-md);
    background: white;
    padding: 10px;
}

/* Stats */
.stat-item {
    text-align: center;
    color: white;
}

.stat-item h3 {
    font-size: 2rem;
    font-weight: 700;
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    animation: bounce 2s infinite;
}

.scroll-indicator a {
    color: white;
    font-size: 2rem;
    text-decoration: none;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    40% {
        transform: translateX(-50%) translateY(-10px);
    }
    60% {
        transform: translateX(-50%) translateY(-5px);
    }
}

/* ========================================
   Steps Section
======================================== */
.step-card {
    padding: 40px 30px;
    background: white;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-md);
    transition: transform 0.3s;
    height: 100%;
}

.step-card:hover {
    transform: translateY(-10px);
}

.step-icon {
    width: 80px;
    height: 80px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    font-size: 2rem;
    color: white;
}

/* ========================================
   Features Section
======================================== */
.feature-card {
    padding: 30px;
    background: white;
    border-radius: var(--border-radius-md);
    box-shadow: var(--shadow-sm);
    height: 100%;
    transition: transform 0.3s;
}

.feature-card:hover {
    transform: translateY(-5px);
}

.feature-icon {
    width: 60px;
    height: 60px;
    background: rgba(102, 126, 234, 0.1);
    border-radius: var(--border-radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    font-size: 1.5rem;
    color: var(--primary-color);
}

/* ========================================
   CTA Section
======================================== */
.cta-section {
    background: var(--light-color);
}

.cta-card {
    background: var(--gradient-primary);
    border-radius: var(--border-radius-lg);
    padding: 50px;
    box-shadow: var(--shadow-lg);
}

/* ========================================
   Footer
======================================== */
.footer {
    background: var(--dark-color);
    color: white;
}

/* ========================================
   Utility Classes
======================================== */
.btn {
    border-radius: var(--border-radius-sm);
    font-weight: 500;
    transition: all 0.3s;
}

.btn-primary {
    background: var(--gradient-primary);
    border: none;
}

.btn-primary:hover {
    background: var(--gradient-primary);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-light {
    color: var(--primary-color);
}

.bg-gradient-primary {
    background: var(--gradient-primary);
}

.text-gradient {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ========================================
   Animations
======================================== */
.fade-in {
    animation: fadeIn 0.5s ease-in;
}

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

.slide-up {
    animation: slideUp 0.6s ease-out;
}

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

/* ========================================
   Results Page Stats Bar
======================================== */
.stats-bar {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
    padding: 20px;
    background: white;
    border-radius: var(--border-radius-md);
    box-shadow: var(--shadow-sm);
}

.stats-bar .stat-item {
    color: var(--dark-color);
    display: flex;
    align-items: center;
    gap: 10px;
}

.stats-bar .stat-item i {
    color: var(--primary-color);
}

@media (max-width: 576px) {
    .stats-bar {
        flex-direction: column;
        gap: 15px;
        align-items: center;
    }
}

/* ========================================
   Responsive Adjustments
======================================== */
@media (max-width: 768px) {
    .hero-section {
        min-height: auto;
        padding: 80px 0;
    }
    
    .qr-card {
        margin-top: 40px;
    }
    
    .step-card, .feature-card {
        margin-bottom: 20px;
    }
}

/* ========================================
   Loading & States
======================================== */
.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid rgba(102, 126, 234, 0.2);
    border-top-color: var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.placeholder-glow {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
    0% {
        background-position: -200% 0;
    }
    100% {
        background-position: 200% 0;
    }
}

