/* MakerCurrent — plain CSS (hand-authored, converted from Tailwind) */

/* ---------- named color tokens (used with alpha via color-mix) ---------- */
:root {
  --font-sans: 'Inter', ui-sans-serif, system-ui, sans-serif;
  --font-serif: ui-serif, Georgia, Cambria, "Times New Roman", Times, serif;
  --amber-400: oklch(82.8% .189 84.429);
  --slate-300: oklch(86.9% .022 252.894);
  --gray-500: oklch(55.1% .027 264.364);
  --gray-900: oklch(21% .034 264.665);
  --navy: #0a0f2c;
  --gold: #F5B420;
}

/* ---------- reset (Preflight-equivalent) ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; border: 0 solid; }
html { -webkit-text-size-adjust: 100%; line-height: 1.5; -webkit-tap-highlight-color: transparent; }
body { line-height: inherit; }
h1, h2, h3, h4, h5, h6 { font-size: inherit; font-weight: inherit; }
a { color: inherit; text-decoration: inherit; }
img, svg { display: block; vertical-align: middle; }
img { max-width: 100%; height: auto; }
ul { list-style: none; }
button, select { font: inherit; color: inherit; letter-spacing: inherit; background-color: transparent; border-radius: 0; }
button { text-transform: none; }
summary { display: list-item; }

/* ---------- page ---------- */
.page {
  font-family: var(--font-sans);
  background-color: #fff;
}

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
  width: 100%;
  background-color: var(--navy);
  background-image:
    radial-gradient(1.5px 1.5px at 20px 30px, rgba(251,191,36,0.35), transparent),
    radial-gradient(1px 1px at 90px 80px, rgba(255,255,255,0.25), transparent),
    radial-gradient(1.5px 1.5px at 150px 20px, rgba(251,191,36,0.3), transparent),
    radial-gradient(1px 1px at 200px 100px, rgba(255,255,255,0.2), transparent);
  background-size: 220px 220px;
  border-bottom: 1px solid color-mix(in oklab, #fff 10%, transparent);
  box-shadow: 0 10px 15px -3px rgba(0,0,0,0.4), 0 4px 6px -4px rgba(0,0,0,0.4);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-top: 20px;
  padding-bottom: 20px;
}

.logo { flex-shrink: 0; display: flex; align-items: center; }
.logo-img {
  height: 56px;
  width: auto;
  filter: brightness(110%) saturate(150%) drop-shadow(0 0 18px rgba(251,191,36,0.65));
}

/* ----- desktop menu ----- */
.nav-links { display: none; }
@media (min-width: 64rem) {
  .nav-links { display: flex; align-items: center; gap: 8px; }
}

.dropdown { position: relative; }

