/* ==========================================================================
   Upclass Meet - Homepage Styles (Light & Modern)
   ========================================================================== */

/* Override dark theme for homepage */
.home-page {
    --bg-primary: #ffffff;
    --bg-secondary: #f8fafc;
    --bg-tertiary: #f1f5f9;
    --text-primary: #0f172a;
    --text-secondary: #475569;
    --text-muted: #94a3b8;
    --border-color: #e2e8f0;
    --accent-gradient: linear-gradient(135deg, #6366f1 0%, #8b5cf6 50%, #a855f7 100%);
    --accent-light: #eef2ff;
    
    background: var(--bg-primary);
    color: var(--text-primary);
}

/* Navigation */
.navbar {
    padding: 1rem 0;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-color);
    transition: all var(--transition-base);
    z-index: 1000;
}

.navbar-brand {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    font-size: 1.375rem;
    font-weight: 700;
    color: var(--text-primary);
    text-decoration: none;
}

.brand-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: var(--accent-gradient);
    border-radius: 12px;
    font-size: 1.125rem;
    color: white;
}

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

.navbar .btn-outline-light {
    color: var(--text-secondary);
    border-color: var(--border-color);
    font-weight: 500;
}

.navbar .btn-outline-light:hover {
    background: var(--bg-secondary);
    color: var(--text-primary);
    border-color: var(--border-color);
}

/* Hero Section */
.hero-section {
    position: relative;
    min-height: 100vh;
    padding-top: 100px;
    overflow: hidden;
    background: linear-gradient(180deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
}

.hero-bg-shapes {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
}

.shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.4;
}

.shape-1 {
    width: 600px;
    height: 600px;
    background: linear-gradient(135deg, #c7d2fe 0%, #ddd6fe 100%);
    top: -200px;
    right: -100px;
}

.shape-2 {
    width: 400px;
    height: 400px;
    background: linear-gradient(135deg, #fce7f3 0%, #ddd6fe 100%);
    bottom: 0;
    left: -100px;
}

.shape-3 {
    width: 300px;
    height: 300px;
    background: linear-gradient(135deg, #cffafe 0%, #c7d2fe 100%);
    top: 40%;
    left: 30%;
}

.hero-content {
    animation: slideUp 0.8s ease-out;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: var(--accent-light);
    border: 1px solid #c7d2fe;
    border-radius: 100px;
    font-size: 0.875rem;
    font-weight: 500;
    color: #6366f1;
    margin-bottom: 1.5rem;
}

.hero-badge i {
    font-size: 1rem;
}

.hero-title {
    font-size: clamp(2.5rem, 5vw, 3.75rem);
    font-weight: 800;
    line-height: 1.1;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
    letter-spacing: -0.02em;
}

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

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    max-width: 520px;
    margin-bottom: 2.5rem;
    line-height: 1.7;
}

/* Join Card */
.join-card {
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 1.5rem;
    max-width: 500px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.04), 0 1px 2px rgba(0, 0, 0, 0.06);
}

.input-group-custom {
    display: flex;
    align-items: stretch;
    background: var(--bg-secondary);
    border-radius: 14px;
    border: 2px solid var(--border-color);
    transition: all var(--transition-fast);
    overflow: hidden;
}

.input-group-custom:focus-within {
    border-color: #6366f1;
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.1);
}

.input-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 1rem;
    color: var(--text-muted);
    font-size: 1.25rem;
}

.join-input {
    flex: 1;
    padding: 1rem 0;
    background: transparent;
    border: none;
    color: var(--text-primary);
    font-size: 1rem;
}

.join-input::placeholder {
    color: var(--text-muted);
}

.join-input:focus {
    outline: none;
}

.btn-join {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 1.5rem;
    background: var(--accent-gradient);
    color: white;
    font-weight: 600;
    font-size: 0.9375rem;
    white-space: nowrap;
    transition: all var(--transition-base);
    border: none;
}

.btn-join:hover {
    opacity: 0.9;
    transform: translateX(2px);
}

.btn-join i {
    transition: transform var(--transition-fast);
}

.btn-join:hover i {
    transform: translateX(3px);
}

.error-message {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1rem;
    padding: 0.75rem 1rem;
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: 10px;
    color: #dc2626;
    font-size: 0.875rem;
}

.join-hint {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1rem;
    color: var(--text-muted);
    font-size: 0.8125rem;
}

/* Hero Visual */
.hero-visual {
    display: flex;
    justify-content: center;
    animation: slideUp 0.8s ease-out 0.2s both;
}

.meeting-preview {
    width: 100%;
    max-width: 480px;
    background: white;
    border-radius: 24px;
    border: 1px solid var(--border-color);
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.08);
}

.preview-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.25rem;
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border-color);
}

.preview-dots {
    display: flex;
    gap: 6px;
}

