/* Header styles for Casino Canteen */

.cc-header {
  position: sticky;
  top: 0;
  z-index: 50;
  width: 100%;
  backdrop-filter: blur(18px);
  background: linear-gradient(to bottom, rgba(14, 15, 18, 0.96), rgba(14, 15, 18, 0.88));
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.cc-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: var(--space-3);
  padding-bottom: var(--space-3);
}

.cc-header__brand {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.cc-header__logo-link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
}

.cc-header__logo-mark {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 30% 20%, rgba(255, 255, 255, 0.26), transparent 55%),
    radial-gradient(circle at 70% 80%, rgba(200, 164, 90, 0.65), transparent 55%),
    #111218;
  box-shadow: 0 0 0 1px rgba(200, 164, 90, 0.35), 0 18px 35px rgba(0, 0, 0, 0.7);
}

.cc-header__logo-text {
  display: flex;
  flex-direction: column;
}

.cc-header__logo-title {
  font-family: var(--font-serif);
  font-size: var(--font-size-lg);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--color-heading);
}

.cc-header__logo-subtitle {
  font-size: var(--font-size-xs);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(245, 239, 230, 0.65);
}

/* Navigation */

.cc-header__nav {
  display: flex;
  align-items: center;
}

.cc-header__nav-list {
  display: flex;
  align-items: center;
  gap: var(--space-5);
  list-style: none;
  margin: 0;
  padding: 0;
}

.cc-header__nav-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  font-size: var(--font-size-sm);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(245, 239, 230, 0.76);
  padding: 0.35rem 0;
}

.cc-header__nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 1px;
  background: linear-gradient(90deg, var(--color-heading), var(--color-primary));
  transition: width var(--transition-base);
}

.cc-header__nav-link:hover::after,
.cc-header__nav-link:focus-visible::after {
  width: 100%;
}

.cc-header__nav-item--highlight .cc-header__nav-link {
  padding: 0.5rem 1.4rem;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(200, 164, 90, 0.6);
  background: radial-gradient(circle at top, rgba(200, 164, 90, 0.14), transparent 55%);
}

.cc-header__nav-link--cta::after {
  display: none;
}

.cc-header__nav-link--cta:hover,
.cc-header__nav-link--cta:focus-visible {
  background: radial-gradient(circle at top, rgba(200, 164, 90, 0.22), transparent 55%);
}

/* Mobile toggle */

.cc-header__toggle {
  display: none;
  position: relative;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid rgba(200, 164, 90, 0.45);
  background: rgba(14, 15, 18, 0.9);
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.cc-header__toggle-bar {
  width: 18px;
  height: 2px;
  border-radius: 999px;
  background: var(--color-heading);
  transition: transform var(--transition-base), opacity var(--transition-base), top var(--transition-base), bottom var(--transition-base);
  position: relative;
}

.cc-header__toggle-bar:nth-child(1) {
  top: -4px;
}

.cc-header__toggle-bar:nth-child(3) {
  bottom: -4px;
}

.cc-header__toggle[aria-expanded="true"] .cc-header__toggle-bar:nth-child(1) {
  transform: translateY(4px) rotate(45deg);
}

.cc-header__toggle[aria-expanded="true"] .cc-header__toggle-bar:nth-child(2) {
  opacity: 0;
}

.cc-header__toggle[aria-expanded="true"] .cc-header__toggle-bar:nth-child(3) {
  transform: translateY(-4px) rotate(-45deg);
}

/* Mobile layout */

@media (max-width: 900px) {
  .cc-header__toggle {
    display: inline-flex;
  }

  .cc-header__nav {
    position: fixed;
    inset: 0;
    inset-block-start: 64px;
    /* leave space for header */
    display: none;
    justify-content: center;
    background:
      radial-gradient(circle at top, rgba(200, 164, 90, 0.12), transparent 60%),
      rgba(5, 5, 8, 0.97);
    backdrop-filter: blur(22px);
  }

  .cc-header__nav--open {
    display: flex;
  }

  .cc-header__nav-list {
    flex-direction: column;
    gap: var(--space-4);
    padding-top: var(--space-8);
    padding-bottom: var(--space-8);
  }

  .cc-header__nav-item--highlight .cc-header__nav-link {
    width: 100%;
    justify-content: center;
  }
}

@media (max-width: 600px) {
  .cc-header__logo-title {
    font-size: var(--font-size-base);
  }

  .cc-header__logo-subtitle {
    display: none;
  }
}