.dropdown-summary {
  display: flex;
  align-items: center;
  gap: 6px;
  list-style: none;
  cursor: pointer;
  user-select: none;
  border-radius: 6px;
  padding: 10px 16px;
  font-size: 13px;
  font-weight: 500;
  color: color-mix(in oklab, #fff 70%, transparent);
  transition: color .15s cubic-bezier(.4,0,.2,1);
}
.dropdown-summary::-webkit-details-marker { display: none; }

.chevron {
  height: 12px;
  width: 12px;
  color: color-mix(in oklab, #fff 40%, transparent);
  transition: transform .2s cubic-bezier(.4,0,.2,1), rotate .2s cubic-bezier(.4,0,.2,1);
}
.dropdown[open] > .dropdown-summary .chevron { rotate: 180deg; }

.dropdown-menu {
  position: absolute;
  left: 0;
  top: 100%;
  z-index: 50;
  margin-top: 12px;
  border-radius: 12px;
  border: 1px solid color-mix(in oklab, #fff 10%, transparent);
  background-color: var(--navy);
  padding: 24px;
  box-shadow: 0 25px 50px -12px rgba(0,0,0,0.6);
  display: grid;
  gap: 24px;
}
.dropdown-menu--w560 { width: 560px; }
.dropdown-menu--w480 { width: 480px; }
.dropdown-menu--w640 { width: 640px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.menu-heading {
  margin-bottom: 12px;
  font-family: var(--font-serif);
  font-size: 0.75rem;
  line-height: calc(1 / .75);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .025em;
  color: color-mix(in oklab, #fff 40%, transparent);
}

.menu-links {
  font-size: 0.875rem;
  line-height: calc(1.25 / .875);
  color: color-mix(in oklab, #fff 70%, transparent);
}
.menu-links > li:not(:last-child) { margin-bottom: 8px; }

.menu-link { transition: color .15s cubic-bezier(.4,0,.2,1); }

.nav-link {
  border-radius: 6px;
  padding: 10px 16px;
  font-size: 13px;
  font-weight: 500;
  color: color-mix(in oklab, #fff 70%, transparent);
  transition: color .15s cubic-bezier(.4,0,.2,1);
}

/* ----- right side actions ----- */
.nav-actions { display: none; }
@media (min-width: 64rem) {
  .nav-actions { display: flex; align-items: center; gap: 16px; }
}

.search-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 36px;
  width: 36px;
  border-radius: 9999px;
  border: 1px solid color-mix(in oklab, #fff 15%, transparent);
  color: color-mix(in oklab, #fff 60%, transparent);
  transition: color .15s cubic-bezier(.4,0,.2,1), border-color .15s cubic-bezier(.4,0,.2,1);
}
.search-btn:focus { outline: none; }
.icon { height: 16px; width: 16px; }

.btn-surprise {
  flex-shrink: 0;
  border-radius: 9999px;
  border: 2px solid var(--amber-400);
  padding: 8px 16px;
  font-size: 0.875rem;
  line-height: calc(1.25 / .875);
  font-weight: 700;
  color: var(--amber-400);
  transition: color .15s cubic-bezier(.4,0,.2,1), background-color .15s cubic-bezier(.4,0,.2,1);
}
.btn-surprise:focus { outline: none; }

/* ----- mobile nav ----- */
.mobile-nav { position: relative; }
@media (min-width: 64rem) {
  .mobile-nav { display: none; }
}
.mobile-toggle {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px;
  color: color-mix(in oklab, #fff 70%, transparent);
  cursor: pointer;
}
.mobile-toggle::-webkit-details-marker { display: none; }
.hamburger { height: 24px; width: 24px; }

.mobile-panel {
  position: absolute;
  right: 0;
  top: 100%;
  z-index: 50;
  margin-top: 8px;
  width: 288px;
  max-height: 70vh;
  overflow-y: auto;
  border-radius: 12px;
  border: 1px solid color-mix(in oklab, #fff 10%, transparent);
  background-color: var(--navy);
  padding: 16px;
  box-shadow: 0 25px 50px -12px rgba(0,0,0,0.6);
}

.mobile-search {
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
  border-radius: 9999px;
  border: 1px solid color-mix(in oklab, #fff 15%, transparent);
  padding: 8px 16px;
  font-size: 0.875rem;
  line-height: calc(1.25 / .875);
  color: color-mix(in oklab, #fff 60%, transparent);
  width: 100%;
  transition: color .15s cubic-bezier(.4,0,.2,1), border-color .15s cubic-bezier(.4,0,.2,1);
}

.mobile-links { display: flex; flex-direction: column; }
.mobile-links > .mobile-link:not(:last-child) {
  border-bottom: 1px solid color-mix(in oklab, #fff 10%, transparent);
}
.mobile-link {
  padding-top: 10px;
  padding-bottom: 10px;
  font-size: 13px;
  font-weight: 500;
  color: color-mix(in oklab, #fff 70%, transparent);
  transition: color .15s cubic-bezier(.4,0,.2,1);
}
.mobile-link--active { color: color-mix(in oklab, #fff 90%, transparent); }

.btn-surprise--block {
  margin-top: 12px;
  width: 100%;
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  overflow: hidden;
  background-color: var(--navy);
  background-image:
    radial-gradient(1.5px 1.5px at 20px 30px, rgba(251,191,36,0.45), transparent),
    radial-gradient(1px 1px at 90px 80px, rgba(255,255,255,0.3), transparent),
    radial-gradient(1.5px 1.5px at 150px 20px, rgba(251,191,36,0.4), transparent),
    radial-gradient(1px 1px at 200px 100px, rgba(255,255,255,0.25), transparent),
    radial-gradient(1px 1px at 260px 60px, rgba(251,191,36,0.3), transparent);
  background-size: 220px 220px;
}

.container {
  margin-inline: auto;
  max-width: 80rem;
  padding-inline: 24px;
}
@media (min-width: 64rem) {
  .container { padding-inline: 32px; }
}

.hero-inner {
  position: relative;
  margin-inline: auto;
  display: flex;
  min-height: 236px;
  max-width: 900px;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  text-align: left;
  padding-top: 24px;
  padding-bottom: 24px;
}

.hero-glow {
  pointer-events: none;
  position: absolute;
  left: 40px;
  top: 50%;
  height: 256px;
  width: 256px;
  transform: translateY(-50%);
  border-radius: 9999px;
  background-color: color-mix(in oklab, var(--amber-400) 25%, transparent);
  filter: blur(64px);
}

.hero-title {
  position: relative;
  font-family: var(--font-serif);
  font-size: 2.25rem;
  line-height: calc(2.5 / 2.25);
  font-weight: 800;
  color: #fdf6e3;
  filter: drop-shadow(0 0 28px rgba(251,191,36,0.6));
}
@media (min-width: 40rem) {
  .hero-title { font-size: 3rem; line-height: 1; }
}

.hero-subtitle {
  position: relative;
  margin-top: 12px;
  max-width: 36rem;
  font-size: 0.875rem;
  line-height: calc(1.25 / .875);
  color: color-mix(in oklab, var(--slate-300) 85%, transparent);
}
@media (min-width: 40rem) {
  .hero-subtitle { font-size: 1rem; line-height: 1.5; }
}

/* ============================================================
   GENERATOR
   ============================================================ */
.generator {
  padding-bottom: 64px;
  background-color: var(--navy);
}

.generator-container {
  margin-inline: auto;
  max-width: 980px;
  padding-inline: 24px;
}
@media (min-width: 64rem) {
  .generator-container { padding-inline: 32px; }
}

.generator-panel {
  position: relative;
  overflow: hidden;
  border-radius: 32px;
  background-color: var(--navy);
  padding: 32px 16px;
}
@media (min-width: 40rem) {
  .generator-panel {
    border-radius: 48px;
    padding: 0 40px 48px;
  }
}

.generator-inner { position: relative; }

.name-card {
  margin-right: auto;
  margin-left: -4px;
  max-width: 42rem;
  overflow: hidden;
  border-radius: 28px;
  background-image: linear-gradient(to bottom right in oklab, #2a1a6e, #1B2555, #0d1338);
  box-shadow: 0 10px 40px rgba(245,180,32,0.15);
}
@media (min-width: 40rem) {
  .name-card { margin-left: -12px; }
}

/* ----- control strip ----- */
.name-controls {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 12px;
  padding: 12px;
}
@media (min-width: 40rem) {
  .name-controls {
    flex-direction: row;
    align-items: center;
    gap: 8px;
  }
}

.select-field { position: relative; flex: 1; }

.select {
  width: 100%;
  appearance: none;
  border-radius: 9999px;
  background-color: #1B2850;
  padding: 12px 20px;
  font-size: 0.875rem;
  line-height: calc(1.25 / .875);
  font-weight: 700;
  color: #FFD469;
}
.select:focus { outline: none; }

.select-chevron {
  pointer-events: none;
  position: absolute;
  right: 16px;
  top: 50%;
  height: 12px;
  width: 12px;
  transform: translateY(-50%);
  color: var(--gold);
}

.btn-generate {
  display: flex;
  height: 50px;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 9999px;
  background-color: var(--gold);
  padding-left: 28px;
  padding-right: 28px;
  font-size: 0.875rem;
  line-height: calc(1.25 / .875);
  font-weight: 800;
  color: #0A1230;
  box-shadow: 0 6px 20px rgba(245,180,32,0.45);
  transition: transform .15s cubic-bezier(.4,0,.2,1);
}
.btn-generate__star { transition: transform .15s cubic-bezier(.4,0,.2,1), rotate .15s cubic-bezier(.4,0,.2,1); }

/* ----- results list ----- */
.name-list {
  padding-left: 8px;
  padding-right: 8px;
  padding-bottom: 8px;
}
@media (min-width: 40rem) {
  .name-list {
    padding-left: 20px;
    padding-right: 20px;
    padding-bottom: 16px;
  }
}
.name-list > .name-row:not(:last-child) {
  border-bottom: 1px solid color-mix(in oklab, #fff 10%, transparent);
}

.name-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-radius: 12px;
  padding: 16px 12px;
  transition: background-color .15s cubic-bezier(.4,0,.2,1);
}

.name-row__info { display: flex; align-items: center; gap: 12px; }
.name-row__star { font-size: 0.875rem; line-height: calc(1.25 / .875); color: var(--gold); }
.name-row__name {
  font-size: 1rem;
  line-height: 1.5;
  font-weight: 600;
  color: #fff;
}

.copy-btn {
  border-radius: 9999px;
  padding: 8px;
  color: oklab(80.9476% .0248111 .15883 / .7);
  transition: color .15s cubic-bezier(.4,0,.2,1), background-color .15s cubic-bezier(.4,0,.2,1);
}
.icon-copy { height: 16px; width: 16px; }

.generator-actions {
  margin-right: auto;
  margin-top: 32px;
  display: flex;
  max-width: 42rem;
  justify-content: center;
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background-color: var(--gray-900);
  padding-top: 48px;
  padding-bottom: 48px;
}
.footer-container { text-align: center; }
.copyright {
  font-size: 0.875rem;
  line-height: calc(1.25 / .875);
  color: var(--gray-500);
}

/* ============================================================
   HOVER / INTERACTIVE STATES
   ============================================================ */
@media (hover: hover) {
  .dropdown-summary:hover { color: #fff; }
  .menu-link:hover { color: #fff; }
  .nav-link:hover { color: #fff; }
  .search-btn:hover { color: #fff; border-color: color-mix(in oklab, #fff 30%, transparent); }
  .btn-surprise:hover { background-color: var(--amber-400); color: var(--navy); }
  .mobile-search:hover { color: #fff; border-color: color-mix(in oklab, #fff 30%, transparent); }
  .mobile-link:hover { color: #fff; }
  .btn-generate:hover { transform: scale(1.03); }
  .btn-generate:hover .btn-generate__star { rotate: 12deg; }
  .name-row:hover { background-color: oklab(80.9476% .0248111 .15883 / .1); }
  .copy-btn:hover { background-color: oklab(80.9476% .0248111 .15883 / .2); color: var(--gold); }
}
