/* ================================================
   MEGA MENU THELOTTER - ESTILO PROFISSIONAL
   ================================================ */

/* Container Principal - Sticky */
.mega-menu-container {
    background: #FFFFFF;
    box-shadow: 0 2px 15px rgba(0, 48, 135, 0.1);
    position: sticky;
    top: 0;
    z-index: 9999;
    transition: all 0.3s ease;
}

.mega-menu-container.scrolled {
    box-shadow: 0 4px 20px rgba(0, 48, 135, 0.15);
}

/* Wrapper - Layout Horizontal */
.mega-menu-wrapper {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 80px;
}

/* ================================================
   LOGO
   ================================================ */
.mega-menu-logo {
    flex-shrink: 0;
    margin-right: 40px;
}

.mega-menu-logo img,
.mega-menu-logo .custom-logo {
    max-height: 60px;
    width: auto;
    display: block;
    transition: all 0.3s ease;
}

.mega-menu-logo .site-name {
    font-size: 1.8rem;
    font-weight: 800;
    color: #003087;
    text-decoration: none;
    font-family: 'Montserrat', sans-serif;
}

/* ================================================
   NAVEGAÇÃO PRINCIPAL
   ================================================ */
.mega-menu-nav {
    flex: 1;
    display: flex;
    justify-content: center;
}

.mega-menu-list {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 5px;
}

.mega-menu-item {
    position: relative;
}

.mega-menu-link {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 12px 20px;
    color: #001E50;
    text-decoration: none;
    font-weight: 600;
    font-size: 15px;
    border-radius: 8px;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.mega-menu-link:hover {
    background: #F5F5F5;
    color: #003087;
}

.dropdown-arrow {
    font-size: 10px;
    transition: transform 0.3s ease;
}

.mega-menu-item:hover .dropdown-arrow {
    transform: rotate(180deg);
}

/* ================================================
   MEGA DROPDOWN (4 COLUNAS)
   ================================================ */
.mega-dropdown {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: white;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    border-radius: 12px;
    padding: 40px;
    min-width: 900px;
    max-width: 1100px;
    opacity: 0;
    visibility: hidden;
    margin-top: 20px;
    transition: all 0.3s ease;
    z-index: 1000;
}

.has-mega-dropdown:hover .mega-dropdown {
    opacity: 1;
    visibility: visible;
    margin-top: 10px;
}

.mega-dropdown-inner {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
}

/* Colunas do Mega Menu */
.mega-column {
    padding: 0;
}

.mega-column-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #003087;
    margin: 0 0 20px 0;
    padding-bottom: 10px;
    border-bottom: 2px solid #FFB81C;
    font-family: 'Montserrat', sans-serif;
}

.mega-column-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.mega-column-list li {
    margin-bottom: 12px;
}

.mega-column-list a {
    color: #333;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.2s ease;
    display: inline-block;
}

.mega-column-list a:hover {
    color: #003087;
    padding-left: 5px;
    font-weight: 600;
}

/* Coluna de Destaque */
.mega-column-destaque {
    background: linear-gradient(135deg, #003087 0%, #001E50 100%);
    border-radius: 12px;
    padding: 25px;
    text-align: center;
}

.destaque-card h3 {
    color: #FFB81C;
    font-size: 1.2rem;
    margin: 0 0 15px 0;
}

.destaque-premio {
    font-size: 2.5rem;
    font-weight: 800;
    color: white;
    margin: 10px 0;
    line-height: 1;
}

.destaque-loteria {
    color: rgba(255, 255, 255, 0.9);
    font-size: 16px;
    margin-bottom: 20px;
}

.btn-destaque {
    display: inline-block;
    background: #FFB81C;
    color: #001E50;
    padding: 12px 30px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 700;
    font-size: 14px;
    transition: all 0.3s ease;
}

.btn-destaque:hover {
    background: #FFA500;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(255, 184, 28, 0.4);
}

/* ================================================
   DROPDOWN SIMPLES
   ================================================ */
.simple-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
    border-radius: 8px;
    padding: 15px 0;
    min-width: 220px;
    opacity: 0;
    visibility: hidden;
    margin-top: 20px;
    transition: all 0.3s ease;
    list-style: none;
    z-index: 1000;
}

.has-dropdown:hover .simple-dropdown {
    opacity: 1;
    visibility: visible;
    margin-top: 10px;
}

.simple-dropdown li {
    margin: 0;
}

.simple-dropdown a {
    display: block;
    padding: 12px 25px;
    color: #333;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.2s ease;
}

