/* Header-specific styles for Noon Casinos */

.nc-header {
  position: sticky;
  top: 0;
  z-index: 40;
}

.nc-header__inner {
  align-items: center;
}

/* Brand in the center */
.nc-header__brand {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.9rem;
  border-radius: var(--radius-pill);
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.06), rgba(248, 113, 113, 0.06));
  box-shadow: var(--shadow-xs);
}

.nc-header__brand-mark {
  width: 32px;
  height: 32px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--color-primary), var(--color-coral));
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 600;
  color: #ffffff;
}

.nc-header__brand-text {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* Nav links */
.nc-header__link {
  position: relative;
  font-size: 0.9rem;
  text-transform: none;
}

.nc-header__link--highlight {
  padding: 0.35rem 0.9rem;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(148, 163, 184, 0.5);
}

.nc-header__link--highlight:hover {
  border-color: var(--color-primary);
  background-color: rgba(37, 99, 235, 0.04);
}

/* Mobile menu toggle */
.nc-header__menu-toggle {
  display: none;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.75rem;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(148, 163, 184, 0.5);
  background-color: rgba(255, 255, 255, 0.9);
  cursor: pointer;
}

.nc-header__menu-label {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--color-text-soft);
}

.nc-header__menu-icon {
  position: relative;
  width: 18px;
  height: 14px;
}

.nc-header__menu-icon::before,
.nc-header__menu-icon::after,
.nc-header__menu-icon span {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 2px;
  border-radius: 999px;
  background-color: var(--color-text);
  transition: transform var(--transition-base), opacity var(--transition-base), top var(--transition-base), bottom var(--transition-base);
}

.nc-header__menu-icon::before {
  top: 0;
}

.nc-header__menu-icon::after {
  bottom: 0;
}

/* Open state handled with parent class */
.nc-header--menu-open .nc-header__menu-icon::before {
  top: 6px;
  transform: rotate(45deg);
}

.nc-header--menu-open .nc-header__menu-icon::after {
  bottom: 6px;
  transform: rotate(-45deg);
}

/* Mobile navigation drawer */
.nc-header__mobile {
  display: none;
  background-color: rgba(255, 255, 255, 0.98);
  border-bottom: 1px solid var(--color-border-subtle);
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.08);
}

.nc-header__mobile-inner {
  padding-block: var(--space-4);
}

.nc-header__mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.nc-header__mobile-link {
  font-size: 0.98rem;
  font-weight: 500;
  padding: 0.6rem 0.75rem;
  border-radius: var(--radius-md);
}

.nc-header__mobile-link:hover,
.nc-header__mobile-link:focus-visible {
  background-color: var(--color-primary-soft);
  color: var(--color-primary);
}

.nc-header__mobile-link--primary {
  background: linear-gradient(135deg, var(--color-primary), var(--color-coral));
  color: #ffffff;
}

.nc-header__mobile-link--primary:hover,
.nc-header__mobile-link--primary:focus-visible {
  background: linear-gradient(135deg, var(--color-primary), #fb7185);
  color: #ffffff;
}

/* Responsive behavior */
@media (max-width: 900px) {
  .nc-header__menu-toggle {
    display: inline-flex;
  }

  .nc-header__logo {
    justify-self: flex-end;
  }

  .nc-header__mobile {
    display: block;
  }

  .nc-header__mobile[hidden] {
    display: none !important;
  }

  .nc-header--menu-open .nc-header__mobile {
    animation: nc-header-slide-down var(--transition-slow);
  }
}

@keyframes nc-header-slide-down {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

  .nc-header__brand-mark {
    width: 30px;
    height: 30px;
  }
}
