/* StylesNavbar.css - Modern Glassmorphism Navbar */

:root {
  /* Farben & Variablen */
  --nav-glass-bg: rgba(255, 255, 255, 0.75); /* Milchglas Basis */
  --nav-glass-border: rgba(255, 255, 255, 0.4);
  --nav-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.1);
  --primary-color: #6366f1; /* Dein Akzent */
  --primary-hover: #4f46e5;
  --text-main: #0f172a;
  --text-muted: #64748b;
  --blur-strength: 16px;
  --nav-height: 76px;
  --radius-pill: 50px;
  --radius-card: 16px;
}

/* === NAVBAR WRAPPER (Floating Container) === */
.navbar-wrapper {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  padding: 16px 0;
  z-index: 1030;
  pointer-events: none;
}

/* === NAVBAR BASIS === */
.navbar-custom {
  height: auto;
  background: rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(50px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  padding: 0.75rem 0;
  border-radius: 22px;
  width: calc(100% - 60px);
  margin: 5px auto 40px;
  pointer-events: auto;
}

/* Logo Anpassung */
.navbar-custom .navbar-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 800;
  font-size: 1.35rem;
  color: #1e293b;
  letter-spacing: -0.5px;
}

.navbar-custom .navbar-brand span {
  background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.navbar-custom .navbar-brand img {
  height: 48px;
  width: auto;
  display: block;
  transition: transform 0.3s ease;
}
.navbar-custom .navbar-brand:hover img {
  transform: scale(1.05);
}

/* === NAVIGATION LINKS (Desktop) === */
.navbar-custom .nav-link {
  color: #344054;
  font-weight: 700;
  padding: 0.5rem 1rem !important;
  border-radius: 8px;
  transition: all 0.2s ease;
  font-size: 15px;
}

.navbar-custom .nav-link:hover {
  background: rgba(0, 0, 0, 0.04);
  color: #6366f1;
  transform: scale(1.1);
}
.footer-social {
  display: flex;
  gap: 12rem;
}
.navbar-custom .nav-link.active {
  background: rgba(99, 102, 241, 0.1);
  color: var(--primary-color);
}

.navbar-custom .nav-icon {
  font-size: 1.15rem;
  color: #344054;
  transition: color 0.2s;
}

.navbar-custom .nav-link:hover .nav-icon {
  color: var(--primary-color);
}

/* === SOCIAL LINKS === */
.social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  color: #667085;
  transition: all 0.2s ease;
  text-decoration: none;
}

.social-link:hover {
  background: rgba(0, 0, 0, 0.04);
  color: #1a1a1a;
}

.social-link i {
  font-size: 18px;
}

/* === BUTTONS === */
.btn-login {
  background: hsla(0, 0%, 0%, 0.02);
  color: #344054;
  font-weight: 500;
  padding: 0.5rem 1.25rem;
  border-radius: 8px;
  font-size: 15px;
  transition: all 0.2s ease;
  text-decoration: none;
  display: inline-block;
}

.btn-login:hover {
  background: rgba(0, 0, 0, 0.02);
  border-color: rgba(0, 0, 0, 0.15);
  color: #1a1a1a;
  transform: translateY(-1px);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

.btn-start-learning {
  background: linear-gradient(135deg, #7f5af0 0%, #9f7aea 100%);
  border: none;
  color: white;
  font-weight: 600;
  padding: 0.5rem 1.25rem;
  border-radius: 8px;
  font-size: 15px;
  transition: all 0.2s ease;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  box-shadow: 0 2px 8px rgba(102, 126, 234, 0.25);
}

.btn-start-learning:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.35);
  color: white;
}

.btn-start-learning .material-symbols-outlined {
  font-size: 18px;
}

/* === PROFILE BUTTON (Eingeloggte User) === */
.profile-btn {
  background: white;
  border: 1px solid rgba(0, 0, 0, 0.1);
  padding: 0.35rem 0.75rem 0.35rem 0.4rem;
  border-radius: 50px;
  color: #344054;
  transition: all 0.2s ease;
}

