/* =============================================
   NAVBAR CSS - Centralizzato
   Estratto da homepage_complete.html, index.html, store.html, tickets.html
   ============================================= */

/* NAVBAR BASE */
:root {
    --navbar-height: 96px;
}

.navbar { position: fixed; top: 0; left: 0; right: 0; height: var(--navbar-height); background: transparent; backdrop-filter: none; z-index: 1000; border-bottom: none; transition: all 0.3s; padding-top: 1.5rem; }
.navbar.scrolled { background: rgba(10,10,15,0.98); box-shadow: 0 10px 30px rgba(0,0,0,0.5); }

.navbar-container { 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    max-width: 100%; 
    margin: 0; 
    padding: 1rem 3rem; 
}

.navbar-left, .navbar-right { display: flex; gap: 2rem; align-items: center; }

.navbar-link { 
    color: #FFFFFF; 
    text-decoration: none; 
    font-weight: 600; 
    font-size: 0.95rem; 
    transition: all 0.3s; 
    padding: 0.75rem 1.5rem; 
    border-radius: 0.75rem;
    background: linear-gradient(135deg, rgba(139,92,246,0.15) 0%, rgba(6,182,212,0.15) 100%);
    border: 1px solid rgba(139,92,246,0.4);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 15px rgba(139,92,246,0.2);
}

.navbar-right { 
    margin-left: auto; 
    padding-right: 2rem;
}

.navbar-link:hover { 
    color: #FFFFFF; 
    background: linear-gradient(135deg, rgba(139,92,246,0.3) 0%, rgba(6,182,212,0.3) 100%);
    border-color: rgba(6,182,212,0.6);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(6,182,212,0.4);
}

.navbar-link.active { 
    color: var(--primary-purple-light); 
    background: rgba(139,92,246,0.2); 
}

/* SOCIAL ICONS */
.social-icons {
    display: flex;
    gap: 0.75rem;
    align-items: center;
}

.social-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(139,92,246,0.15);
    border: 1px solid rgba(139,92,246,0.3);
    color: #FFFFFF;
    font-size: 1.1rem;
    transition: all 0.3s;
    cursor: pointer;
    text-decoration: none;
}

.social-icon:hover {
    background: linear-gradient(135deg, rgba(139,92,246,0.3) 0%, rgba(6,182,212,0.3) 100%);
    border-color: rgba(6,182,212,0.6);
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 5px 20px rgba(6,182,212,0.4);
}

.social-icon.twitch:hover {
    background: rgba(145,70,255,0.3);
    border-color: rgba(145,70,255,0.6);
    box-shadow: 0 5px 20px rgba(145,70,255,0.4);
}

.social-icon.instagram:hover {
    background: linear-gradient(135deg, rgba(225,48,108,0.3) 0%, rgba(253,29,29,0.3) 50%, rgba(245,96,64,0.3) 100%);
    border-color: rgba(225,48,108,0.6);
    box-shadow: 0 5px 20px rgba(225,48,108,0.4);
}

.social-icon.tiktok:hover {
    background: rgba(0,242,234,0.3);
    border-color: rgba(0,242,234,0.6);
    box-shadow: 0 5px 20px rgba(0,242,234,0.4);
}

.social-icon.youtube:hover {
    background: rgba(0,242,234,0.3);
    border-color: rgba(0,242,234,0.6);
    box-shadow: 0 5px 20px rgba(0,242,234,0.4);
}

/* LOGO ROMBO */
.navbar-logo { position: absolute; left: 50%; transform: translateX(-50%); cursor: pointer; transition: all 0.3s; z-index: 1001; }
.navbar-logo:hover { transform: translateX(-50%) scale(1.05); }
.logo-diamond { width: 90px; height: 90px; background: var(--bg-medium); transform: rotate(45deg); display: flex; align-items: center; justify-content: center; box-shadow: 0 0 30px rgba(139,92,246,0.7), inset 0 0 20px rgba(139,92,246,0.1); border: 2px solid var(--primary-purple); position: relative; }
.logo-diamond::after { content: ''; position: absolute; inset: -10px; border: 2px solid var(--primary-purple); border-radius: 2px; opacity: 0.3; animation: pulse 3s ease infinite; }
@keyframes pulse { 0%, 100% { opacity: 0.3; transform: scale(1); } 50% { opacity: 0.6; transform: scale(1.1); } }
.logo-diamond img { width: 80px; height: 80px; transform: rotate(-45deg); object-fit: contain; filter: drop-shadow(0 0 8px rgba(139,92,246,0.6)); }

