/* assets/css/header.css */
* {
  box-sizing: border-box;
}
body.site-body {
  background: linear-gradient(180deg, #0a1e35 0%, #1a3a5c 50%, #0a1e35 100%);
  color: #e8eaed;
  font-family: Inter, "Helvetica Neue", Arial, sans-serif;
  margin: 0;
  padding-top: 90px;
}

/* Custom Scrollbar */
/* Custom Scrollbar - Dark to match site background (FORCED) */
::-webkit-scrollbar {
  width: 8px !important;
  background: rgba(10, 30, 53, 0.2) !important;
}
::-webkit-scrollbar-track {
  background: rgba(10, 30, 53, 0.2) !important;
}
::-webkit-scrollbar-thumb {
  background: rgba(26, 58, 92, 0.5) !important;
  border-radius: 10px !important;
  transition: background 0.3s ease !important;
}
::-webkit-scrollbar-thumb:hover {
  background: rgba(26, 58, 92, 0.7) !important;
}
html {
  scrollbar-width: thin !important;
  scrollbar-color: rgba(26, 58, 92, 0.4) rgba(10, 30, 53, 0.2) !important;
}

.container {
  width: 1200px;
  max-width: 95%;
  margin: 0 auto;
}

.site-header {
  background: linear-gradient(180deg, #0a1e35 0%, #1a3a5c 100%);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  padding: 12px 0;
  border-bottom: 1px solid rgba(59, 130, 246, 0.2);
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  box-shadow: 0 2px 8px rgba(59, 130, 246, 0.08);
  transition: all 0.3s ease;
  overflow: visible;
}
.site-header.scrolled {
  background: linear-gradient(
    180deg,
    rgba(10, 30, 53, 0.7) 0%,
    rgba(26, 58, 92, 0.7) 100%
  );
  border-bottom: 1px solid rgba(59, 130, 246, 0.15);
}
.site-header::after {
  content: "";
  position: absolute;
  bottom: -1px;
  left: 10%;
  right: 10%;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(59, 130, 246, 0.75) 30%,
    rgba(59, 130, 246, 1) 50%,
    rgba(59, 130, 246, 0.75) 70%,
    transparent
  );
  box-shadow: 0 0 20px rgba(59, 130, 246, 0.5);
  transition: all 0.3s ease;
}
.site-header.scrolled::after {
  height: 0.5px;
  opacity: 0.7;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 20px;
}
.logo-wrap {
  flex-shrink: 0;
}
.main-nav {
  margin-left: auto;
  margin-right: 0;
}

.logo-wrap a {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.logo {
  height: 32px;
  width: auto;
  filter: brightness(0) saturate(100%) invert(100%);
}

.logo-text {
  font-size: 18px;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: 0.3px;
  text-transform: lowercase;
  position: relative;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
}

.main-nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  gap: 24px;
  align-items: center;
}
.main-nav a {
  color: #90caf9;
  font-size: 14px;
  text-decoration: none;
  font-weight: 500;
  padding: 8px 4px;
  border-radius: 0;
  background: transparent;
  border: none;
  border-bottom: 2px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease;
}
.main-nav a:hover {
  color: #e3f2fd;
  border-bottom-color: #3b82f6;
}
.main-nav a.active {
  color: #3b82f6;
  font-weight: 600;
  border-bottom-color: #3b82f6;
}

/* Profile Dropdown */
.profile-dropdown-wrap {
  position: relative;
}
.profile-icon-btn {
  display: flex !important;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(59, 130, 246, 0.1);
  border: 1px solid rgba(59, 130, 246, 0.25);
  padding: 0 !important;
  color: #90caf9;
  transition: all 0.3s ease;
}
.profile-icon-btn:hover {
  background: rgba(59, 130, 246, 0.2);
  border-color: rgba(59, 130, 246, 0.4);
  color: #e3f2fd;
  border-bottom: none !important;
}
.profile-icon-btn svg {
  width: 18px;
  height: 18px;
}
.profile-dropdown {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  min-width: 160px;
  background: rgba(19, 47, 76, 0.98);
  border: 1px solid rgba(59, 130, 246, 0.25);
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
  padding: 8px;
  display: none;
  z-index: 1001;
  backdrop-filter: blur(12px);
}
.profile-dropdown.show {
  display: block;
}
.profile-dropdown-link {
  display: block;
  padding: 10px 14px;
  color: #90caf9;
  font-size: 14px;
  font-weight: 500;
  border-radius: 8px;
  transition: all 0.2s ease;
  border-bottom: none !important;
}
.profile-dropdown-link:hover {
  background: rgba(59, 130, 246, 0.15);
  color: #e3f2fd;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}
.btn-icon {
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 6px;
  display: flex;
  align-items: center;
}
.btn-icon img {
  width: 24px;
  height: 24px;
  filter: brightness(0) invert(1);
  opacity: 0.8;
}

/* Mobile Menu Toggle */
.menu-toggle {
  display: none;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: #e3f2fd;
  margin: 5px 0;
  transition: all 0.3s;
}

@media (max-width: 768px) {
  .logo {
    height: 28px;
  }
  .logo-text {
    font-size: 16px;
  }

  .menu-toggle {
    display: block;
  }
  .menu-toggle span {
    background: #e3f2fd;
  }
  .main-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(10, 25, 41, 0.98);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(59, 130, 246, 0.12);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
    transform: translateY(-100%);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
  }
  .main-nav.active {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }
  .main-nav ul {
    flex-direction: column;
    gap: 0;
    padding: 12px 0;
  }
  .main-nav a {
    display: block;
    width: 100%;
    padding: 14px 24px;
    border-radius: 0;
    border-bottom: none;
    border-left: 3px solid transparent;
  }
  .main-nav a.active {
    background: rgba(59, 130, 246, 0.1);
    box-shadow: none;
    border-left-color: #3b82f6;
  }
  .main-nav a:hover {
    background: rgba(59, 130, 246, 0.08);
    border-left-color: #3b82f6;
  }
  body.site-body {
    padding-top: 80px;
  }
}
