/**
 * Elune Menu Lateral - Estilos CSS
 * Localização: /wp-content/themes/seu-tema-filho/assets/css/elune-menu.css
 */

/* Importar fonte Mulish */
@import url('https://fonts.googleapis.com/css2?family=Mulish:wght@300;400;500;600;700;800&display=swap');

/* Overlay do Menu */
.elune-menu-overlay {
    position: fixed;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0);
    z-index: 99999;
    transition: background-color 0.3s ease, left 0s linear 0.3s;
    pointer-events: none;
}

.elune-menu-overlay.active {
    left: 0;
    background-color: rgba(0, 0, 0, 0.5);
    transition: background-color 0.3s ease, left 0s linear 0s;
    pointer-events: auto;
}

/* Container do Menu */
.elune-menu-container {
    position: absolute;
    top: 0;
    left: -320px;
    width: 320px;
    height: 100vh;
    background: red !important; /* TESTE - FUNDO VERMELHO */
    box-shadow: 2px 0 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    font-family: 'Mulish', sans-serif;
    overflow-y: auto;
}

.elune-menu-overlay.active .elune-menu-container {
    transform: translateX(320px);
}

/* Cabeçalho do Menu */
.elune-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    background: white;
    position: sticky;
    top: 0;
    z-index: 10;
}

.elune-menu-logo {
    height: 40px;
    width: auto;
    opacity: 0.9;
    transition: opacity 0.3s ease;
}

.elune-menu-logo:hover {
    opacity: 1;
}

.elune-menu-close {
    background: none;
    border: none;
    color: #333;
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.elune-menu-close:hover {
    background-color: rgba(0, 0, 0, 0.05);
    transform: rotate(90deg);
}

/* Navegação do Menu */
.elune-menu-nav {
    flex: 1;
    padding: 20px 0;
    overflow-y: auto;
}

.elune-menu-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.elune-menu-item {
    margin: 0;
    opacity: 0;
    transform: translateX(-20px);
    animation: slideIn 0.4s ease forwards;
}

.elune-menu-overlay.active .elune-menu-item {
    opacity: 1;
    transform: translateX(0);
}

.elune-menu-item:nth-child(1) { animation-delay: 0.05s; }
.elune-menu-item:nth-child(2) { animation-delay: 0.1s; }
.elune-menu-item:nth-child(3) { animation-delay: 0.15s; }
.elune-menu-item:nth-child(4) { animation-delay: 0.2s; }
.elune-menu-item:nth-child(5) { animation-delay: 0.25s; }
.elune-menu-item:nth-child(6) { animation-delay: 0.3s; }
.elune-menu-item:nth-child(7) { animation-delay: 0.35s; }

@keyframes slideIn {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.elune-menu-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 25px;
    color: #333 !important;
    text-decoration: none !important;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.elune-menu-link span {
    color: #333 !important;
    font-size: 14px;
    letter-spacing: 0.3px;
}

.elune-menu-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(66, 133, 244, 0.1), transparent);
    transition: left 0.5s ease;
}

.elune-menu-link:hover {
    color: #4285F4 !important;
    background-color: rgba(66, 133, 244, 0.05);
    padding-left: 30px;
}

.elune-menu-link:hover span {
    color: #4285F4 !important;
}

.elune-menu-link:hover::before {
    left: 100%;
}

.elune-menu-link svg {
    flex-shrink: 0;
    transition: transform 0.3s ease;
    stroke: #333 !important;
    width: 18px;
    height: 18px;
}

.elune-menu-link:hover svg {
    transform: scale(1.1);
    stroke: #4285F4 !important;
}

/* Redes Sociais */
.elune-menu-social {
    display: flex;
    justify-content: center;
    gap: 10px;
    padding: 15px;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
    background: white;
}

.elune-social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #f5f5f5;
    color: #333 !important;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.elune-social-link:hover {
    background: linear-gradient(135deg, #4285F4 0%, #8D00FF 100%);
    color: white !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.elune-social-link svg {
    position: relative;
    z-index: 1;
    transition: transform 0.3s ease;
    width: 18px;
    height: 18px;
    stroke: currentColor;
    fill: none;
}

.elune-social-link:hover svg {
    transform: scale(1.1);
    stroke: white !important;
}

/* Botões CTA */
.elune-menu-cta {
    padding: 20px;
    background: white;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.elune-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 18px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    text-align: center;
    position: relative;
    overflow: hidden;
    color: #ffffff !important;
    letter-spacing: 0.3px;
}

.elune-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s ease;
}

