/* ===== Header & Navigation Styles ===== */

.site-header {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 500;
  background: rgba(15, 10, 30, 0.92);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(168, 85, 247, 0.15);
  transition: all 0.3s ease;
}

.site-header.scrolled {
  background: rgba(10, 5, 20, 0.98);
  box-shadow: 0 4px 30px rgba(123, 47, 190, 0.2);
}

.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 32px; height: 70px;
  max-width: 1400px; margin: 0 auto;
}

/* Logo */
.logo {
  display: flex; align-items: center; gap: 10px;
  cursor: pointer; text-decoration: none;
}
.logo-mark {
  width: 42px; height: 42px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 22px;
  box-shadow: 0 4px 16px rgba(123, 47, 190, 0.4);
  animation: float 3s ease-in-out infinite;
}
.logo-text {
  display: flex; flex-direction: column; line-height: 1;
}
.logo-text .brand { font-family: var(--font-display); font-size: 18px; font-weight: 700; color: #fff; }
.logo-text .tagline { font-size: 10px; color: var(--accent); letter-spacing: 1.5px; text-transform: uppercase; font-weight: 600; }

/* Desktop Nav */
.desktop-nav {
  display: flex; align-items: center; gap: 4px;
}

.nav-link {
  padding: 8px 14px;
  color: rgba(255, 255, 255, 0.75);
  font-size: 14px; font-weight: 600;
  cursor: pointer; border-radius: 8px;
  transition: all 0.2s; text-decoration: none;
  position: relative;
}
.nav-link:hover { color: #fff; background: rgba(168, 85, 247, 0.15); }
.nav-link.active { color: var(--accent); }
.nav-link.active::after {
  content: '';
  position: absolute; bottom: -2px; left: 14px; right: 14px;
  height: 2px; border-radius: 2px;
  background: var(--accent);
}

/* Header Actions */
.header-actions { display: flex; align-items: center; gap: 10px; }

.btn-header-login {
  padding: 8px 20px;
  background: transparent;
  border: 1.5px solid var(--accent);
  color: var(--accent); border-radius: 8px;
  font-size: 13px; font-weight: 700;
  cursor: pointer; transition: all 0.2s;
  font-family: var(--font-body);
}
.btn-header-login:hover { background: var(--accent); color: #fff; }

.btn-header-register {
  padding: 8px 20px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #fff; border: none; border-radius: 8px;
  font-size: 13px; font-weight: 700;
  cursor: pointer; transition: all 0.2s;
  font-family: var(--font-body);
  box-shadow: 0 4px 16px rgba(123, 47, 190, 0.35);
}
.btn-header-register:hover { transform: translateY(-1px); box-shadow: 0 6px 20px rgba(123, 47, 190, 0.5); }

/* User Avatar in header */
.user-avatar-btn {
  width: 38px; height: 38px; border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--pink-accent));
  border: 2px solid var(--accent);
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-weight: 700; font-size: 16px;
  cursor: pointer; transition: all 0.2s;
  position: relative;
}
.user-avatar-btn:hover { transform: scale(1.05); box-shadow: 0 4px 16px rgba(168, 85, 247, 0.4); }

/* User Dropdown */
.user-dropdown {
  position: absolute; top: calc(100% + 10px); right: 0;
  background: #fff; border-radius: var(--radius-sm);
  box-shadow: 0 16px 50px rgba(0,0,0,0.2);
  min-width: 200px; padding: 8px;
  display: none; z-index: 600;
  border: 1px solid var(--border);
  animation: fadeInUp 0.2s ease;
}
.user-dropdown.show { display: block; }
.user-dropdown-header {
  padding: 12px 14px 10px;
  border-bottom: 1px solid #F0ECF9;
  margin-bottom: 6px;
}
.user-dropdown-name { font-weight: 700; font-size: 14px; color: var(--text-dark); }
.user-dropdown-phone { font-size: 12px; color: var(--text-muted); }
.dropdown-item {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 14px; border-radius: 8px;
  cursor: pointer; color: var(--text-mid); font-size: 14px; font-weight: 600;
  transition: background 0.15s;
}
.dropdown-item:hover { background: rgba(123, 47, 190, 0.08); color: var(--primary); }
.dropdown-item.danger:hover { background: #FEE2E2; color: #DC2626; }

/* Mobile Hamburger */
.hamburger {
  display: none; flex-direction: column; gap: 5px;
  cursor: pointer; padding: 8px;
}
.hamburger span {
  width: 24px; height: 2px; background: #fff;
  border-radius: 2px; transition: all 0.3s;
}
.hamburger.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* Mobile Nav Drawer */
.mobile-nav {
  position: fixed; top: 70px; left: 0; right: 0; bottom: 0;
  background: rgba(10, 5, 20, 0.98);
  z-index: 490; padding: 20px;
  display: flex; flex-direction: column; gap: 4px;
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}
.mobile-nav.open { transform: translateX(0); }
.mobile-nav .nav-link {
  font-size: 18px; padding: 14px 16px;
  border-bottom: 1px solid rgba(168,85,247,0.1);
  border-radius: 0;
}
.mobile-nav-actions { margin-top: 20px; display: flex; flex-direction: column; gap: 12px; }

/* Page content push */
.page-content { padding-top: 70px; }

@media (max-width: 900px) {
  .desktop-nav { display: none; }
  .hamburger { display: flex; }
  .btn-header-login, .btn-header-register { display: none; }
  .header-inner { padding: 0 20px; }
}