.simple-dropdown a:hover {
    background: #F5F5F5;
    color: #003087;
    padding-left: 30px;
}

/* ================================================
   BOTÕES DE AÇÃO (LOGIN/CADASTRO)
   ================================================ */
.mega-menu-actions {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-shrink: 0;
    margin-left: 30px;
}

.btn-login {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 10px 25px;
    color: #003087;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    border: 2px solid #003087;
    border-radius: 25px;
    transition: all 0.3s ease;
}

.btn-login:hover {
    background: #003087;
    color: white;
    transform: translateY(-2px);
}

.btn-cadastro {
    display: inline-block;
    padding: 10px 30px;
    background: linear-gradient(135deg, #00A859 0%, #00C853 100%);
    color: white;
    text-decoration: none;
    font-weight: 700;
    font-size: 14px;
    border-radius: 25px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 168, 89, 0.3);
}

.btn-cadastro:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 168, 89, 0.4);
}

/* ================================================
   BOTÃO MOBILE (HAMBURGUER)
   ================================================ */
.mega-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    padding: 10px;
    cursor: pointer;
    z-index: 10001;
}

.mega-menu-toggle span {
    display: block;
    width: 28px;
    height: 3px;
    background: #003087;
    border-radius: 2px;
    transition: all 0.3s ease;
}

.mega-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translateY(8px);
}

.mega-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mega-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translateY(-8px);
}

/* ================================================
   RESPONSIVIDADE - TABLET
   ================================================ */
@media (max-width: 1200px) {
    .mega-dropdown {
        min-width: 700px;
    }
    
    .mega-dropdown-inner {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }
    
    .mega-column-destaque {
        grid-column: span 2;
    }
}

/* ================================================
   RESPONSIVIDADE - MOBILE
   ================================================ */
@media (max-width: 992px) {
    /* Mostrar botão hamburguer */
    .mega-menu-toggle {
        display: flex;
    }
    
    /* Esconder menu desktop */
    .mega-menu-nav,
    .mega-menu-actions {
        display: none;
    }
    
    /* Menu mobile ativo */
    .mega-menu-nav.active,
    .mega-menu-actions.active {
        display: flex;
        position: fixed;
        top: 80px;
        left: 0;
        right: 0;
        bottom: 0;
        background: white;
        flex-direction: column;
        padding: 20px;
        overflow-y: auto;
        z-index: 10000;
    }
    
    .mega-menu-list {
        flex-direction: column;
        gap: 0;
        width: 100%;
    }
    
    .mega-menu-item {
        width: 100%;
        border-bottom: 1px solid #E0E0E0;
    }
    
    .mega-menu-link {
        width: 100%;
        justify-content: space-between;
        padding: 15px 0;
    }
    
    /* Dropdowns mobile */
    .mega-dropdown,
    .simple-dropdown {
        position: static;
        opacity: 1;
        visibility: visible;
        margin-top: 0;
        box-shadow: none;
        border-radius: 0;
        padding: 0 0 0 20px;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
    }
    
    .mega-menu-item.open .mega-dropdown,
    .mega-menu-item.open .simple-dropdown {
        max-height: 1000px;
        padding: 15px 0 15px 20px;
    }
    
    .mega-dropdown-inner {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .mega-column-title {
        font-size: 1rem;
        margin-bottom: 10px;
    }
    
    /* Ações mobile */
    .mega-menu-actions.active {
        position: relative;
        top: 0;
        flex-direction: row;
        justify-content: center;
        padding: 20px;
        gap: 10px;
        border-top: 1px solid #E0E0E0;
        margin-top: 20px;
    }
}

@media (max-width: 768px) {
    .mega-menu-wrapper {
        height: 70px;
        padding: 0 15px;
    }
    
    .mega-menu-logo {
        margin-right: 20px;
    }
    
    .mega-menu-logo img {
        max-height: 50px;
    }
    
    .btn-login,
    .btn-cadastro {
        font-size: 13px;
        padding: 8px 20px;
    }
}

/* ================================================
   ANIMAÇÕES
   ================================================ */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.mega-dropdown,
.simple-dropdown {
    animation: fadeInDown 0.3s ease;
}

/* Hover effects */
.mega-menu-item {
    transition: all 0.3s ease;
}

/* ================================================
   ACESSIBILIDADE
   ================================================ */
.mega-menu-link:focus,
.btn-login:focus,
.btn-cadastro:focus {
    outline: 2px solid #FFB81C;
    outline-offset: 2px;
}

/* Esconder elementos visuais para leitores de tela */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}
