/* ============================================
   HEADER MOBILE - EXATAMENTE COMO MOCKUP
   ============================================ */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}


body {
    background: #000;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    padding-top: 0; 
}

/* ===== HEADER PRINCIPAL ===== */
.mhg-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 65px;
    background: #000;
    display: flex;
    align-items: center;
    padding: 0 16px;
    z-index: 9999;
    gap: 12px;
}

/* ===== LOGO + TEXTO ===== */
.mhg-logo-box {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    flex-shrink: 0;
}

.mhg-logo-img {
    width: 30px;
    height: 30px;
    border-radius: 6px;
    object-fit: cover;
}

.mhg-logo-text {
    font-size: 13px;
    font-weight: 700;
    color: #3b82f6;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

/* ===== ESPAÇADOR (empurra botões para direita) ===== */
.mhg-spacer {
    flex: 1;
}

/* ===== BOTÕES DO HEADER ===== */
.mhg-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.mhg-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    background: none;
    cursor: pointer;
    padding: 0;
    transition: opacity 0.2s;
}

.mhg-btn:active {
    opacity: 0.6;
}

/* Botão branco oval */
.mhg-white-btn {
    width: 38px;
    height: 28px;
    background: #fff;
    border-radius: 14px;
}

/* Botão busca */
.mhg-search-btn {
    width: 32px;
    height: 32px;
    color: #fff;
    font-size: 18px;
}

/* Botão menu */
.mhg-menu-btn {
    width: 32px;
    height: 32px;
    color: #fff;
    font-size: 20px;
}

/* ===== BARRA DE BUSCA (fullscreen mobile) ===== */
.mhg-search-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: #000;
    z-index: 10000;
    display: none;
}

.mhg-search-overlay.active {
    display: block;
}

.mhg-search-container {
    height: 65px;
    display: flex;
    align-items: center;
    padding: 0 16px;
    gap: 12px;
}

.mhg-back-btn {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 20px;
    background: none;
    border: none;
    cursor: pointer;
    flex-shrink: 0;
}

.mhg-search-input {
    flex: 1;
    height: 42px;
    background: #1a1a1a;
    border: 1px solid #333;
    border-radius: 21px;
    padding: 0 18px;
    color: #fff;
    font-size: 15px;
}

.mhg-search-input::placeholder {
    color: #666;
}

.mhg-search-input:focus {
    outline: none;
    border-color: #3b82f6;
}

.mhg-search-submit {
    width: 42px;
    height: 42px;
    background: #3b82f6;
    border: none;
    border-radius: 50%;
    color: #fff;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex-shrink: 0;
}

/* ===== MENU SIDEBAR ===== */
.mhg-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.8);
    z-index: 9998;
    display: none;
}

.mhg-overlay.active {
    display: block;
}

.mhg-sidebar {
    position: fixed;
    top: 0;
    right: -100%;
    width: 85%;
    max-width: 380px;
    height: 100vh;
    background: #0a0a0a;
    z-index: 9999;
    transition: right 0.3s ease;
    overflow-y: auto;
}

.mhg-sidebar.active {
    right: 0;
}

.mhg-sidebar-header {
    height: 65px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    border-bottom: 1px solid #1a1a1a;
}

.mhg-sidebar-title {
    font-size: 16px;
    font-weight: 700;
    color: #3b82f6;
    text-transform: uppercase;
}

.mhg-close-btn {
    width: 36px;
    height: 36px;
    background: #1a1a1a;
    border: none;
    border-radius: 50%;
    color: #fff;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.mhg-nav {
    padding: 20px 0;
}

.mhg-nav-label {
    padding: 0 20px 12px;
    font-size: 11px;
    font-weight: 600;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.mhg-nav-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 20px;
    margin: 0 12px 6px;
    color: #ccc;
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    border-radius: 10px;
    transition: all 0.2s;
}

.mhg-nav-link:hover,
.mhg-nav-link.active {
    background: rgba(59, 130, 246, 0.1);
    color: #3b82f6;
}

.mhg-nav-link i {
    width: 20px;
    font-size: 18px;
}

/* Dropdown */
.mhg-dropdown-btn {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: calc(100% - 24px);
    padding: 14px 20px;
    margin: 0 12px 6px;
    color: #ccc;
    font-size: 15px;
    font-weight: 500;
    border-radius: 10px;
    background: none;
    border: none;
    cursor: pointer;
    text-align: left;
    transition: all 0.2s;
}

