/* ==========================================================================
   ELT Buzz — Prompt Generator
   Shared stylesheet for all prompt generators (Tell Us About, This or That,
   Name 3, Stand Up If, What If, Finish It Off, Questions, Writing)
   ========================================================================== */

:root {
  --accent: #ff8700;
  --accent-dim: rgba(255, 135, 0, 0.16);
  --bg-1: #14171f;
  --bg-2: #1b1f29;
  --bg-3: #20141a;
  --ink: #f5f5f2;
  --ink-dim: rgba(245, 245, 242, 0.62);
  --ink-faint: rgba(245, 245, 242, 0.38);
  --panel: rgba(255, 255, 255, 0.04);
  --panel-border: rgba(255, 255, 255, 0.10);
  --font-display: "Fredoka", "Segoe UI", system-ui, sans-serif;
  --font-body: "Inter", "Segoe UI", system-ui, sans-serif;
}

* {
  box-sizing: border-box;
}

html, body {
  height: 100%;
  width: 100%;
  margin: 0;
}

body {
  font-family: var(--font-body);
  color: var(--ink);
  background-color: var(--bg-1);
  /* Fast-loading background: pure CSS gradients + a faint ruled-paper
     texture. No image request, so it paints instantly on any connection. */
  background-image:
    radial-gradient(circle at 18% 20%, var(--accent-dim), transparent 42%),
    radial-gradient(circle at 84% 78%, rgba(255, 135, 0, 0.09), transparent 45%),
    repeating-linear-gradient(
      transparent 0,
      transparent 27px,
      rgba(255, 255, 255, 0.025) 28px
    ),
    linear-gradient(160deg, var(--bg-1) 0%, var(--bg-2) 55%, var(--bg-3) 100%);
  background-attachment: fixed;
  min-height: 100%;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
}

/* ---------------------------- Navigation --------------------------------- */

.site-nav {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1em;
  padding: 0.7em 1.5em;
  background: rgba(10, 11, 15, 0.55);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--panel-border);
}

.site-nav .brand img {
  height: 32px;
  width: auto;
  display: block;
  opacity: 0.95;
}

/* Hamburger toggle button */

.nav-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 38px;
  height: 38px;
  padding: 0;
  border: 1px solid var(--panel-border);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.03);
  cursor: pointer;
  align-items: center;
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.site-nav.open .nav-toggle span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.site-nav.open .nav-toggle span:nth-child(2) {
  opacity: 0;
}

.site-nav.open .nav-toggle span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.nav-toggle:hover {
  border-color: var(--accent);
}

.nav-toggle:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* Dropdown menu — hidden until .site-nav.open */

.site-nav ul {
  list-style: none;
  display: none;
  flex-direction: column;
  gap: 0.15em;
  margin: 0;
  padding: 0.5em;
  position: absolute;
  top: calc(100% + 0.5em);
  right: 1.5em;
  min-width: 200px;
  max-width: calc(100vw - 3em);
  background: rgba(12, 13, 18, 0.96);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--panel-border);
  border-radius: 12px;
  box-shadow: 0 16px 44px rgba(0, 0, 0, 0.45);
}

.site-nav.open ul {
  display: flex;
}

.site-nav ul li {
  width: 100%;
}

.site-nav a {
  display: block;
  color: var(--ink-dim);
  text-decoration: none;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  padding: 0.65em 0.8em;
  border-radius: 8px;
  border-bottom: none;
  transition: color 0.15s ease, background-color 0.15s ease;
  white-space: nowrap;
}

.site-nav a:hover,
.site-nav a:focus-visible,
.site-nav a.active {
  color: var(--ink);
  background: var(--accent-dim);
}

/* --------------------------------- Stage ---------------------------------- */

.container {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding: 1.4em 1.5em 1.5em;
}

#content {
  width: 100%;
  max-width: 52em;
  text-align: center;
}

.eyebrow {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.6em;
  opacity: 0.9;
}

#quote {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(2.6rem, 7vw, 5rem);
  line-height: 1.2;
  color: var(--ink);
  margin: 0.3em 0 0;
  text-wrap: balance;
  min-height: 2.9em;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* -------------------------------- Actions --------------------------------- */

#b-nav {
  display: flex;
  justify-content: center;
  margin-top: 1em;
}

#b-nav ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

#gen {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  color: #14171f;
  background-color: var(--accent);
  border: none;
  border-radius: 999px;
  padding: 1.05em 3.4em;
  cursor: pointer;
  box-shadow: 0 8px 30px rgba(255, 135, 0, 0.30);
  transition: transform 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
}

#gen:hover {
  background-color: #ffa940;
  transform: translateY(-2px);
  box-shadow: 0 10px 36px rgba(255, 135, 0, 0.42);
}

#gen:active {
  transform: translateY(0);
}

#gen:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 3px;
}

/* --------------------------------- Footer ---------------------------------- */

#footer {
  width: 100%;
  padding: 0.9em 0;
  text-align: center;
  font-family: var(--font-body);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

/* -------------------------------- Responsive -------------------------------- */

@media screen and (max-width: 640px) {
  #gen {
    padding: 0.9em 2.6em;
    font-size: 1.15rem;
  }
}