/* ============================================
   LAYOUT.CSS - Layout, Header, Footer e Seções
   Arquivo: layout.css
   Descrição: Estrutura do layout, navegação e seções da página
   ============================================ */

/* ===== HEADER & NAVIGATION ===== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    z-index: 1000;
    transition: all 0.3s ease;
}

.header.scrolled {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: var(--shadow-md);
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 0;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.nav-list {
    display: flex;
    list-style: none;
    gap: 24px;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: var(--dark);
    font-weight: 500;
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    transition: all 0.3s ease;
}

.nav-link:hover,
.nav-link.active {
    background: var(--primary);
    color: var(--white);
    transform: translateY(-2px);
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    gap: 4px;
}

/* ===== HERO COMPACTO ===== */
.hero-compact {
    background: var(--gradient-dark);
    color: var(--white);
    padding: 0 0 15px; /* Removido padding-top */
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
}

.compact-wrapper {
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding-top: 20px; /* Mover o padding para wrapper */
}

.compact-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.compact-titles {
    flex: 1;
}

.compact-title {
    font-size: var(--font-size-2xl);
    font-weight: 700;
    color: var(--white);
    margin: 0;
    line-height: 1.2;
}

.compact-subtitle {
    font-size: var(--font-size-sm);
    color: var(--gray-light);
    margin: 4px 0 0 0;
    font-weight: 400;
}

.compact-actions {
    display: flex;
    align-items: center;
}

.btn-user-mode {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-sm);
    color: var(--white);
    font-size: var(--font-size-sm);
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-user-mode:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-1px);
}

.btn-user-mode i {
    font-size: var(--font-size-base);
}

.compact-user {
    display: flex;
    align-items: center;
    gap: 15px;
}

.user-avatar-small {
    width: 48px;
    height: 48px;
    background: var(--gradient-primary);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: var(--font-size-lg);
    font-weight: 600;
    flex-shrink: 0;
}

.user-info {
    flex: 1;
    min-width: 0;
}

.user-name {
    font-size: var(--font-size-lg);
    font-weight: 600;
    color: var(--white);
    margin: 0 0 4px 0;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.user-details {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.user-email {
    font-size: var(--font-size-sm);
    color: var(--gray-light);
    font-weight: 400;
}

.user-badge {
    background: var(--primary);
    color: var(--white);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: var(--font-size-xs);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Responsive */
@media (max-width: 768px) {
    .compact-wrapper {
        padding-top: 15px; /* Ajuste para mobile */
        gap: 15px;
    }
    
    .compact-header {
        flex-direction: column;
        gap: 15px;
        align-items: stretch;
        padding-bottom: 12px;
    }
    
    .compact-actions {
        justify-content: flex-end;
    }
    
    .user-name {
        font-size: var(--font-size-base);
    }
    
    .user-details {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
    }
}

@media (max-width: 480px) {
    .hero-compact {
        padding: 0 0 12px; /* Ajuste mobile */
    }
    
    .compact-wrapper {
        padding-top: 12px;
        gap: 12px;
    }
    
    .compact-title {
        font-size: var(--font-size-xl);
    }
    
    .user-avatar-small {
        width: 40px;
        height: 40px;
        font-size: var(--font-size-base);
    }
    
    .btn-user-mode {
        width: 100%;
        justify-content: center;
    }
}

/* ===== SEÇÕES DE CONTEÚDO ===== */
.live-matches,
.statistics,
.ranking,
.cta-section {
    padding: 80px 0;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 48px;
}

.section-title {
    font-size: var(--font-size-3xl);
    font-weight: 800;
    color: var(--dark);
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 60px;
    height: 4px;
    background: var(--gradient-primary);
    border-radius: 2px;
}

/* Grids */
.matches-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 24px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
}

/* ===== FOOTER ===== */
.footer {
    background: var(--dark);
    color: var(--white);
    padding: 60px 0 0;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section h4 {
    font-size: var(--font-size-lg);
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--white);
}

.footer-description {
    color: var(--gray-light);
    margin: 16px 0 24px;
    line-height: 1.6;
}

.social-links {
    display: flex;
    gap: 12px;
}

.social-link {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-link:hover {
    background: var(--primary);
    transform: translateY(-2px);
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: var(--gray-light);
    text-decoration: none;
    transition: color 0.3s ease;
}

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

.contact-info {
    /* Estilos para contato */
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
    color: var(--gray-light);
}

.contact-item i {
    width: 16px;
    color: var(--primary);
}

.footer-bottom {
    border-top: 1px solid var(--dark-light);
    padding: 24px 0;
}

.footer-bottom-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--gray);
    font-size: var(--font-size-sm);
}

.footer-bottom-links {
    display: flex;
    gap: 24px;
}

.footer-bottom-links a {
    color: var(--gray);
    text-decoration: none;
    transition: color 0.3s ease;
}

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

/* Logo styles para o footer */
.logo-icon {
    width: 40px;
    height: 40px;
    background: var(--gradient-primary);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 18px;
}

.logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.logo-main {
    font-size: 20px;
    font-weight: 800;
    letter-spacing: -0.5px;
    color: var(--white);
}

.logo-sub {
    font-size: 12px;
    font-weight: 600;
    color: var(--gray);
    letter-spacing: 0.5px;
}

/* ===== PÁGINAS DE LOGIN/REGISTRO ===== */
.login-section {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.login-content {
    position: relative;
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
    padding: clamp(40px, 10vh, 120px) 0;
}

.login-card {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(20px);
    border-radius: var(--radius-lg);
    padding: 30px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    width: 100%;
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 1024px) {
    .hero-content {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }
    
    .footer-content {
        grid-template-columns: 1fr 1fr;
        gap: 40px;
    }
}

@media (max-width: 768px) {
    .hero-content {
        flex-direction: column;
        gap: 30px;
        padding: 100px 0 60px;
        text-align: center;
    }
    
    .nav {
        display: none;
    }
    
    .mobile-menu-toggle {
        display: flex;
    }
    
    .section-header {
        flex-direction: column;
        gap: 20px;
        align-items: flex-start;
    }
    
    .matches-grid,
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .cta-content {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .footer-bottom-content {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: var(--font-size-3xl);
    }
    
    .hero-actions {
        flex-direction: column;
        gap: 12px;
    }
    
    .session-stats-grid {
        grid-template-columns: 1fr;
    }
}
