/* Header styles for Urban Flower Boutique */

.ufb-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background-color: #111014;
  color: #f7f5f9;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(18px);
}

.ufb-header__inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0.9rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

/* Brand */
.ufb-header__brand {
  display: flex;
  align-items: center;
}

.ufb-header__logo {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  color: inherit;
}

.ufb-header__logo-mark {
  width: 32px;
  height: 32px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.55);
  background: radial-gradient(circle at 30% 20%, #ffe2f0, #e3ffd7 40%, #1f1b24 80%);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.16), 0 10px 25px rgba(0, 0, 0, 0.4);
  position: relative;
}

.ufb-header__logo-mark::after {
  content: "";
  position: absolute;
  inset: 18%;
  border-radius: inherit;
  border: 1px solid rgba(255, 255, 255, 0.6);
  opacity: 0.8;
}

.ufb-header__logo-text {
  font-family: "Playfair Display", "Times New Roman", serif;
  font-size: 1.1rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  font-weight: 600;
  white-space: nowrap;
}

/* Nav base */
.ufb-header__nav {
  display: flex;
}

.ufb-header__nav-list {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.ufb-header__nav-link {
  position: relative;
  font-family: "Nunito Sans", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 0.97rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-decoration: none;
  color: rgba(248, 245, 252, 0.88);
  padding: 0.35rem 0;
}

.ufb-header__nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, #f7a8d9, #b5f7b1);
  transition: width 0.2s ease-out;
}

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

.ufb-header__nav-link:focus-visible {
  outline: 2px solid #f2badb;
  outline-offset: 3px;
  border-radius: 2px;
}

/* CTA link */
.ufb-header__nav-item--cta {
  margin-left: 0.5rem;
}

.ufb-header__nav-link--cta {
  padding: 0.5rem 1rem;
  border-radius: 999px;
  border: 1px solid rgba(245, 207, 232, 0.7);
  background: radial-gradient(circle at 0 0, rgba(244, 214, 239, 0.3), transparent 55%),
    radial-gradient(circle at 100% 100%, rgba(199, 244, 207, 0.25), transparent 55%);
}

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

.ufb-header__nav-link--cta:hover,
.ufb-header__nav-link--cta:focus-visible {
  background: radial-gradient(circle at 0 0, rgba(244, 214, 239, 0.5), transparent 60%),
    radial-gradient(circle at 100% 100%, rgba(199, 244, 207, 0.4), transparent 60%);
}

/* Mobile toggle */
.ufb-header__toggle {
  display: none;
  position: relative;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.55);
  background: radial-gradient(circle at 30% 20%, rgba(255, 226, 240, 0.24), rgba(31, 27, 36, 0.95));
  padding: 0;
  justify-content: center;
  align-items: center;
  cursor: pointer;
}

.ufb-header__toggle:focus-visible {
  outline: 2px solid #f2badb;
  outline-offset: 3px;
}

.ufb-header__toggle-bar {
  position: absolute;
  width: 18px;
  height: 2px;
  background-color: #f7f5f9;
  border-radius: 999px;
  transition: transform 0.22s ease, opacity 0.16s ease, top 0.22s ease, bottom 0.22s ease;
}

.ufb-header__toggle-bar:nth-child(1) {
  top: 13px;
}

.ufb-header__toggle-bar:nth-child(2) {
  top: 19px;
}

.ufb-header__toggle-bar:nth-child(3) {
  bottom: 13px;
}

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

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

.ufb-header__toggle[aria-expanded="true"] .ufb-header__toggle-bar:nth-child(3) {
  bottom: auto;
  top: 19px;
  transform: rotate(-45deg);
}

/* Responsive layout */
@media (max-width: 768px) {
  .ufb-header__inner {
    padding-inline: 1rem;
  }

  .ufb-header__toggle {
    display: inline-flex;
  }

  .ufb-header__nav {
    position: absolute;
    inset-inline: 0;
    top: 100%;
    background: rgba(12, 10, 16, 0.98);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    transform-origin: top;
    transform: scaleY(1);
    transition: transform 0.2s ease-out, opacity 0.2s ease-out;
  }

  .ufb-header__nav-list {
    flex-direction: column;
    align-items: flex-start;
    padding: 0.75rem 1.25rem 1rem;
    gap: 0.5rem;
  }

  .ufb-header__nav-link {
    display: inline-block;
    padding-block: 0.35rem;
  }

  .ufb-header__nav--collapsed {
    transform: scaleY(0);
    opacity: 0;
    pointer-events: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ufb-header,
  .ufb-header__nav,
  .ufb-header__toggle-bar,
  .ufb-header__nav-link::after {
    transition: none !important;
  }
}
