/* =========================
   MENU PRINCIPAL
========================= */
.menu {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 25px;
    background: #000;
    box-shadow: 0 0 30px #0ff;
    position: relative;
    z-index: 100;
    flex-wrap: wrap;
}

.menu-left {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.menu a,
.menu-link {
    color: #0ff;
    text-decoration: none;
    font-weight: bold;
    cursor: pointer;
    position: relative;
    transition: 0.3s;
}

.menu a:hover,
.menu-link:hover {
    text-shadow: 0 0 8px #0ff, 0 0 20px #0ff;
}

/* LOGO */
.logo {
    font-size: 1.5em;
    font-weight: bold;
    color: #0ff;
    text-shadow: 0 0 8px #0ff;
}

/* DROPDOWN */
.menu-dropdown {
    position: relative;
}

.menu-dropdown::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    height: 12px; /* zone hover plus large */
}

.dropdown-content {
    position: absolute;
    top: 100%;
    left: 0;
    background: #050505;
    border: 2px solid #0ff;
    border-radius: 12px;
    padding: 10px 0;
    min-width: 220px;
    box-shadow: 0 0 25px #0ff;
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease, transform 0.3s ease;
    transform: translateY(5px);
    z-index: 1000;
}

.menu-dropdown:hover .dropdown-content,
.dropdown-content:hover {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

.dropdown-content a {
    display: block;
    padding: 10px 15px;
    color: #0ff;
    white-space: nowrap;
    transition: 0.2s;
}

.dropdown-content a:hover {
    background: rgba(0, 255, 255, 0.12);
    text-shadow: 0 0 5px #0ff;
    transform: scale(1.02);
}

/* MENU USER */
.menu-user {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.menu-user img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid #0ff;
    transition: 0.3s;
}

.menu-user img:hover {
    box-shadow: 0 0 10px #0ff, 0 0 20px #0ff inset;
}

.menu-user span {
    color: #0ff;
    font-weight: bold;
    text-shadow: 0 0 6px #0ff;
}

.logout {
    margin-left: 8px;
    color: red;
    font-size: 1.2em;
    transition: 0.3s;
}

.logout:hover {
    text-shadow: 0 0 10px red;
}

/* =========================
   RESPONSIVE
========================= */
@media (max-width: 900px) {
    .menu {
        flex-direction: column;
        align-items: flex-start;
    }
    .menu-left {
        gap: 10px;
        margin-bottom: 10px;
    }
    .dropdown-content {
        min-width: 180px;
    }
    .menu-user span {
        font-size: 0.9em;
    }
}

@media (max-width: 600px) {
    .menu-left, .menu-user {
        width: 100%;
        justify-content: space-between;
    }
    .menu-left {
        flex-wrap: wrap;
        gap: 5px;
    }
    .dropdown-content {
        min-width: 100%;
    }
    .logo {
        font-size: 1.3em;
    }
}