.elune-btn:hover::before {
    left: 100%;
}

.elune-btn-primary {
    background: linear-gradient(135deg, #4285F4 0%, #3367D6 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(66, 133, 244, 0.3);
}

.elune-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(66, 133, 244, 0.4);
    background: linear-gradient(135deg, #3367D6 0%, #4285F4 100%);
}

.elune-btn-secondary {
    background: linear-gradient(135deg, #8D00FF 0%, #7000DD 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(141, 0, 255, 0.3);
}

.elune-btn-secondary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(141, 0, 255, 0.4);
    background: linear-gradient(135deg, #7000DD 0%, #8D00FF 100%);
}

.elune-btn svg {
    flex-shrink: 0;
    width: 16px;
    height: 16px;
    stroke: #ffffff !important;
}

/* Responsividade */
@media (max-width: 480px) {
    .elune-menu-container {
        width: 280px;
        left: -280px;
    }
    
    .elune-menu-overlay.active .elune-menu-container {
        transform: translateX(280px);
    }
    
    .elune-menu-link {
        font-size: 14px;
        padding: 12px 20px;
    }
    
    .elune-btn {
        font-size: 13px;
        padding: 12px 16px;
    }
}

/* Animações suaves */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Scrollbar personalizada para o menu */
.elune-menu-container::-webkit-scrollbar {
    width: 6px;
}

.elune-menu-container::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.05);
}

.elune-menu-container::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 3px;
}

.elune-menu-container::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 0, 0, 0.3);
}

/* Garantir que o ícone do hambúrguer seja clicável */
.elumenuhamb {
    cursor: pointer;
    transition: transform 0.3s ease;
}

.elumenuhamb:hover {
    transform: scale(1.1);
}

/* ===== CORREÇÕES FORÇADAS DE COR ===== */
/* Força todas as cores para sobrescrever estilos do tema */

/* Container e elementos base */
#elune-side-menu .elune-menu-container {
    color: #333 !important;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%) !important;
}

/* Links do menu - estado normal */
#elune-side-menu .elune-menu-link,
#elune-side-menu .elune-menu-link * {
    color: #333 !important;
}

#elune-side-menu .elune-menu-link svg {
    stroke: #333 !important;
    fill: none !important;
}

/* Links do menu - hover */
#elune-side-menu .elune-menu-link:hover,
#elune-side-menu .elune-menu-link:hover * {
    color: #4285F4 !important;
}

#elune-side-menu .elune-menu-link:hover svg {
    stroke: #4285F4 !important;
}

/* Botão fechar */
#elune-side-menu .elune-menu-close {
    color: #333 !important;
}

#elune-side-menu .elune-menu-close svg {
    stroke: #333 !important;
    fill: none !important;
}

/* Redes sociais - estado normal */
#elune-side-menu .elune-social-link {
    color: #333 !important;
    background: #f5f5f5 !important;
}

#elune-side-menu .elune-social-link svg {
    stroke: #333 !important;
    fill: none !important;
}

/* Redes sociais - hover */
#elune-side-menu .elune-social-link:hover {
    background: linear-gradient(135deg, #4285F4 0%, #8D00FF 100%) !important;
}

#elune-side-menu .elune-social-link:hover svg {
    stroke: white !important;
    fill: none !important;
}

/* Botões CTA */
#elune-side-menu .elune-btn {
    color: white !important;
}

#elune-side-menu .elune-btn svg {
    stroke: white !important;
    fill: none !important;
}

#elune-side-menu .elune-btn-primary {
    background: linear-gradient(135deg, #4285F4 0%, #3367D6 100%) !important;
    color: white !important;
}

#elune-side-menu .elune-btn-secondary {
    background: linear-gradient(135deg, #8D00FF 0%, #7000DD 100%) !important;
    color: white !important;
}

/* Garante que nenhum elemento herde cor branca */
#elune-side-menu,
#elune-side-menu * {
    color: inherit !important;
}

#elune-side-menu a {
    text-decoration: none !important;
}

/* Força cor preta no texto dos spans especificamente */
#elune-side-menu .elune-menu-link span {
    color: #333 !important;
    display: inline-block !important;
}

