/* ============================================
   NewZone RP - Stili condivisi
   header, nav, footer, hamburger
   ============================================ */

/* ── RESET BASE ── */
* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #1a0033 0%, #330066 50%, #1a0033 100%);
    min-height: 100vh;
}

/* ── HEADER ── */
header {
    background: rgba(0,0,0,0.9);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 20px rgba(255,0,255,0.3);
}

nav {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 2rem;
}

/* ── LOGO ── */
.logo {
    font-size: 1.8rem;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-decoration: none;
}

.logo-text-new {
    background: linear-gradient(135deg, #c0c0c0 0%, #ffffff 50%, #c0c0c0 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.logo-text-zone {
    color: #ff00ff;
    text-shadow: 0 0 20px rgba(255,0,255,0.6);
}

/* ── NAV LINKS (pubblica) ── */
.nav-links {
    display: flex;
    gap: 0.5rem;
    list-style: none;
    align-items: center;
}

.nav-links a {
    color: #fff;
    text-decoration: none;
    font-size: 0.95rem;
    transition: all 0.3s;
    padding: 0.6rem 1rem;
    border-radius: 5px;
}

.nav-links a:hover {
    color: #ff00ff;
    background: rgba(255,0,255,0.1);
}

.nav-links a.login-btn {
    background: linear-gradient(135deg, #ff00ff 0%, #cc00cc 100%);
    padding: 0.6rem 1.5rem;
    font-weight: 600;
}

.nav-links a.login-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255,0,255,0.4);
}

.nav-links a.active-nav,
.nav-links a.current {
    color: #ff00ff;
    background: rgba(255,0,255,0.1);
}

/* ── NAV RIGHT (staff) ── */
.nav-right {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.back-btn {
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    color: #fff;
    padding: 0.6rem 1.5rem;
    border-radius: 5px;
    font-size: 0.9rem;
    text-decoration: none;
    transition: all 0.3s;
    display: inline-block;
}

.back-btn:hover {
    background: rgba(255,0,255,0.2);
    border-color: #ff00ff;
}

.logout-btn {
    background: linear-gradient(135deg, #ff00ff 0%, #cc00cc 100%);
    color: #fff;
    border: none;
    padding: 0.6rem 1.5rem;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s;
    box-shadow: 0 3px 10px rgba(255,0,255,0.3);
}

.logout-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255,0,255,0.5);
}

.user-badge {
    background: linear-gradient(135deg, #ff00ff 0%, #cc00cc 100%);
    color: #fff;
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.9rem;
}

/* ── HAMBURGER ── */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
    z-index: 1001;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: #fff;
    border-radius: 3px;
    transition: all 0.3s;
}

.hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(8px,8px); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(7px,-7px); }

/* ── FOOTER ── */
footer {
    background: rgba(0,0,0,0.9);
    color: #fff;
    text-align: center;
    padding: 2rem;
    margin-top: 4rem;
}

.footer-divider {
    width: 200px;
    height: 2px;
    background: linear-gradient(90deg, transparent, #ff00ff, transparent);
    margin: 1.5rem auto;
}

.footer-logo {
    width: 80px;
    height: auto;
    opacity: 0.8;
    transition: opacity 0.3s;
}

.footer-logo:hover { opacity: 1; }

.footer-links a {
    color: #ff00ff;
    text-decoration: none;
    margin: 0 0.5rem;
}

.footer-links a:hover { text-decoration: underline; }

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
    .hamburger { display: flex; }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        height: 100vh;
        width: 280px;
        background: rgba(0,0,0,0.98);
        flex-direction: column;
        align-items: flex-start;
        padding: 5rem 2rem 2rem;
        gap: 0;
        transition: right 0.3s ease;
        box-shadow: -5px 0 20px rgba(0,0,0,0.5);
    }

    .nav-links.active { right: 0; }

    .nav-links li {
        width: 100%;
        border-bottom: 1px solid rgba(255,255,255,0.1);
    }

    .nav-links a {
        display: block;
        width: 100%;
        padding: 1rem;
        font-size: 1.1rem;
    }

    .nav-links a.login-btn {
        margin-top: 1rem;
        text-align: center;
    }

    .nav-right {
        flex-direction: column;
        gap: 0.5rem;
    }
}