/* DROPDOWN */
.navbar-dropdown { position: fixed; top: 120px; left: 50%; transform: translateX(-50%) translateY(-10px); background: rgba(15,15,30,0.98); backdrop-filter: blur(20px); border: 1px solid rgba(139,92,246,0.3); border-radius: 1rem; padding: 1.5rem; min-width: 300px; opacity: 0; visibility: hidden; transition: all 0.3s; box-shadow: 0 20px 50px rgba(0,0,0,0.5); z-index: 999; }
.navbar-dropdown.active { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); }
.dropdown-links { list-style: none; }
.dropdown-links li { margin-bottom: 0.5rem; }
.dropdown-link { display: flex; align-items: center; gap: 1rem; padding: 0.75rem 1rem; color: var(--text-secondary); text-decoration: none; border-radius: 0.5rem; transition: all 0.15s; font-weight: 500; }
.dropdown-link:hover { background: rgba(139,92,246,0.2); color: var(--primary-purple-light); transform: translateX(5px); }
.dropdown-link i { font-size: 1.2rem; width: 24px; text-align: center; }

/* AUTH BUTTONS */
.btn-auth { padding: 0.5rem 1.5rem; border-radius: 0.75rem; text-decoration: none; font-weight: 600; transition: all 0.3s; border: 2px solid transparent; font-size: 0.95rem; }
.btn-signup { background: linear-gradient(135deg, var(--primary-purple), var(--primary-cyan)); color: var(--text-primary); box-shadow: 0 0 20px rgba(139,92,246,0.4); }
.btn-signup:hover { transform: translateY(-2px); box-shadow: 0 5px 25px rgba(139,92,246,0.6); }
.btn-login { color: var(--text-primary); border-color: rgba(255,255,255,0.3); }
.btn-login:hover { background: rgba(255,255,255,0.1); border-color: var(--primary-cyan-light); }

/* MOBILE TOGGLE */
.navbar-toggle { display: none; flex-direction: column; gap: 5px; cursor: pointer; padding: 0.5rem; }
.navbar-toggle span { width: 25px; height: 3px; background: var(--primary-purple-light); border-radius: 2px; transition: all 0.3s; }




/* MOBILE MEDIA QUERY */
@media (max-width: 768px) {
    .navbar-left, .navbar-right {
        position: fixed !important;
        top: 90px !important;
        left: 0 !important;
        right: 0 !important;
        background: rgba(15,15,30,0.15) !important;
        backdrop-filter: blur(30px) saturate(180%) !important;
        -webkit-backdrop-filter: blur(20px) !important;
        flex-direction: column !important;
        padding: 2rem !important;
        gap: 1rem !important;
        opacity: 0 !important;
        visibility: hidden !important;
        transition: all 0.3s ease !important;
        border-bottom: 1px solid rgba(139,92,246,0.3) !important;
        z-index: 999 !important;
    }

    /* Container per Login/Signup orizzontale */
    .navbar-right {
        align-items: stretch !important;
    }

    /* I bottoni auth vanno in orizzontale */
    .navbar-right > .btn-auth {
        display: inline-block !important;
    }

    /* Wrapper per bottoni auth (se non loggato) */
    .navbar-right:not(:has(#userMenu)) {
        flex-direction: row !important;
        justify-content: center !important;
        gap: 1rem !important;
    }

    .navbar-left.active, .navbar-right.active {
        opacity: 1 !important;
        visibility: visible !important;
    }

    .navbar-left.active {
        margin-top: 100px;
    }

    .navbar-toggle {
        display: flex !important;
    }

    .navbar-container {
        padding: 0.5rem 1rem !important;
    }

    /* Nascondi social icons su mobile */
    .social-icons,
    .navbar-right .social-icons,
    .social-icon {
        display: none !important;
    }

    /* Logo sempre visibile */
    .navbar-logo {
        z-index: 1001 !important;
    }

    /* RIORDINA elementi dentro #userMenu su mobile */
    #userMenu {
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        gap: 0.75rem !important;
    }

    /* Dashboard (bottone con classe btn-auth btn-signup) = order 1 */
    #userMenu .btn-auth {
        order: 1 !important;
    }

    /* Carrello (div con icona shopping-cart) = order 2 */
    #userMenu > div[style*="relative"] {
        order: 2 !important;
    }

    /* Profilo = order 4 */
    #userMenu .user-profile-wrapper {
        order: 3 !important;
    }

    /* Notifiche = order 3 */
    #userMenu .notifications-wrapper {
        order: 4 !important;
    }

    

    /* Login/Signup buttons fuori da userMenu = order 5 */
    .navbar-right > .btn-auth {
        order: 5 !important;
    }
}