/* ===== NAVBAR STYLES ===== */
.cyberpunk-navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.5rem 1.5rem;
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 255, 255, 0.3);
    border-radius: 10px;
    position: sticky;
    top: 10px;
    z-index: 1000;
    width: auto;
    max-width: 90%;
    margin: 0 auto;
    box-shadow: 0 0 15px rgba(0, 255, 255, 0.2);
}

/* Logo/Brand */
.navbar-brand {
    flex: 0 0 auto;
}

.navbar-brand .logo {
    font-family: 'Press Start 2P', cursive;
    font-size: 1.5rem;
    color: #fff;
    text-decoration: none;
    text-shadow: 
        0 0 5px rgba(0, 255, 255, 0.5),
        0 0 10px rgba(0, 255, 255, 0.3);
    display: inline-block;
    position: relative;
    padding: 0.5rem 0;
}

.navbar-brand .logo::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent, #0ff, transparent);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.navbar-brand .logo:hover::after {
    transform: scaleX(1);
}

/* Navigation Links */
.navbar-links {
    flex: 0 1 auto;
    display: flex;
    justify-content: center;
}

.navbar-links ul {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
}

.navbar-links li {
    position: relative;
    margin: 0 0.5rem;
}

.navbar-links a {
    color: #ccc;
    text-decoration: none;
    font-family: 'Share Tech Mono', monospace;
    font-size: 0.9rem;
    padding: 0.5rem 0.8rem;
    display: block;
    position: relative;
    transition: color 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.navbar-links a:hover, .navbar-links a.active {
    color: #0ff;
}

.navbar-links a::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background-color: #0ff;
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.3s ease;
}

.navbar-links a:hover::before, .navbar-links a.active::before {
    transform: scaleX(1);
    transform-origin: left;
}

/* User Menu */
.navbar-user {
    flex: 0 0 auto;
    margin-left: 1rem;
}

.user-menu {
    position: relative;
}

.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(0, 255, 255, 0.5);
    position: relative;
}

.avatar-icon {
    color: #0ff;
    font-size: 1.2rem;
    position: relative;
}

.status-indicator {
    position: absolute;
    bottom: -3px;
    right: -3px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: 1px solid #000;
}

.status-indicator.admin {
    background-color: #f50;
    box-shadow: 0 0 5px rgba(255, 85, 0, 0.7);
}

.status-indicator.client {
    background-color: #0ff;
    box-shadow: 0 0 5px rgba(0, 255, 255, 0.7);
}

/* Badge de vérification d'email */
.verification-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background-color: #ff9900;
    color: #000;
    border-radius: 50%;
    width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    box-shadow: 0 0 5px rgba(255, 153, 0, 0.7);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(1);
        box-shadow: 0 0 5px rgba(255, 153, 0, 0.7);
    }
    50% {
        transform: scale(1.1);
        box-shadow: 0 0 8px rgba(255, 153, 0, 0.9);
    }
    100% {
        transform: scale(1);
        box-shadow: 0 0 5px rgba(255, 153, 0, 0.7);
    }
}

.user-avatar:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 255, 255, 0.2);
}

.user-dropdown {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    width: 240px;
    background-color: rgba(0, 10, 30, 0.95);
    border: 1px solid rgba(0, 255, 255, 0.3);
    border-radius: 5px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 10;
    overflow: hidden;
}

.user-dropdown.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-header {
    padding: 1rem;
    border-bottom: 1px solid rgba(0, 255, 255, 0.2);
    text-align: center;
}

.user-name {
    font-size: 1rem;
    color: #fff;
    margin-bottom: 0.25rem;
    font-weight: bold;
}

.user-role {
    font-size: 0.8rem;
    color: #0ff;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Avertissement de vérification d'email */
.verification-warning {
    margin-top: 0.5rem;
    padding: 0.4rem;
    background-color: rgba(255, 153, 0, 0.2);
    border: 1px solid #ff9900;
    border-radius: 3px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    color: #ff9900;
}

.verification-warning i {
    margin-right: 5px;
}

.dropdown-divider {
    height: 1px;
    background: linear-gradient(to right, transparent, rgba(0, 255, 255, 0.2), transparent);
    margin: 0.25rem 0;
}

.dropdown-items {
    padding: 0.5rem 0;
}

.dropdown-item {
    display: flex;
    align-items: center;
    padding: 0.75rem 1rem;
    color: #ccc;
    text-decoration: none;
    transition: all 0.2s ease;
}

.dropdown-item:hover {
    background-color: rgba(0, 255, 255, 0.1);
    color: #0ff;
}

/* Items qui nécessitent une vérification d'email */
.dropdown-item.verify-required {
    position: relative;
    overflow: hidden;
}

.dropdown-item.verify-required::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 5px;
    height: 100%;
    background-color: #ff9900;
    opacity: 0.7;
}

.dropdown-item.show-verify-modal {
    color: #ff9900;
}

.dropdown-item.show-verify-modal:hover {
    background-color: rgba(255, 153, 0, 0.1);
    color: #ffb84d;
}

