/* =============================================
   NameGen4Me — Shared Stylesheet
   Colour identity: Midnight Navy + Gold
   ============================================= */

:root {
  --primary:       #0d1b4b;
  --primary-mid:   #162266;
  --primary-light: #1e2f80;
  --primary-pale:  #e8eaf6;
  --accent:        #ffd700;
  --accent-dark:   #f5a623;
  --accent-light:  #fff8e1;
  --accent2:       #7c4dff;
  --bg:            #f8f9ff;
  --white:         #ffffff;
  --card:          #ffffff;
  --text:          #0a0e2e;
  --text-muted:    #4a5580;
  --border:        #c5cae9;
  --shadow:        0 2px 12px rgba(13,27,75,0.10);
  --shadow-lg:     0 6px 30px rgba(13,27,75,0.18);
  --radius:        12px;
  --radius-sm:     8px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', 'Segoe UI', sans-serif;
  background: var(--bg);
  color: var(--text);
  font-size: 16px;
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

h1, h2, h3, h4 { font-family: 'Nunito', 'Segoe UI', sans-serif; font-weight: 800; line-height: 1.2; }
h1 { font-size: clamp(1.8rem, 4vw, 2.8rem); }
h2 { font-size: clamp(1.3rem, 3vw, 1.9rem); }
h3 { font-size: 1.15rem; }
p  { margin-bottom: 0.75rem; }
a  { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ---- Header ---- */
header {
  background: linear-gradient(135deg, #060d26 0%, #0d1b4b 50%, #162266 100%);
  color: white;
  padding: 0 1rem;
  box-shadow: 0 2px 12px rgba(0,0,0,0.3);
  position: relative;
  overflow: hidden;
}
header::before {
  content: '✨';
  position: absolute;
  font-size: 80px;
  opacity: 0.04;
  top: -10px;
  right: 20px;
  pointer-events: none;
}
.header-inner {
  max-width: 1200px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  padding: 1rem 0; gap: 1rem; flex-wrap: wrap;
}
.logo { display: flex; align-items: center; gap: 0.6rem; text-decoration: none; }
.logo-icon { font-size: 2rem; }
.logo-text { display: flex; flex-direction: column; }
.logo-text strong { font-family: 'Nunito',sans-serif; font-size: 1.4rem; font-weight: 900; color: var(--accent); letter-spacing: -0.5px; }
.logo-text span   { font-size: 0.75rem; color: #90a4d4; margin-top: -2px; }
nav.main-nav { display: flex; gap: 0.4rem; flex-wrap: wrap; }
nav.main-nav a { color: #90a4d4; font-size: 0.82rem; font-weight: 600; padding: 0.3rem 0.6rem; border-radius: 6px; transition: background 0.2s,color 0.2s; text-decoration: none; }
nav.main-nav a:hover { background: rgba(255,255,255,0.12); color: var(--accent); }
nav.main-nav a.active { background: rgba(255,215,0,0.15); color: var(--accent); }

/* Search bar in header */
.header-search {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 50px;
  padding: 0.4rem 1rem;
  display: flex; align-items: center; gap: 0.5rem;
  max-width: 280px; flex: 1;
}
.header-search input {
  background: none; border: none; outline: none; color: white;
  font-size: 0.85rem; width: 100%;
}
.header-search input::placeholder { color: rgba(255,255,255,0.4); }
.header-search span { color: rgba(255,255,255,0.4); font-size: 0.9rem; }

/* ---- Ad Leaderboard ---- */
.ad-leaderboard { background: var(--primary-pale); border-bottom: 1px solid var(--border); text-align: center; padding: 0.5rem 1rem; }
.ad-placeholder { display: inline-flex; align-items: center; justify-content: center; background: #ede7f6; border: 1px dashed var(--border); border-radius: var(--radius-sm); color: var(--text-muted); font-size: 0.8rem; }

/* ---- Hero ---- */
.hero {
  background: linear-gradient(135deg, #060d26 0%, #0d1b4b 60%, #1e2f80 100%);
  color: white;
  text-align: center;
  padding: 3rem 1rem 2.5rem;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at 50% 0%, rgba(255,215,0,0.12) 0%, transparent 60%);
  pointer-events: none;
}
.hero-emoji { font-size: 3.5rem; margin-bottom: 0.5rem; display: block; }
.hero h1 { color: var(--accent); margin-bottom: 0.5rem; text-shadow: 0 2px 20px rgba(255,215,0,0.3); }
.hero p { color: #90a4d4; font-size: 1.05rem; max-width: 600px; margin: 0 auto 1rem; }
.hero-badges { display: flex; gap: 0.5rem; justify-content: center; flex-wrap: wrap; }
.badge { background: rgba(255,255,255,0.08); border: 1px solid rgba(255,215,0,0.3); border-radius: 50px; padding: 0.3rem 0.9rem; font-size: 0.8rem; font-weight: 600; color: var(--accent); }

/* ---- Main ---- */
main { flex: 1; max-width: 1200px; margin: 0 auto; padding: 2rem 1rem; width: 100%; }

/* ---- Cards ---- */
.card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.5rem; box-shadow: var(--shadow); margin-bottom: 1.5rem; }
.card-title { font-family: 'Nunito',sans-serif; font-weight: 800; font-size: 1.1rem; color: var(--primary); margin-bottom: 1rem; display: flex; align-items: center; gap: 0.4rem; }

/* ---- Generator grid (homepage) ---- */
.gen-category { margin-bottom: 2.5rem; }
.gen-category h2 { color: var(--primary); font-size: 1.05rem; margin-bottom: 0.8rem; padding-bottom: 0.4rem; border-bottom: 2px solid var(--border); display: flex; align-items: center; gap: 0.4rem; }
.gen-cards-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 0.8rem; }
.gen-card-link {
  background: white; border: 1px solid var(--border); border-radius: var(--radius-sm);
  padding: 1rem 0.8rem; text-align: center; text-decoration: none; color: var(--text);
  transition: box-shadow 0.2s, transform 0.15s, border-color 0.2s;
  display: flex; flex-direction: column; align-items: center; gap: 0.25rem;
  position: relative; overflow: hidden;
}
.gen-card-link::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  opacity: 0; transition: opacity 0.2s;
}
.gen-card-link:hover { box-shadow: var(--shadow-lg); transform: translateY(-3px); border-color: var(--primary-light); text-decoration: none; }
.gen-card-link:hover::before { opacity: 1; }
.gen-card-link .gc-emoji { font-size: 2.2rem; }
.gen-card-link .gc-name { font-size: 0.82rem; font-weight: 700; color: var(--text); line-height: 1.3; }
.gen-card-link .gc-desc { font-size: 0.72rem; color: var(--text-muted); }
.gen-card-link .gc-popular { position: absolute; top: 6px; right: 6px; background: var(--accent); color: var(--primary); font-size: 0.6rem; font-weight: 900; padding: 1px 5px; border-radius: 50px; }

/* ---- Generator page layout ---- */
.gen-page-grid {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 1.5rem;
  align-items: start;
}
@media(max-width: 800px) { .gen-page-grid { grid-template-columns: 1fr; } }

/* ---- Result display ---- */
.result-display {
  background: linear-gradient(135deg, #060d26 0%, #0d1b4b 100%);
  border-radius: var(--radius);
  padding: 2rem 1.5rem;
  text-align: center;
  margin: 1rem 0;
  min-height: 140px;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 0.4rem;
  box-shadow: inset 0 2px 20px rgba(0,0,0,0.2), 0 4px 20px rgba(13,27,75,0.2);
  position: relative; overflow: hidden;
}
.result-display::before {
  content: '✨';
  position: absolute; font-size: 120px; opacity: 0.04;
  top: -20px; right: -20px; pointer-events: none;
}
.result-label { font-size: 0.78rem; color: #90a4d4; font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; }
.result-name { font-family: 'Nunito',sans-serif; font-size: clamp(1.6rem, 4vw, 2.4rem); font-weight: 900; color: var(--accent); line-height: 1.2; word-break: break-word; text-shadow: 0 2px 20px rgba(255,215,0,0.3); }
.result-subtitle { font-size: 0.9rem; color: #90a4d4; font-style: italic; }
.result-extra { font-size: 0.8rem; color: #607d9f; background: rgba(255,255,255,0.05); border-radius: 50px; padding: 0.2rem 0.8rem; margin-top: 0.3rem; }

@keyframes nameReveal { 0%{opacity:0;transform:translateY(8px)} 100%{opacity:1;transform:translateY(0)} }
.name-animate { animation: nameReveal 0.4s ease-out; }

/* ---- Options (gender/style selectors) ---- */
.gen-options { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 1rem; justify-content: center; }
.opt-chip { background: var(--primary-pale); border: 2px solid var(--border); border-radius: 50px; padding: 0.35rem 1rem; font-size: 0.82rem; font-weight: 700; cursor: pointer; color: var(--text-muted); transition: 0.15s; }
.opt-chip:hover { border-color: var(--primary-light); color: var(--primary); }
.opt-chip.active { background: var(--primary); border-color: var(--primary); color: white; }

/* ---- Buttons ---- */
.btn { display: inline-flex; align-items: center; gap: 0.4rem; padding: 0.7rem 1.6rem; border-radius: var(--radius-sm); font-weight: 700; font-size: 1rem; font-family: 'Nunito',sans-serif; cursor: pointer; border: none; transition: transform 0.15s, box-shadow 0.15s, background 0.2s; text-decoration: none; }
.btn:hover { transform: translateY(-2px); box-shadow: 0 4px 16px rgba(0,0,0,0.15); }
.btn-primary { background: var(--primary); color: white; }
.btn-primary:hover { background: var(--primary-mid); }
.btn-accent  { background: var(--accent); color: var(--primary); font-weight: 900; }
.btn-accent:hover  { background: var(--accent-dark); }
.btn-outline { background: white; border: 2px solid var(--primary); color: var(--primary); }
.btn-outline:hover { background: var(--primary-pale); }
.btn-sm { padding: 0.4rem 0.9rem; font-size: 0.85rem; }
.btn-lg { padding: 1rem 2.5rem; font-size: 1.15rem; border-radius: 50px; }

/* ---- History list ---- */
.history-item { display: flex; justify-content: space-between; align-items: center; padding: 0.45rem 0; border-bottom: 1px solid var(--border); font-size: 0.85rem; }
.history-item:last-child { border-bottom: none; }
.history-item .h-name { font-weight: 700; color: var(--primary); cursor: pointer; }
.history-item .h-name:hover { text-decoration: underline; }
.history-item .h-time { font-size: 0.75rem; color: var(--text-muted); }

/* ---- Related generators grid ---- */
.related-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 0.6rem; }
.related-card { background: white; border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 0.7rem; text-align: center; text-decoration: none; color: var(--text); transition: 0.15s; display: flex; flex-direction: column; align-items: center; gap: 0.2rem; }
.related-card:hover { box-shadow: var(--shadow); transform: translateY(-2px); border-color: var(--primary-light); text-decoration: none; }
.related-card .rc-emoji { font-size: 1.6rem; }
.related-card .rc-name { font-size: 0.75rem; font-weight: 700; }

/* ---- Network nav ---- */
.network-nav { background: var(--primary-pale); border-top: 2px solid var(--border); border-bottom: 2px solid var(--border); padding: 2rem 1rem; margin: 2rem 0; }
.network-nav h2 { text-align: center; color: var(--primary); margin-bottom: 1.2rem; font-size: 1rem; }
.network-grid { max-width: 1200px; margin: 0 auto; display: grid; grid-template-columns: repeat(auto-fill,minmax(155px,1fr)); gap: 0.7rem; }
.net-card { background: white; border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 0.8rem; text-align: center; text-decoration: none; color: var(--text); transition: 0.2s; display: flex; flex-direction: column; align-items: center; gap: 0.2rem; }
.net-card:hover { box-shadow: var(--shadow); transform: translateY(-2px); border-color: var(--primary-light); text-decoration: none; }
.net-card .nc-icon { font-size: 1.5rem; }
.net-card .nc-name { font-size: 0.77rem; font-weight: 700; }
.net-card .nc-site { font-size: 0.67rem; color: var(--text-muted); }

/* ---- GDPR banner ---- */
#cookie-banner { position: fixed; bottom:0; left:0; right:0; background: #060d26; color: #90a4d4; padding: 1rem 1.5rem; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 0.8rem; z-index: 9999; box-shadow: 0 -4px 20px rgba(0,0,0,0.4); }
#cookie-banner p { font-size: 0.88rem; margin: 0; flex: 1; min-width: 200px; }
#cookie-banner a { color: var(--accent); }
.cookie-btns { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.cookie-btns button { padding: 0.5rem 1.1rem; border-radius: 6px; font-weight: 700; font-size: 0.85rem; cursor: pointer; border: none; }
#cookie-accept { background: var(--accent); color: var(--primary); }
#cookie-decline { background: transparent; border: 1px solid #90a4d4 !important; color: #90a4d4; }

/* ---- Footer ---- */
footer { background: #060d26; color: #4a5580; text-align: center; padding: 2rem 1rem; margin-top: auto; }
.footer-inner { max-width: 1200px; margin: 0 auto; }
.footer-links { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; margin-bottom: 0.8rem; }
.footer-links a { color: #4a5580; font-size: 0.85rem; }
.footer-links a:hover { color: var(--accent); }
.footer-copy { font-size: 0.8rem; color: #2a3060; }

/* ---- FAQ ---- */
details { border: 1px solid var(--border); border-radius: var(--radius-sm); margin-bottom: 0.5rem; }
details summary { padding: 0.75rem 1rem; font-weight: 700; cursor: pointer; font-size: 0.92rem; list-style: none; display: flex; justify-content: space-between; align-items: center; }
details summary::after { content: '+'; font-size: 1.1rem; color: var(--primary); }
details[open] summary::after { content: '−'; }
details p { padding: 0 1rem 0.75rem; font-size: 0.9rem; color: var(--text-muted); }

/* ---- Utilities ---- */
.text-center { text-align: center; }
.hidden { display: none !important; }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.w-full { width: 100%; }

/* ---- Forms ---- */
input[type=text], select { border: 2px solid var(--border); border-radius: var(--radius-sm); padding: 0.6rem 1rem; font-size: 0.95rem; color: var(--text); background: white; transition: border-color 0.2s; outline: none; width: 100%; }
input:focus, select:focus { border-color: var(--primary-light); box-shadow: 0 0 0 3px rgba(30,47,128,0.12); }

/* ---- Homepage hero search ---- */
.home-search { display: flex; gap: 0.5rem; max-width: 500px; margin: 1.5rem auto 0; }
.home-search input { flex: 1; background: rgba(255,255,255,0.1); border: 1px solid rgba(255,215,0,0.3); color: white; border-radius: 50px 0 0 50px; padding: 0.8rem 1.5rem; }
.home-search input::placeholder { color: rgba(255,255,255,0.4); }
.home-search input:focus { border-color: var(--accent); box-shadow: none; background: rgba(255,255,255,0.15); }
.home-search button { background: var(--accent); color: var(--primary); border: none; padding: 0.8rem 1.5rem; border-radius: 0 50px 50px 0; font-weight: 900; cursor: pointer; font-family: 'Nunito',sans-serif; transition: background 0.2s; }
.home-search button:hover { background: var(--accent-dark); }

/* ---- Featured strip ---- */
.featured-strip { display: flex; gap: 0.6rem; overflow-x: auto; padding: 0.5rem 0 1rem; scrollbar-width: none; }
.featured-strip::-webkit-scrollbar { display: none; }
.feat-pill { background: rgba(255,215,0,0.1); border: 1px solid rgba(255,215,0,0.25); color: var(--accent); border-radius: 50px; padding: 0.4rem 1rem; font-size: 0.82rem; font-weight: 700; white-space: nowrap; cursor: pointer; text-decoration: none; transition: 0.15s; flex-shrink: 0; }
.feat-pill:hover { background: rgba(255,215,0,0.2); text-decoration: none; color: var(--accent); }

/* ============================================
   GENERATOR PAGE LAYOUT
   ============================================ */
.gen-pag