.mhg-dropdown-btn:hover {
    background: rgba(59, 130, 246, 0.1);
    color: #3b82f6;
}

.mhg-dropdown-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.mhg-dropdown-content.open {
    max-height: 300px;
}

.mhg-dropdown-content .mhg-nav-link {
    padding-left: 52px;
    font-size: 14px;
}

.mhg-dropdown-arrow {
    font-size: 12px;
    transition: transform 0.3s;
}

.mhg-dropdown-arrow.rotated {
    transform: rotate(180deg);
}

/* Social */
.mhg-social {
    padding: 20px;
    border-top: 1px solid #1a1a1a;
    margin-top: 20px;
}

.mhg-social-label {
    font-size: 11px;
    font-weight: 600;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 16px;
}

.mhg-social-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.mhg-social-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 16px 8px;
    background: #0f0f0f;
    border-radius: 10px;
    text-decoration: none;
    transition: all 0.2s;
}

.mhg-social-link:hover {
    background: rgba(59, 130, 246, 0.1);
}

.mhg-social-link i {
    font-size: 24px;
    color: #ccc;
}

.mhg-social-link:hover i {
    color: #3b82f6;
}

.mhg-social-link span {
    font-size: 11px;
    color: #999;
    font-weight: 500;
}

/* ===== DESKTOP NAV (escondida no mobile) ===== */
.mhg-desktop-nav {
    display: none;
}

/* ===== RESPONSIVE ===== */
@media (min-width: 768px) {
    body {
        padding-top: 120px;
    }

    .mhg-header {
        height: auto;
        flex-direction: column;
        padding: 0;
        border-bottom: 1px solid #1a1a1a;
    }

    .mhg-header-top {
        width: 100%;
        height: 70px;
        display: flex;
        align-items: center;
        padding: 0 32px;
        gap: 12px;
    }

    .mhg-logo-img {
        width: 40px;
        height: 40px;
        border-radius: 8px;
    }

    .mhg-logo-text {
        font-size: 16px;
    }

    .mhg-white-btn,
    .mhg-search-btn,
    .mhg-menu-btn {
        display: none;
    }

    .mhg-desktop-nav {
        display: flex;
        width: 100%;
        max-width: 1400px;
        margin: 0 auto;
        padding: 0 32px;
    }

    .mhg-desktop-menu {
        display: flex;
        width: 100%;
        justify-content: center;
        list-style: none;
        margin: 0;
        padding: 0;
    }

    .mhg-desktop-menu li {
        position: relative;
    }

    .mhg-desktop-menu a {
        display: flex;
        align-items: center;
        gap: 8px;
        padding: 16px 28px;
        color: #999;
        text-decoration: none;
        font-size: 14px;
        font-weight: 600;
        transition: color 0.2s;
    }

    .mhg-desktop-menu a:hover,
    .mhg-desktop-menu a.active {
        color: #3b82f6;
    }

    .mhg-desktop-menu a i {
        font-size: 16px;
    }

    /* Dropdown desktop */
    .mhg-desktop-dropdown {
        position: relative;
    }

    .mhg-desktop-dropdown-panel {
        position: absolute;
        top: 100%;
        left: 0;
        min-width: 220px;
        background: #0a0a0a;
        border: 1px solid #1a1a1a;
        border-radius: 12px;
        padding: 8px 0;
        opacity: 0;
        visibility: hidden;
        transform: translateY(-10px);
        transition: all 0.2s;
        margin-top: 8px;
    }

    .mhg-desktop-dropdown:hover .mhg-desktop-dropdown-panel {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }

    .mhg-desktop-dropdown-panel a {
        display: flex;
        padding: 12px 20px !important;
    }

    .mhg-desktop-dropdown-panel a:hover {
        background: rgba(59, 130, 246, 0.1);
    }
}

@media (min-width: 1024px) {
    .mhg-header-top {
        padding: 0 48px;
    }

    .mhg-logo-img {
        width: 48px;
        height: 48px;
    }

    .mhg-logo-text {
        font-size: 18px;
    }

    .mhg-desktop-nav {
        padding: 0 48px;
    }
}



/* Ocultar header no mobile */
.mhg-header {
    display: none;
}

@media (min-width: 768px) {
    .mhg-header {
        display: flex; /* ou flex-direction: column conforme já tens */
    }

    body {
        padding-top: 120px; /* mantém o espaço para o header desktop */
    }
}