/* =============================================
   TALKMEETING - CSS BASE V3.0
   Arquivo principal para TODAS as páginas
   ============================================= */

/* === FONTS === */
@import url('https://fonts.googleapis.com/css2?family=Sora:wght@300;400;600;700;800&family=Instrument+Sans:wght@400;500;600&display=swap');

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

/* === VARIÁVEIS CSS === */
:root {
    /* Colors */
    --primary: #6366f1;
    --primary-dark: #4f46e5;
    --primary-light: #818cf8;
    --accent: #f59e0b;
    --accent-light: #fbbf24;
    
    --bg-primary: #0a0a0f;
    --bg-secondary: #13131a;
    --bg-tertiary: #1a1a24;
    
    --text-primary: #ffffff;
    --text-secondary: #a1a1aa;
    --text-muted: #71717a;
    
    --border: rgba(255, 255, 255, 0.1);
    --border-hover: rgba(255, 255, 255, 0.2);
    
    --success: #22c55e;
    --error: #ef4444;
    --warning: #f59e0b;
    
    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.2);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.3);
    --shadow-xl: 0 20px 60px rgba(0, 0, 0, 0.4);
    
    /* Spacing */
    --space-xs: 4px;
    --space-sm: 8px;
    --space-md: 16px;
    --space-lg: 24px;
    --space-xl: 32px;
    --space-2xl: 48px;
    
    /* Transitions */
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* === BODY BASE === */
body {
    font-family: 'Instrument Sans', -apple-system, sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
    padding-top: 70px; /* Compensar header fixo */
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Sora', sans-serif;
    font-weight: 700;
    line-height: 1.2;
}

/* =============================================
   HEADER UNIVERSAL - PRETO EM TODAS AS PÁGINAS
   ============================================= */

.universal-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 70px;
    background: rgba(10, 10, 15, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 32px;
    z-index: 1000;
    transition: var(--transition);
}

.universal-header.scrolled {
    background: rgba(10, 10, 15, 0.98);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.4);
}



/* =============================================
   ESTILO DO LOGOTIPO PROFISSIONAL - CORRIGIDO
   ============================================= */

/* 1. Ajuste do container do logo para centralizar verticalmente */
.header-logo {
    display: flex;
    align-items: center; /* Centraliza verticalmente */
    height: 100%;       /* Ocupa toda altura do header */
    cursor: pointer;
    padding: 10px 0;    /* Margem vertical para respirar */
    text-decoration: none;
    transition: var(--transition);
}

.header-logo:hover {
    opacity: 0.85; /* Feedback visual suave ao passar o mouse */
}

/* 2. Configuração da Imagem do Logo - TAMANHO AUMENTADO */
.logo-img {
    height: 60px;        /* 🔥 MAIOR DESTAQUE: Logo bem visível e chamativo */
    width: auto;         /* Mantém proporção original da imagem */
    max-width: 320px;    /* Permite logo maior em telas largas */
    object-fit: contain; /* Garante que a imagem completa apareça */
    display: block;      /* Remove espaços extras */
    filter: brightness(1); /* Base para efeito hover */
    transition: all 0.3s ease;
}

.header-logo:hover .logo-img {
    filter: brightness(1.1); /* Leve brilho ao passar o mouse */
}

/* 3. Ajuste Responsivo para Tablets */
@media (max-width: 1024px) {
    .logo-img {
        height: 54px; /* Ainda grande em tablets */
    }
}

/* 4. Ajuste Responsivo para Mobile */
@media (max-width: 768px) {
    .logo-img {
        height: 46px; /* Maior no mobile para melhor visibilidade */
        max-width: 240px;
    }
    
    .universal-header {
        padding: 0 16px; /* Garante margem lateral no mobile */
    }
}

/* 5. Ajuste para Mobile Pequeno (< 480px) */
@media (max-width: 480px) {
    .logo-img {
        height: 42px; /* Ainda visível em telas pequenas */
    }
}


.universal-header .logo-subtitle {
    font-size: 11px;
    color: #9ca3af;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: -4px;
    font-weight: 600;
}

