/* 🔥🔥🔥 MENU ESTILO NETFLIX - DEGRADÊ ESFUMAÇADO 🔥🔥🔥 */
/* ⚙️ IDENTIFICADOR CSS: menu-netflix-gradient */

.help-icon {
    margin-left: 5px;
    opacity: 0.7;
    cursor: help;
    font-size: 14px;
}

.help-icon:hover {
    opacity: 1;
}

.menu-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 80px;
    /* 🔥 DEGRADÊ ESFUMAÇADO TIPO NETFLIX */
    background: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0.9) 0%,
        rgba(0, 0, 0, 0.7) 50%,
        rgba(0, 0, 0, 0) 100%
    );
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 0;
    border: none;
    box-shadow: none;
    transition: all 0.3s ease;
}

/* 🔥 QUANDO ROLA A PÁGINA, FICA MAIS SÓLIDO */
.menu-container.scrolled {
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.menu-content {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0px 40px;
    height: 80px;
}

.menu-logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
}

.menu-logo img {
    height: 45px;
    width: auto;
    filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.3));
    transition: all 0.3s ease;
}

.menu-logo:hover img {
    transform: scale(1.05);
    filter: drop-shadow(0 0 15px rgba(255, 255, 255, 0.6));
}

.menu-logo-text {
    font-size: 1.8rem;
    font-weight: bold;
    background: linear-gradient(45deg, #ffffff, #cccccc, #ffffff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
    display: none;
}

.menu-nav {
    display: flex;
    gap: 30px;
    align-items: center;
}

.menu-item {
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    padding: 8px 0;
    transition: all 0.3s ease;
    font-weight: 500;
    font-size: 0.95rem;
    position: relative;
    cursor: pointer;
}

/* 🔥 HOVER SÓ MUDA COR E ADICIONA UM LEVE BRILHO */
.menu-item:hover {
    color: #ffffff;
    text-shadow: 0 0 8px rgba(255, 255, 255, 0.4);
    transform: translateY(-1px);
}

/* 🔥 ITEM ATIVO - DESTAQUE SUTIL */
.menu-item.active {
    color: #ffffff;
    font-weight: 600;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

.menu-user {
    display: flex;
    align-items: center;
    gap: 15px;
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.9rem;
}

.user-avatar {
    width: 35px;
    height: 35px;
    border-radius: 4px;
    background: linear-gradient(45deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.1));
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    color: #ffffff;
    font-size: 0.85rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.logout-btn {
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    padding: 6px 14px;
    border-radius: 4px;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    border: 1px solid rgba(255, 255, 255, 0.3);
    background: transparent;
}

.logout-btn:hover {
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.6);
    background: rgba(255, 255, 255, 0.1);
}

/* CONTADOR DE IMAGENS NO MENU */
.image-counter {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    color: white;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: bold;
    margin-left: 8px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* BOTAO HAMBURGUER */
.mobile-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 35px;
    height: 35px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
}

.mobile-toggle span {
    width: 25px;
    height: 3px;
    background: rgba(255, 255, 255, 0.9);
    margin: 3px 0;
    transition: all 0.3s ease;
    border-radius: 2px;
}

.mobile-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.mobile-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

/* 🔥 SCROLL SUAVE GLOBAL */
html {
    scroll-behavior: smooth;
}

/* ═══════════════════════════════════════════════════════════════════
   🔥🔥🔥 BOTÃO COMEÇAR GRÁTIS - GOLD PREMIUM 🔥🔥🔥
   ═══════════════════════════════════════════════════════════════════ */

.btn-start-free {
    background: linear-gradient(180deg, #f5d442 0%, #d4a017 50%, #b8860b 100%);
    color: #1a1a1a;
    text-decoration: none;
    padding: 6px 18px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    white-space: nowrap;
    border: 1px solid rgba(255, 215, 0, 0.4);
    box-shadow: 0 2px 8px rgba(212, 160, 23, 0.3);
    flex-shrink: 0;
    line-height: 1;
    height: auto;
}

.btn-start-highlight {
    color: #cc0000;
    font-weight: 800;
}

.btn-start-free:hover {
    background: linear-gradient(180deg, #ffe066 0%, #e6b422 50%, #d4a017 100%);
    box-shadow: 0 4px 15px rgba(212, 160, 23, 0.5);
    transform: translateY(-1px);
}

.btn-start-free:active {
    transform: translateY(0);
    box-shadow: 0 2px 6px rgba(212, 160, 23, 0.3);
}

/* ═══════════════════════════════════════════════════════════════════
   🔥🔥🔥 BOTÃO GOOGLE - VERSÃO TURBINADA 🔥🔥🔥
   ═══════════════════════════════════════════════════════════════════ */

.btn-google {
    background: #fff;
    color: #3c4043;
    border: 1px solid #dadce0;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    white-space: nowrap;
    margin-left: 20px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: 'Roboto', -apple-system, BlinkMacSystemFont, sans-serif;
    height: 38px;
    min-width: 110px;
    box-sizing: border-box;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}

.google-icon {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

.btn-google:hover {
    background: #f8f9fa;
    border-color: #d2e3fc;
    box-shadow: 0 2px 8px rgba(66, 133, 244, 0.25);
    transform: translateY(-1px);
}

.btn-google:active {
    background: #eceff1;
    box-shadow: 0 1px 3px rgba(0,0,0,0.12);
    transform: translateY(0);
}

/* ═══════════════════════════════════════════════════════════════════
   RESPONSIVO MOBILE
   ═══════════════════════════════════════════════════════════════════ */

@media (max-width: 768px) {
    .menu-container {
        height: 50px;
        background: linear-gradient(
            to bottom,
            rgba(0, 0, 0, 0.95) 0%,
            rgba(0, 0, 0, 0.85) 80%,
            rgba(0, 0, 0, 0) 100%
        );
    }
    
    .menu-content {
        padding: 0 10px;
        height: 50px;
        flex-wrap: nowrap;
        gap: 0;
    }
    
    .menu-logo {
        height: 50px;
        flex-shrink: 0;
    }
    
    .menu-logo img {
        height: 26px;
    }
    
    /* 🔥 MATA O HAMBURGUER */
    .mobile-toggle {
        display: none !important;
    }
    
    /* 🔥 BOTÃO GOOGLE - COMPACTO NA MESMA LINHA */
    .btn-google {
        position: static;
        transform: none;
        padding: 4px 8px;
        font-size: 11px;
        margin-left: 0;
        gap: 4px;
        height: 28px;
        min-width: auto;
        box-shadow: none;
        flex-shrink: 0;
        border-radius: 4px;
    }
    
    .btn-google span {
        display: inline-block;
        font-size: 11px;
    }
    
    .google-icon {
        width: 13px;
        height: 13px;
    }
    
    .btn-google:hover {
        transform: translateY(-1px);
    }
    
    .btn-google:active {
        transform: translateY(0);
    }
    
    /* 🔥🔥🔥 MENU INLINE - MESMA LINHA QUE A LOGO 🔥🔥🔥 */
    .menu-nav {
        position: static;
        width: auto;
        height: 50px;
        background: none;
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
        flex-direction: row;
        gap: 2px;
        padding: 0;
        transition: none;
        border: none;
        overflow-x: auto;
        overflow-y: hidden;
        align-items: center;
        justify-content: flex-end;
        flex: 1;
        min-width: 0;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        -ms-overflow-style: none;
    }
    
    .menu-nav::-webkit-scrollbar {
        display: none;
    }
    
    .menu-item {
        width: auto;
        padding: 6px 8px;
        border-radius: 0;
        border-bottom: none;
        text-align: center;
        font-size: 0.9rem;
        white-space: nowrap;
        flex-shrink: 0;
    }
    
    .menu-item:hover {
        background: rgba(255, 255, 255, 0.05);
        transform: none;
    }
    
    .menu-item.active {
        border-bottom: 2px solid rgba(255, 255, 255, 0.7);
    }

    /* 🔥 BOTÃO COMEÇAR GRÁTIS - COMPACTO MOBILE */
    .btn-start-free {
        padding: 4px 10px;
        font-size: 0.65rem;
        border-radius: 14px;
        gap: 2px;
        letter-spacing: 0.3px;
    }
    
    .btn-start-highlight {
        font-size: 0.65rem;
    }
    
    /* 🔥 USER INFO COMPACTO */
    .menu-user {
        width: auto;
        padding: 4px 6px;
        border-bottom: none;
        flex-direction: row;
        align-items: center;
        gap: 4px;
        flex-shrink: 0;
    }
    
    .user-avatar {
        width: 24px;
        height: 24px;
        font-size: 0.65rem;
    }
    
    .menu-user span {
        display: none; /* esconde nome no mobile pra caber */
    }
    
    .logout-btn {
        width: auto;
        margin: 0;
        padding: 4px 8px;
        background: transparent;
        border: 1px solid rgba(255, 255, 255, 0.2);
        font-size: 0.7rem;
        flex-shrink: 0;
        white-space: nowrap;
    }
    
    .logout-btn:hover {
        background: rgba(255, 255, 255, 0.1);
    }
    
    /* 🔥 OVERLAY NÃO PRECISA MAIS */
    body.menu-open::after {
        display: none;
    }
}

/* TABLET */
@media (min-width: 769px) and (max-width: 1024px) {
    .menu-content {
        padding: 0 30px;
    }
    
    .menu-nav {
        gap: 20px;
    }
    
    .menu-item {
        font-size: 0.9rem;
    }
}

/* ═══════════════════════════════════════════════════════════════════
   🔥🔥🔥 ESCONDE MENU/WHATSAPP - SÓ NO LANDSCAPE (HORIZONTAL)! 🔥🔥🔥
   
   📱 VERTICAL (portrait) = Menu e WhatsApp SEMPRE visíveis
   📺 HORIZONTAL (landscape) + PLAY = ESCONDE
   ⏸️ PAUSOU = VOLTA
   ▶️ DESPAUSOU (landscape) = SOME de novo
   🏁 Vídeo terminou = VOLTA
   ═══════════════════════════════════════════════════════════════════ */
@media (orientation: landscape) and (max-width: 900px) {
    body.video-playing .menu-container,
    body.video-playing .whatsapp-float {
        opacity: 0 !important;
        pointer-events: none !important;
        transition: opacity 0.3s ease;
    }
}
