/* Styles modernisés pour la navbar de CINEQUIZ */

/* Variables de couleurs */
:root {
  --primary-purple: #9381ff;
  --primary-yellow: #ffd166;
  --background-dark: rgba(15, 23, 42, 0.9);
  --glass-bg: rgba(255, 255, 255, 0.1);
  --glass-border: rgba(255, 255, 255, 0.1);
  --text-light: #ffffff;
  --shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

/* Navbar principale */
.navbar-cinequiz {
  background: var(--background-dark);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: var(--shadow);
  padding: 0.6rem 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  z-index: 1000;
}

/* Logo */
.navbar-brand {
  display: flex;
  align-items: center;
  margin-right: 2rem;
}

.logo-text {
  font-size: 1.7rem;
  font-weight: 800;
  transition: all 0.2s ease;
}

.logo-text.yellow {
  color: var(--primary-yellow);
}

.logo-text.purple {
  color: var(--primary-purple) !important;
}

/* Bouton hamburger */
.navbar-toggler {
  border: none;
  background: rgba(255, 255, 255, 0.05);
  padding: 0.4rem;
  border-radius: 5px;
  transition: all 0.2s ease;
}

.navbar-toggler:focus {
  box-shadow: none;
  outline: none;
}

.toggler-icon {
  display: block;
  width: 22px;
  height: 2px;
  background: white;
  position: relative;
  transition: all 0.3s ease;
}

.toggler-icon:before,
.toggler-icon:after {
  content: '';
  position: absolute;
  width: 22px;
  height: 2px;
  background: white;
  transition: all 0.3s ease;
}

.toggler-icon:before {
  top: -6px;
}

.toggler-icon:after {
  bottom: -6px;
}

/* Style des liens de navigation */
.navbar-nav .nav-link {
  color: var(--text-light);
  padding: 0.6rem 1.2rem;
  margin: 0 0.2rem;
  border-radius: 5px;
  transition: all 0.2s ease;
  opacity: 0.85;
}

.navbar-nav .nav-link:hover {
  background: rgba(255, 255, 255, 0.1);
  opacity: 1;
  transform: translateY(-2px);
}

.navbar-nav .nav-link i {
  margin-right: 0.5rem;
}

/* Zone utilisateur */
.nav-user-section {
  display: flex;
  align-items: center;
  margin-left: auto;
}

/* Info utilisateur */
.user-info {
  display: flex;
  align-items: center;
  padding: 0.5rem 1rem;
  margin-right: 1rem;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 50px;
}

.user-info i {
  font-size: 1.1rem;
  margin-right: 0.5rem;
  color: var(--primary-yellow);
}

/* Boutons d'authentification */
.auth-buttons {
  display: flex;
  gap: 0.5rem;
}

.auth-buttons .btn {
  padding: 0.5rem 1rem;
  border-radius: 5px;
  font-size: 0.9rem;
  font-weight: 500;
  transition: all 0.2s ease;
}

.btn-login {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-light);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-login:hover {
  background: rgba(255, 255, 255, 0.2);
  color: var(--text-light);
}

.btn-register {
  background: linear-gradient(135deg, #9381ff, #6366f1);
  color: var(--text-light);
  border: none;
}

.btn-register:hover {
  background: linear-gradient(135deg, #8070ee, #5254de);
  transform: translateY(-2px);
  color: var(--text-light);
}

.btn-logout {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-light);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-logout:hover {
  background: rgba(239, 68, 68, 0.2);
  color: var(--text-light);
}

/* Adaptations responsives */
@media (max-width: 991.98px) {
  .navbar-collapse {
    background: var(--background-dark);
    border-radius: 0 0 10px 10px;
    padding: 1rem;
    margin-top: 0.5rem;
    box-shadow: var(--shadow);
    border: 1px solid rgba(255, 255, 255, 0.05);
  }

  .nav-user-section {
    flex-direction: column;
    align-items: stretch;
    margin-top: 1rem;
    width: 100%;
  }

  .user-info {
    margin-right: 0;
    margin-bottom: 0.5rem;
    justify-content: center;
  }

  .auth-buttons {
    flex-direction: column;
  }

  .auth-buttons .btn {
    width: 100%;
    text-align: center;
    margin-bottom: 0.5rem;
  }
}

/* Adaptations pour petits écrans */
@media (max-width: 575.98px) {
  .logo-text {
    font-size: 1.5rem;
  }

  .navbar-cinequiz {
    padding: 0.5rem;
  }
}