/* Header Actions */
.universal-header .header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* Botões Header */
.universal-header .btn-header-ghost {
    padding: 10px 20px;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-secondary);
    cursor: pointer;
    transition: var(--transition);
}

.universal-header .btn-header-ghost:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.25);
    color: var(--text-primary);
}

.universal-header .btn-header-primary {
    padding: 10px 24px;
    background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%);
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    color: white;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

.universal-header .btn-header-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.4);
}

/* User Compact */
.universal-header .user-compact {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 100px;
    transition: var(--transition);
    cursor: pointer;
}

.universal-header .user-compact:hover {
    background: rgba(255, 255, 255, 0.1);
}

.universal-header .user-avatar-small {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: linear-gradient(135deg, #6366f1 0%, #f59e0b 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
    font-size: 14px;
}

.universal-header .user-name-small {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    max-width: 150px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Botão Logout */
.universal-header .btn-logout-compact {
    padding: 8px 16px;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 8px;
}

.universal-header .btn-logout-compact:hover {
    background: rgba(239, 68, 68, 0.1);
    border-color: rgba(239, 68, 68, 0.3);
    color: #fca5a5;
}

/* Admin Badge */
.universal-header .admin-badge {
    padding: 6px 14px;
    background: rgba(99, 102, 241, 0.15);
    border: 1px solid rgba(99, 102, 241, 0.3);
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    color: #818cf8;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Menu Toggle (Mobile) */
.universal-header .menu-toggle {
    display: none;
}

/* =============================================
   INDEX - PÁGINA INICIAL
   ============================================= */

.hero-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    padding: 120px 20px 80px;
}

/* Background Animado */
.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 0;
    overflow: hidden;
}

.gradient-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.4;
    animation: float 20s ease-in-out infinite;
}

.gradient-orb.orb-1 {
    width: 500px;
    height: 500px;
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    top: -250px;
    right: -250px;
}

.gradient-orb.orb-2 {
    width: 400px;
    height: 400px;
    background: linear-gradient(135deg, #f59e0b 0%, #ef4444 100%);
    bottom: -200px;
    left: -200px;
    animation-delay: 7s;
}

.gradient-orb.orb-3 {
    width: 350px;
    height: 350px;
    background: linear-gradient(135deg, #10b981 0%, #06b6d4 100%);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation-delay: 14s;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(30px, -30px) scale(1.1); }
    66% { transform: translate(-30px, 30px) scale(0.9); }
}

/* Hero Content */
.hero-content {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

.hero-main {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.hero-main h1 {
    font-size: clamp(48px, 8vw, 80px);
    font-weight: 800;
    margin-bottom: 24px;
    line-height: 1.1;
    background: linear-gradient(135deg, #ffffff 0%, #a1a1aa 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: fadeInUp 0.8s ease-out;
}

.hero-main p {
    font-size: clamp(18px, 3vw, 24px);
    color: var(--text-secondary);
    margin-bottom: 48px;
    line-height: 1.6;
    animation: fadeInUp 0.8s ease-out 0.2s backwards;
}

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

/* CTA Buttons */
.cta-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
    animation: fadeInUp 0.8s ease-out 0.4s backwards;
}

.btn-cta-primary {
    padding: 16px 40px;
    background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%);
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 700;
    color: white;
    cursor: pointer;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 8px 24px rgba(99, 102, 241, 0.4);
}

.btn-cta-primary:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(99, 102, 241, 0.5);
}

.btn-cta-secondary {
    padding: 16px 40px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    font-size: 16px;
    font-weight: 700;
    color: var(--text-primary);
    cursor: pointer;
    transition: var(--transition);
}

.btn-cta-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.25);
    transform: translateY(-2px);
}