.dropdown-item i {
    margin-right: 10px;
    width: 20px;
    text-align: center;
}

.dropdown-item.logout {
    color: #ff1f44;
    background-color: transparent;
    border: none;
    width: 100%;
    text-align: left;
    font-family: inherit;
    font-size: inherit;
    cursor: pointer;
    display: flex;
    align-items: center;
}

.dropdown-item.logout:hover {
    background-color: rgba(255, 31, 68, 0.1);
}

.logout-form {
    width: 100%;
}

/* Authentication Buttons */
.auth-buttons {
    display: flex;
    align-items: center;
}

.login-button, .register-button {
    background-color: transparent;
    border: none;
    cursor: pointer;
    font-family: 'Share Tech Mono', monospace;
    transition: all 0.3s ease;
    padding: 0.5rem 1rem;
    display: flex;
    align-items: center;
}

.login-button {
    color: #0ff;
}

.login-button i {
    margin-right: 0.5rem;
}

.register-button {
    margin-left: 0.5rem;
    color: #fff;
    background-color: rgba(0, 255, 255, 0.1);
    border: 1px solid #0ff;
}

.login-button:hover {
    color: #fff;
    text-shadow: 0 0 5px rgba(0, 255, 255, 0.7);
}

.register-button:hover {
    background-color: rgba(0, 255, 255, 0.2);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 255, 255, 0.2);
}

/* Language Switcher */
.navbar-lang {
    flex: 0 0 auto;
    margin-left: 1rem;
}

.lang-select {
    position: relative;
    cursor: pointer;
}

.current-lang {
    text-transform: uppercase;
    padding: 0.5rem;
    color: #0ff;
    border: 1px solid rgba(0, 255, 255, 0.3);
    transition: all 0.3s ease;
    font-size: 0.8rem;
    letter-spacing: 1px;
}

.current-lang:hover {
    background-color: rgba(0, 255, 255, 0.1);
}

.lang-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    background-color: rgba(0, 10, 30, 0.95);
    border: 1px solid rgba(0, 255, 255, 0.3);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
    z-index: 10;
}

.lang-select:hover .lang-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.lang-dropdown a {
    display: block;
    padding: 0.5rem 1rem;
    color: #ccc;
    text-decoration: none;
    transition: all 0.2s ease;
}

.lang-dropdown a:hover, .lang-dropdown a.active {
    background-color: rgba(0, 255, 255, 0.1);
    color: #0ff;
}

/* Mobile Toggle */
.navbar-mobile-toggle {
    display: none;
    cursor: pointer;
    flex: 0 0 auto;
}

.hamburger {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 24px;
    height: 18px;
}

.hamburger span {
    height: 2px;
    width: 100%;
    background-color: #0ff;
    transition: all 0.3s ease;
}

.hamburger.active span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

.mobile-only {
    display: none;
}

.verify-message {
    margin-bottom: 1rem;
    font-size: 1rem;
    line-height: 1.5;
}

.verify-message p {
    margin: 0.5rem 0;
}

.verify-message-sent {
    margin-top: 1rem;
    color: var(--neon-green);
    font-weight: bold;
    font-size: 1.1rem;
}

@media (max-width: 1318px)
{
    .navbar-user .cyber-button {
        padding: 0.5rem 1rem;
    }
}

@media (max-width: 1248px)
{
    .navbar-user .register-trigger {
        display: none;
    }
}

@media (max-width: 992px) {
    .cyberpunk-navbar {
        max-width: 100%;
    }
}

/* Media Queries */
@media (max-width: 904px) {
    .cyberpunk-navbar {
        max-width: 100%;
        padding-top: 10px;
        padding-bottom: 10px;
        grid-template-columns: 1fr 1fr 1fr;
    }
    
    .navbar-mobile-toggle {
        display: flex;
        order: 1;
    }

    .navbar-brand {
        order: 2;
        flex-grow: 1;
        text-align: center;
    }

    .navbar-user {
        order: 3;
    }

    .navbar-lang {
        order: 4;
    }

    .navbar-links {
        position: fixed;
        top: 60px;
        left: 0;
        width: 100%;
        background-color: rgba(0, 10, 30, 0.95);
        height: 0;
        overflow: hidden;
        transition: height 0.3s ease;
        order: 5;
        flex-basis: 100%;
    }

    .navbar-links.active {
        height: calc(100vh - 20px);
        border-top: 1px solid rgba(0, 255, 255, 0.3);
    }

    .navbar-links ul {
        flex-direction: column;
        padding: 1rem 0;
    }

    .navbar-links li {
        margin: 0;
        width: 100%;
        padding: 1rem 0;
    }

    .navbar-links a {
        padding: 1rem 2rem;
        text-align: center;
        border-bottom: 1px solid rgba(0, 255, 255, 0.1);
        font-size: 1.5rem;
       

    }

    .navbar-links button {

        font-size: 1.5rem;
    }

    .mobile-only {
        display: block;
    }

    .desktop-only {
        display: none;
    }
    
    .navbar-links a::before {
        display: none;
    }
}

@media (max-width: 576px) {
    .navbar-lang {
        display: none;
    }
}
