/* =========================================================
   HEADER – EMPIRE VALLEY (FINAL)
   ========================================================= */

/* =========================
   HEADER WRAPPER
========================= */

.main-header {
  width: 100%;
  padding: 1rem 2rem;

  display: flex;
  align-items: center;
  justify-content: space-between;

  background: rgba(15, 15, 20, 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  z-index: 1001;
}

/* =========================
   LOGO
========================= */

.logo-wrap {
  display: flex;
  align-items: center;
  gap: 0.7rem;
}

.logo-wrap img {
  height: 38px;
  width: auto;
  border-radius: 10px;
  filter: drop-shadow(0 0 8px rgba(255,122,0,0.6));
}

.logo-wrap h1 {
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 0.4px;
  color: #fff;
  white-space: nowrap;
}

/* =========================
   AUTH CONTAINER
========================= */

.header-auth {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

/* =====================================================
   LOGIN / REGISTER (AUSGELOGGT)
===================================================== */

.header-auth .auth-link {
  all: unset;
  cursor: pointer;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  padding: 0.45rem 1.15rem;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.03em;

  border-radius: 10px;
  color: #ddd;

  background: rgba(255,255,255,0.06);
  backdrop-filter: blur(4px);

  border: 1px solid rgba(255,255,255,0.08);

  transition:
    background 0.25s ease,
    box-shadow 0.25s ease,
    color 0.25s ease;
}

.header-auth .auth-link:hover {
  background: rgba(255,255,255,0.14);
  color: #fff;
}

/* Register – Primary CTA */
.header-auth .auth-link.primary {
  color: #000;
  background: linear-gradient(
    135deg,
    var(--orange),
    var(--purple)
  );

  border: none;

  box-shadow:
    0 0 14px rgba(255,122,0,0.45),
    0 0 28px rgba(139,92,246,0.35);
}

.header-auth .auth-link.primary:hover {
  box-shadow:
    0 0 22px rgba(255,122,0,0.75),
    0 0 44px rgba(139,92,246,0.55);
}

/* =====================================================
   USER MENU (EINGELOGGT)
===================================================== */

.user-menu {
  position: relative;
}

/* User Button */
.user-profile {
  all: unset;
  cursor: pointer;

  display: inline-flex;
  align-items: center;
  gap: 0.5rem;

  padding: 0.45rem 1.15rem;
  font-size: 0.85rem;
  font-weight: 600;

  border-radius: 12px;
  color: #fff;

  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.08);

  transition: background 0.25s ease;
}

.user-profile:hover {
  background: rgba(255,255,255,0.16);
}

/* Avatar / Icon */
.user-avatar {
  font-size: 1rem;
  opacity: 0.85;
}

/* Username */
.user-name {
  max-width: 120px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* =====================================================
   USER DROPDOWN
===================================================== */

.user-dropdown {
  position: absolute;
  right: 0;
  top: calc(100% + 10px);

  background: rgba(15,15,25,0.95);
  backdrop-filter: blur(10px);

  border-radius: 14px;
  padding: 0.4rem;
  min-width: 170px;

  display: none;
  flex-direction: column;
  gap: 0.2rem;

  box-shadow: 0 0 30px rgba(0,0,0,0.6);
  z-index: 1002;
}

.user-dropdown.open {
  display: flex;
}

.user-dropdown a {
  position: relative;

  padding: 0.55rem 2.2rem 0.55rem 0.9rem;
  border-radius: 8px;

  font-size: 0.85rem;
  font-weight: 500;

  color: #ddd;
  text-decoration: none;

  transition:
    background 0.2s ease,
    color 0.2s ease;
}

.user-dropdown a:hover {
  background: rgba(255,255,255,0.1);
  color: #fff;
}

/* Profil – Stift */
.user-dropdown a[href*="profile"]::after {
  content: "✏️";
  position: absolute;
  right: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 0.9rem;
  opacity: 0.8;
}

/* Logout */
.user-dropdown a.logout {
  color: #ff9a9a;
}

.user-dropdown a.logout::after {
  content: "🚪";
  position: absolute;
  right: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 0.9rem;
  opacity: 0.85;
}

.user-dropdown a:hover::after {
  opacity: 1;
}

/* =========================
   RESPONSIVE
========================= */

@media (max-width: 768px) {
  .main-header {
    padding: 0.9rem 1.2rem;
  }

  .user-name {
    max-width: 80px;
  }

  .header-auth {
    gap: 0.4rem;
  }
}