.profile-btn:hover,
.profile-btn[aria-expanded="true"] {
  background: rgba(0, 0, 0, 0.02);
  border-color: rgba(0, 0, 0, 0.15);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
  transform: translateY(-1px);
}

.profile-photo {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  overflow: hidden;
  background: #f3f4f6;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid white;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.profile-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.profile-info {
  line-height: 1.2;
}

.profile-name {
  font-size: 14px;
  font-weight: 600;
  color: #1a1a1a;
}

.profile-info small {
  font-size: 12px;
  color: #667085;
}

/* === DROPDOWN MENÜ (Bootstrap Override) === */
.navbar-custom .dropdown-menu {
  border: 1px solid rgba(0, 0, 0, 0.08);
  background: white;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
  border-radius: 12px;
  padding: 0.5rem;
  margin-top: 8px !important;
  min-width: 200px;
}

.navbar-custom .dropdown-item {
  border-radius: 6px;
  padding: 0.6rem 1rem;
  font-weight: 500;
  font-size: 14px;
  transition: all 0.15s;
  color: #344054;
}

.navbar-custom .dropdown-item:hover {
  background: rgba(99, 102, 241, 0.08);
  color: var(--primary-color);
}

.navbar-custom .dropdown-item.text-danger:hover {
  background: rgba(220, 53, 69, 0.08);
  color: #dc3545;
}

.navbar-custom .dropdown-item .material-symbols-outlined {
  font-size: 18px;
  margin-right: 4px;
}

.navbar-custom .dropdown-divider {
  margin: 0.5rem 0;
  border-color: rgba(0, 0, 0, 0.06);
}

/* === HAMBURGER TOGGLER === */
.navbar-toggler {
  border: none;
  padding: 0;
  width: 30px;
  height: 30px;
  position: relative;
  z-index: 1060;
}
.navbar-toggler:focus {
  box-shadow: none;
  outline: none;
}

/* Custom Hamburger Animation */
.toggler-icon {
  width: 24px;
  height: 2px;
  background-color: var(--text-main);
  display: block;
  position: relative;
  transition: all 0.3s ease-in-out;
}
.toggler-icon::before,
.toggler-icon::after {
  content: "";
  position: absolute;
  width: 100%;
  height: 2px;
  background-color: var(--text-main);
  transition: all 0.3s ease-in-out;
}
.toggler-icon::before {
  top: -8px;
}
.toggler-icon::after {
  top: 8px;
}

/* Wenn geöffnet (Klasse .open wird per JS oder Bootstrap hinzugefügt) */
.navbar-toggler[aria-expanded="true"] .toggler-icon {
  background-color: transparent;
}
.navbar-toggler[aria-expanded="true"] .toggler-icon::before {
  top: 0;
  transform: rotate(45deg);
}
.navbar-toggler[aria-expanded="true"] .toggler-icon::after {
  top: 0;
  transform: rotate(-45deg);
}

/* === MOBILE OPTIMIERUNG === */
@media (max-width: 991.98px) {
  .navbar-wrapper {
    padding: 10px;
    width: 100%;
    right: 0;
    left: 0;
    pointer-events: none;
  }

  /* Immer Glas-Optik auf Mobile für bessere Sichtbarkeit */
  .navbar-custom {
    border-radius: 16px;
    width: 100%;
    margin: 0;
    background: rgba(255, 255, 255, 0.7) !important;
    backdrop-filter: blur(20px) !important;
    -webkit-backdrop-filter: blur(20px) !important;
    border: 1px solid rgba(0, 0, 0, 0.05) !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05) !important;
    pointer-events: auto;
  }

  .navbar-brand img {
    height: 40px;
  }

  .navbar-brand {
    font-size: 1.15rem !important;
  }

  .navbar-collapse {
    margin-top: 0.5rem;
    padding: 1rem 0;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
  }

  .nav-link {
    font-size: 15px;
    padding: 0.6rem 0.5rem !important;
    display: flex;
    align-items: center;
    gap: 10px;
  }

  .container-fluid {
    background: transparent !important;
    backdrop-filter: none !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  /* Mobile Buttons */
  .btn-login,
  .btn-start-learning {
    width: 100%;
    justify-content: center;
    margin-top: 0.5rem;
  }
}