.btn-cta-tertiary {
    padding: 16px 40px;
    background: transparent;
    border: 2px solid rgba(245, 158, 11, 0.5);
    border-radius: 12px;
    font-size: 16px;
    font-weight: 700;
    color: var(--accent-light);
    cursor: pointer;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-cta-tertiary:hover {
    background: rgba(245, 158, 11, 0.15);
    border-color: var(--accent);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(245, 158, 11, 0.3);
}

/* Como Funciona Section */
.como-funciona-section {
    background: rgba(255, 255, 255, 0.02);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 80px 20px;
    display: none;
    position: relative;
}

.como-funciona-section.show {
    display: block;
    animation: slideDown 0.5s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.como-funciona-section .close-section {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
}

.como-funciona-section .close-section:hover {
    background: rgba(239, 68, 68, 0.1);
    border-color: rgba(239, 68, 68, 0.3);
    color: #fca5a5;
    transform: rotate(90deg);
}

.section-title {
    text-align: center;
    font-size: 42px;
    margin-bottom: 60px;
    background: linear-gradient(135deg, #6366f1 0%, #f59e0b 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 32px;
    max-width: 1200px;
    margin: 0 auto;
}

.step-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.02) 100%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 40px 32px;
    text-align: center;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.step-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #6366f1 0%, #f59e0b 100%);
    opacity: 0;
    transition: var(--transition);
}

.step-card:hover {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.08) 0%, rgba(245, 158, 11, 0.05) 100%);
    border-color: rgba(99, 102, 241, 0.3);
    transform: translateY(-8px);
    box-shadow: 0 12px 32px rgba(99, 102, 241, 0.3);
}

.step-card:hover::before {
    opacity: 1;
}

.step-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 24px;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.2) 0%, rgba(245, 158, 11, 0.15) 100%);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.2);
}

.step-card h3 {
    font-size: 22px;
    margin-bottom: 16px;
    color: var(--text-primary);
}

.step-card p {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Featured Event Section */
.featured-event-section {
    padding: 80px 20px;
    background: rgba(255, 255, 255, 0.02);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Footer */
.footer {
    background: var(--bg-secondary);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 48px 20px;
    text-align: center;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto 32px;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 32px;
    flex-wrap: wrap;
}

.footer-links a {
    color: var(--text-secondary);
    font-size: 14px;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--primary);
}

.footer-bottom p {
    color: var(--text-muted);
    font-size: 14px;
}

/* =============================================
   LOADER
   ============================================= */

.loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: var(--bg-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 1;
    visibility: visible;
    transition: var(--transition);
}

.loader:not(.active) {
    opacity: 0;
    visibility: hidden;
}

.spinner {
    width: 48px;
    height: 48px;
    border: 4px solid rgba(255, 255, 255, 0.1);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

/* =============================================
   UTILITIES
   ============================================= */

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-lg);
}

.text-center { text-align: center; }
.hidden { display: none !important; }
.show { display: block !important; }

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

@media (max-width: 768px) {
    body {
        padding-top: 64px;
    }
    
    .universal-header {
        padding: 0 16px;
        height: 64px;
    }
    
    .universal-header .logo-text {
        font-size: 20px;
    }
    
    .universal-header .logo-icon {
        width: 40px;
        height: 40px;
        font-size: 20px;
    }
    
    .universal-header .logo-subtitle {
        display: none;
    }
    
    .universal-header .user-name-small {
        display: none;
    }
    
    .universal-header .menu-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 40px;
        height: 40px;
        background: transparent;
        border: 1px solid rgba(255, 255, 255, 0.1);
        border-radius: 8px;
        color: var(--text-primary);
        cursor: pointer;
        transition: var(--transition);
    }
    
    .universal-header .menu-toggle:hover {
        background: rgba(255, 255, 255, 0.05);
    }
    
    .hero-container {
        padding: 100px 16px 60px;
    }
    
    .cta-buttons {
        flex-direction: column;
        width: 100%;
    }
    
    .btn-cta-primary,
    .btn-cta-secondary,
    .btn-cta-tertiary {
        width: 100%;
        justify-content: center;
    }
    
    .steps-grid {
        grid-template-columns: 1fr;
    }
    
    .section-title {
        font-size: 32px;
    }
    
}