/* ChickToy Header Styles */

.ct-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: linear-gradient(90deg, #ffe764, #ffb3c1);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

.ct-header__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0.5rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

/* Brand */

.ct-header__brand {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.ct-header__logo-link {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
}

.ct-header__site-name {
  font-family: "Baloo 2", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 1.35rem;
  font-weight: 700;
  color: #3c2a4d;
  letter-spacing: 0.02em;
}

.ct-header__logo-mark {
  position: relative;
  width: 2.1rem;
  height: 2.1rem;
  border-radius: 50%;
  background: #fff7c2;
  border: 2px solid #ffcf33;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.ct-header__logo-egg {
  position: absolute;
  width: 1.25rem;
  height: 1.55rem;
  border-radius: 50% 50% 45% 45%;
  background: #ffffff;
  border: 1px solid #ffd85a;
  bottom: 0.15rem;
}

.ct-header__logo-chick {
  position: absolute;
  width: 0.7rem;
  height: 0.7rem;
  border-radius: 45% 45% 40% 40%;
  background: #ffd85a;
  top: 0.3rem;
  left: 0.55rem;
  box-shadow: 0 0 0 1px rgba(255, 185, 34, 0.2);
}

/* Navigation */

.ct-header__nav {
  flex: 1 1 auto;
}

.ct-header__nav-list {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin: 0;
  padding: 0;
}

.ct-header__nav-link {
  display: inline-flex;
  align-items: center;
  padding: 0.35rem 0.6rem;
  border-radius: 999px;
  text-decoration: none;
  font-family: "Nunito", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  color: #4b2b4f;
  transition: background-color 0.18s ease, color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}

.ct-header__nav-link:hover,
.ct-header__nav-link:focus-visible {
  background-color: rgba(255, 255, 255, 0.9);
  color: #2e1740;
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.7);
  outline: none;
}

.ct-header__nav-link:active {
  transform: translateY(1px);
}

.ct-header__nav-item--cta .ct-header__nav-link--cta {
  background-color: #ff7dab;
  color: #ffffff;
  box-shadow: 0 2px 4px rgba(255, 69, 133, 0.35);
}

.ct-header__nav-item--cta .ct-header__nav-link--cta:hover,
.ct-header__nav-item--cta .ct-header__nav-link--cta:focus-visible {
  background-color: #ff5d96;
  box-shadow: 0 0 0 2px #ffe0ec;
}

/* Actions (icons) */

.ct-header__actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.ct-header__icon-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.1rem;
  height: 2.1rem;
  border-radius: 999px;
  background-color: rgba(255, 255, 255, 0.9);
  color: #4b2b4f;
  text-decoration: none;
  transition: background-color 0.18s ease, color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}

.ct-header__icon-link i {
  font-size: 1rem;
}

.ct-header__icon-link:hover,
.ct-header__icon-link:focus-visible {
  background-color: #ffffff;
  color: #2e1740;
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.9);
  outline: none;
}

.ct-header__icon-link:active {
  transform: translateY(1px);
}

/* Mobile toggle */

.ct-header__toggle {
  display: none;
  position: relative;
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 999px;
  border: none;
  background-color: rgba(255, 255, 255, 0.95);
  padding: 0;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.ct-header__toggle:focus-visible {
  outline: 2px solid #2e1740;
  outline-offset: 2px;
}

.ct-header__toggle-bar {
  width: 60%;
  height: 2px;
  border-radius: 999px;
  background-color: #3c2a4d;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.ct-header__toggle-bar + .ct-header__toggle-bar {
  margin-top: 4px;
}

/* Open state (class added via JS) */

.ct-header--nav-open .ct-header__toggle-bar:nth-child(1) {
  transform: translateY(14px) rotate(45deg);
}

.ct-header--nav-open .ct-header__toggle-bar:nth-child(2) {
  opacity: 0;
}

.ct-header--nav-open .ct-header__toggle-bar:nth-child(3) {
  transform: translateY(-14px) rotate(-45deg);
}

/* Responsive */

@media (max-width: 768px) {
  .ct-header__inner {
    padding-inline: 0.75rem;
  }

  .ct-header__toggle {
    display: inline-flex;
    flex-direction: column;
  }

  .ct-header__nav {
    position: absolute;
    inset-inline: 0;
    top: 100%;
    background: linear-gradient(180deg, #ffe764, #ffb3c1);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.12);
    transform-origin: top;
  }

  .ct-header__nav-list {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0.5rem 0.75rem 0.75rem;
  }

  .ct-header__nav-item {
    width: 100%;
  }

  .ct-header__nav-link {
    width: 100%;
    justify-content: flex-start;
    padding: 0.6rem 0.75rem;
  }

  /* Default: nav visible for no-JS; hidden when .ct-header--js-ready is present and not open */
  .ct-header.ct-header--js-ready:not(.ct-header--nav-open) .ct-header__nav {
    clip-path: inset(0 0 100% 0);
    opacity: 0;
    pointer-events: none;
    transition: clip-path 0.22s ease, opacity 0.22s ease;
  }

  .ct-header.ct-header--js-ready.ct-header--nav-open .ct-header__nav {
    clip-path: inset(0 0 0 0);
    opacity: 1;
    pointer-events: auto;
  }

  .ct-header__actions {
    gap: 0.25rem;
  }
}

@media (max-width: 480px) {
  .ct-header__site-name {
    font-size: 1.15rem;
  }

  .ct-header__icon-link {
    width: 2rem;
    height: 2rem;
  }
}
