/* Development Channels — Site Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 1030;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(226, 232, 240, 0.9);
  box-shadow: 0 4px 24px rgba(15, 23, 42, 0.06);
}

.site-header::after {
  content: "";
  display: block;
  height: 3px;
  background: linear-gradient(90deg, #ce0000, #e63946 35%, #3b82f6 65%, #001b8e);
}

.site-header__nav {
  padding: 0.65rem 0;
}

.site-header__nav .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.site-header__brand {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  text-decoration: none;
  min-width: 0;
}

.site-header__brand:hover {
  text-decoration: none;
}

.site-header__logo {
  width: 52px;
  height: 52px;
  object-fit: cover;
  border-radius: 12px;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.12);
  flex-shrink: 0;
}

.site-header__brand-text {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  min-width: 0;
}

.site-header__brand-text strong {
  font-size: 0.98rem;
  font-weight: 700;
  color: #0a1628;
  line-height: 1.25;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.site-header__brand-text small {
  font-size: 0.72rem;
  color: #64748b;
  letter-spacing: 0.02em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.site-header__actions {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  flex-shrink: 0;
}

.site-header__partner {
  display: none;
  align-items: center;
  padding: 0.35rem 0.5rem;
  border-radius: 12px;
  background: #fff;
  border: 1px solid #e2e8f0;
  box-shadow: 0 2px 10px rgba(15, 23, 42, 0.05);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.site-header__partner:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.1);
}

.site-header__partner img {
  height: 44px;
  width: auto;
  max-width: 120px;
  object-fit: contain;
  display: block;
}

.site-header__login-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.55rem 1.15rem;
  font-size: 0.88rem;
  font-weight: 600;
  color: #fff;
  text-decoration: none;
  border-radius: 999px;
  background: linear-gradient(135deg, #1a2f6b 0%, #2563eb 100%);
  box-shadow: 0 4px 14px rgba(26, 47, 107, 0.28);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.site-header__login-btn:hover {
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(26, 47, 107, 0.35);
}

/* PHP app navbar overrides */
.site-header .navbar {
  margin: 0 !important;
  padding: 0.65rem 0 !important;
  border: none !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
  position: static !important;
  top: auto !important;
  animation: none !important;
}

.site-header .navbar::after {
  display: none;
}

.site-header .navbar-brand {
  gap: 0.85rem !important;
  font-size: inherit !important;
  color: #0a1628 !important;
}

.site-header .navbar-brand img {
  width: 52px !important;
  height: 52px !important;
  border-radius: 12px;
  object-fit: cover;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.12);
}

.site-header .navbar-brand .site-header__brand-text strong {
  font-size: 0.98rem;
  font-weight: 700;
  color: #0a1628;
  display: block;
  line-height: 1.25;
}

.site-header .navbar-brand .site-header__brand-text small {
  font-size: 0.72rem;
  color: #64748b;
  display: block;
}

.site-header .navbar-toggler {
  border: 1px solid rgba(26, 47, 107, 0.2) !important;
  border-radius: 10px !important;
  padding: 0.35rem 0.55rem !important;
  background: rgba(26, 47, 107, 0.04) !important;
}

.site-header .navbar-toggler:focus {
  box-shadow: 0 0 0 0.2rem rgba(59, 130, 246, 0.2) !important;
}

.site-header .navbar-nav .nav-link {
  border-radius: 999px !important;
  font-size: 0.88rem !important;
  padding: 0.45rem 1rem !important;
  margin: 0.15rem 0.2rem !important;
}

.site-header .navbar-nav .nav-link.active {
  background: linear-gradient(135deg, #1a2f6b, #2563eb) !important;
  color: #fff !important;
  border-color: transparent !important;
}

.site-header .points-display {
  border-radius: 999px !important;
}

.site-header .navbar-nav .dropdown-toggle {
  border-radius: 999px !important;
}

.site-header .dropdown-menu {
  border-radius: 14px !important;
  border: 1px solid #e2e8f0 !important;
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.12) !important;
}

@media (min-width: 768px) {
  .site-header__partner {
    display: inline-flex;
  }

  .site-header--simple .site-header__partner {
    display: none;
  }
}

@media (max-width: 575px) {
  .site-header__brand-text {
    display: none;
  }

  .site-header__logo {
    width: 44px;
    height: 44px;
  }

  .site-header__login-btn {
    padding: 0.5rem 0.9rem;
    font-size: 0.82rem;
  }
}

@media (max-width: 991px) {
  .site-header .navbar-collapse {
    margin-top: 0.85rem;
    padding: 1rem;
    border-radius: 14px;
    background: rgba(248, 250, 252, 0.98) !important;
    border: 1px solid #e2e8f0 !important;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08) !important;
  }
}