.preview-dots span {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.preview-dots span:nth-child(1) { background: #ef4444; }
.preview-dots span:nth-child(2) { background: #f59e0b; }
.preview-dots span:nth-child(3) { background: #22c55e; }

.preview-title {
    color: var(--text-secondary);
    font-size: 0.875rem;
    font-weight: 500;
}

.preview-content {
    position: relative;
    padding: 1.5rem;
    min-height: 300px;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
}

.preview-video {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: white;
    border-radius: 16px;
    position: relative;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.preview-video.main-video {
    width: 100%;
    height: 220px;
}

.preview-video.pip-video {
    position: absolute;
    bottom: 1.5rem;
    right: 1.5rem;
    width: 100px;
    height: 75px;
    border: 3px solid white;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.video-avatar {
    width: 64px;
    height: 64px;
    background: var(--accent-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    color: #6366f1;
}

.video-avatar.small {
    width: 32px;
    height: 32px;
    font-size: 1rem;
}

.video-name {
    position: absolute;
    bottom: 0.5rem;
    left: 0.5rem;
    font-size: 0.75rem;
    color: var(--text-secondary);
    background: white;
    padding: 4px 10px;
    border-radius: 6px;
    font-weight: 500;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.video-status {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    display: flex;
    gap: 4px;
}

.video-status i {
    font-size: 0.875rem;
    color: #22c55e;
}

.preview-controls {
    display: flex;
    justify-content: center;
    gap: 0.75rem;
    padding: 1rem 1.25rem;
    background: white;
    border-top: 1px solid var(--border-color);
}

.preview-controls .control-btn {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    background: var(--bg-secondary);
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.125rem;
    transition: all var(--transition-fast);
    border: 1px solid var(--border-color);
}

.preview-controls .control-btn.active {
    background: var(--accent-light);
    color: #6366f1;
    border-color: #c7d2fe;
}

.preview-controls .control-btn.danger {
    background: #fef2f2;
    color: #ef4444;
    border-color: #fecaca;
}

/* Features Section */
.features-section {
    padding: 100px 0;
    background: var(--bg-primary);
}

.section-header {
    margin-bottom: 3rem;
}

.section-badge {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: var(--accent-light);
    border: 1px solid #c7d2fe;
    border-radius: 100px;
    color: #6366f1;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.section-title {
    font-size: clamp(2rem, 4vw, 2.75rem);
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}

.section-subtitle {
    font-size: 1.125rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.7;
}

.feature-card {
    height: 100%;
    padding: 2rem;
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 20px;
    transition: all var(--transition-base);
}

.feature-card:hover {
    border-color: #c7d2fe;
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(99, 102, 241, 0.08);
}

.feature-icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--accent-light);
    border-radius: 14px;
    font-size: 1.5rem;
    color: #6366f1;
    margin-bottom: 1.25rem;
}

.feature-card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
}

.feature-card p {
    color: var(--text-secondary);
    font-size: 0.9375rem;
    line-height: 1.7;
}

/* Stats Section */
.stats-section {
    padding: 80px 0;
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.stat-item {
    padding: 1.5rem;
}

.stat-number {
    display: block;
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
}

.stat-label {
    color: var(--text-secondary);
    font-size: 0.9375rem;
    font-weight: 500;
}

/* How It Works Section */
.how-section {
    padding: 100px 0;
    background: var(--bg-primary);
}

.steps-container {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin-top: 3rem;
}

.step-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    max-width: 220px;
}

.step-number {
    width: 72px;
    height: 72px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--accent-gradient);
    border-radius: 20px;
    font-size: 1.75rem;
    font-weight: 800;
    color: white;
    margin-bottom: 1.25rem;
    box-shadow: 0 8px 24px rgba(99, 102, 241, 0.25);
}

.step-content h4 {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.step-content p {
    color: var(--text-secondary);
    font-size: 0.9375rem;
    line-height: 1.6;
}

.step-connector {
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, #c7d2fe 0%, #ddd6fe 100%);
    border-radius: 100px;
}

@media (max-width: 768px) {
    .step-connector {
        display: none;
    }
}

/* Footer */
.footer {
    padding: 3rem 0;
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.footer-brand i {
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.footer-text {
    color: var(--text-muted);
    font-size: 0.875rem;
}

.footer-copyright {
    color: var(--text-muted);
    font-size: 0.875rem;
}

/* Responsive */
@media (max-width: 991px) {
    .hero-visual {
        margin-top: 3rem;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
}

@media (max-width: 576px) {
    .hero-section {
        padding-top: 80px;
    }
    
    .input-group-custom {
        flex-direction: column;
        background: transparent;
        border: none;
        gap: 0.75rem;
    }
    
    .input-icon {
        display: none;
    }
    
    .join-input {
        padding: 1rem;
        background: var(--bg-secondary);
        border-radius: 14px;
        border: 2px solid var(--border-color);
    }
    
    .join-input:focus {
        border-color: #6366f1;
    }
    
    .btn-join {
        width: 100%;
        justify-content: center;
        border-radius: 14px;
        padding: 1rem;
    }
    
    .join-card {
        padding: 1.25rem;
    }
}

/* Animations */
@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

.meeting-preview {
    animation: float 6s ease-in-out infinite;
}
