/* ======= ESTILOS GERAIS ======= */
body {
    background-color: #f7f7f7;
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

/* ======= HEADER / BANNER ======= */
.gameboy-banner {
    position: relative;
    /* Certifique-se de que o caminho 'media/header2.jpg' e 'media/header.jpg' está correto */
    background: url('media/header2.jpg') no-repeat top center; 
    background-size: cover;
    height: 250px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    z-index: 1; 
}

.header-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('media/header.jpg') no-repeat center center;
    background-size: contain;
    pointer-events: none;
    z-index: 0;
}

/* ======= NAVEGAÇÃO PRINCIPAL ======= */
.main-nav-container {
    background-color: #fdd835; /* Amarelo GameBoy */
    padding: 10px 0;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.15);
    position: relative;
    z-index: 10;
    text-align: center;
}

.menu-link {
    color: #444;
    font-weight: bold;
    margin: 0 10px;
    padding: 8px 15px;
    border-radius: 5px;
    text-transform: uppercase;
    font-size: 1rem;
    transition: all 0.3s ease;
    display: inline-block;
}

.menu-link:hover,
.menu-link.active {
    background-color: #ff9800; /* Laranja/Âmbar */
    color: #fff;
}

/* ----------------------------------- */
/* ======= AJUSTES PARA DROPDOWN BOOTSTRAP ======= */
/* ----------------------------------- */

/* Estilo para garantir que o link do dropdown se comporte como os outros links */
.nav-item.dropdown .menu-link {
    /* Herda o estilo do menu-link */
}

/* Fundo do Dropdown (o container dos links) */
.dropdown-menu {
    background-color: #fdd835 !important; /* Amarelo do menu principal */
    border: 2px solid #ff9800; /* Borda laranja para destaque */
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
    /* Alinha o menu à direita (opcional, remova se quiser alinhar à esquerda) */
    right: 0; 
    left: auto;
}

/* Links dentro do Dropdown */
.dropdown-item {
    color: #444 !important;
    font-weight: bold;
    padding: 10px 15px;
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* Estilo de Hover/Ativo dos links do Dropdown */
.dropdown-item:hover,
.dropdown-item:active {
    background-color: #ff9800 !important; /* Laranja de hover */
    color: #fff !important; /* Texto branco no hover */
}

/* Linha separadora no dropdown */
.dropdown-divider {
    border-top: 1px solid rgba(0, 0, 0, 0.2); /* Linha escura no fundo amarelo */
}

/* ======= PARCEIRO (Mantido para compatibilidade, mas o foco é no dropdown) ======= */
.partner-link {
    color: #fdd835;
    font-weight: bold;
    text-decoration: none;
    transition: color 0.3s ease;
}
.partner-link:hover {
    color: #ff9800;
}

/* ======= LISTAGEM DE JOGOS (Mantidos, caso você adicione uma listagem) ======= */
.game-card {
    border: 3px solid #ff9800;
    border-radius: 10px;
    overflow: hidden;
    transition: transform 0.2s ease-in-out;
    background: #fff;
}

.game-card:hover {
    transform: translateY(-5px);
}

.game-cover {
    height: 200px;
    width: 100%;
    object-fit: cover;
    border-bottom: 2px solid #ff9800;
}

.game-btn {
    background-color: #cc6600;
    border: none;
    font-weight: bold;
    width: 100%;
    margin-top: 10px;
    color: #fff;
    padding: 10px;
    border-radius: 5px;
    transition: all 0.3s ease;
}
.game-btn:hover {
    background-color: #ff9800;
}

/* ======= RESPONSIVIDADE ======= */
@media (max-width: 992px) {
    .gameboy-banner {
        height: 150px;
        background-position: top center;
    }
    .header-overlay {
        background-position: top center;
    }

    .menu-link {
        display: block;
        margin: 6px auto;
        width: 80%;
        text-align: center;
    }
    
    /* Garante que o dropdown link se comporte como os outros no modo móvel */
    .nav-item.dropdown .menu-link {
        display: block;
        margin: 6px auto;
        width: 80%;
        text-align: center;
    }
    
    /* Esconde o menu dropdown no modo móvel quando fechado */
    .dropdown-menu {
        position: static !important; /* Permite que ele flua normalmente dentro do menu */
        border: none;
        box-shadow: none;
        padding-top: 0;
        padding-bottom: 0;
        background-color: rgba(255, 255, 255, 0.1); /* Um fundo sutil se necessário */
    }
    
    .dropdown-item {
        padding-left: 30px; /* Recuo para sub-item */
    }
}

@media (max-width: 600px) {
    .game-cover {
        height: 150px;
    }
}