/* ============================================================
   WARRIORS NAME GENERATOR — Main Stylesheet
   Aesthetic: Dark forge / ancient manuscript / ember glow
   ============================================================ */

:root {
  --bg-deep:      #0d0b08;
  --bg-card:      #141009;
  --bg-card2:     #1a1510;
  --gold:         #c9922a;
  --gold-light:   #e8b84b;
  --gold-dim:     #7a5a1a;
  --ember:        #e05c2a;
  --cream:        #f0e8d5;
  --cream-dim:    #a89880;
  --text:         #d8ccba;
  --text-dim:     #7a6e60;
  --border:       rgba(201,146,42,0.18);
  --border-hover: rgba(201,146,42,0.45);
  --radius:       12px;
  --radius-lg:    20px;
  --shadow:       0 8px 40px rgba(0,0,0,0.6);
  --shadow-gold:  0 0 30px rgba(201,146,42,0.15);
  --font-display: 'Cinzel Decorative', serif;
  --font-body:    'Crimson Pro', Georgia, serif;
  --transition:   0.25s ease;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg-deep);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1.1rem;
  line-height: 1.7;
  min-height: 100vh;
}

a { color: var(--gold); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--gold-light); }

/* ── CONTAINER ──────────────────────────────────────── */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ── HEADER / NAV ──────────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(13,11,8,0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.nav-container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--cream);
  font-family: var(--font-display);
  font-size: 1rem;
  letter-spacing: 0.03em;
}
.logo-icon { font-size: 1.4rem; color: var(--gold); }
.logo-text em { color: var(--gold); font-style: normal; }

.nav-links {
  list-style: none;
  display: flex;
  gap: 8px;
}
.nav-link {
  color: var(--cream-dim);
  font-family: var(--font-body);
  font-size: 1rem;
  padding: 6px 16px;
  border-radius: 6px;
  transition: all var(--transition);
}
.nav-link:hover, .nav-link.active {
  color: var(--gold-light);
  background: rgba(201,146,42,0.1);
}

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border);
  color: var(--gold);
  font-size: 1.3rem;
  padding: 4px 10px;
  border-radius: 6px;
  cursor: pointer;
}

.nav-mobile {
  display: none;
  flex-direction: column;
  background: var(--bg-card);
  border-bottom: 1px solid var(--border);
  padding: 12px 24px;
  gap: 8px;
}
.nav-mobile a {
  color: var(--cream-dim);
  padding: 8px 0;
  font-size: 1.1rem;
  border-bottom: 1px solid var(--border);
}
.nav-mobile.open { display: flex; }

/* ── HERO ──────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 88vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  padding: 80px 24px;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 50% 40%, rgba(201,146,42,0.09) 0%, transparent 70%),
    radial-gradient(ellipse 40% 30% at 30% 70%, rgba(224,92,42,0.07) 0%, transparent 60%),
    url("data:image/svg+xml,%3Csvg width='60' height='60' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0 0h60v60H0z' fill='none'/%3E%3Cpath d='M30 0v60M0 30h60' stroke='%23c9922a' stroke-width='0.15' opacity='0.3'/%3E%3C/svg%3E") center/60px 60px;
  z-index: 0;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 760px;
}

.hero-eyebrow {
  font-family: var(--font-body);
  font-size: 0.85rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold-dim);
  margin-bottom: 20px;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 7vw, 5rem);
  font-weight: 900;
  line-height: 1.05;
  color: var(--cream);
  text-shadow: 0 2px 30px rgba(201,146,42,0.3);
  margin-bottom: 20px;
  animation: fadeUp 0.8s ease both;
}
.hero-accent {
  color: var(--gold);
  display: block;
}

.hero-subtitle {
  font-size: 1.25rem;
  color: var(--cream-dim);
  max-width: 520px;
  margin: 0 auto 36px;
  animation: fadeUp 0.9s 0.1s ease both;
}

.scroll-cta {
  animation: fadeUp 0.9s 0.2s ease both;
}

/* Floating embers */
.hero-embers {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
}
.hero-embers span {
  position: absolute;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--gold);
  opacity: 0;
  animation: ember 6s infinite;
}
.hero-embers span:nth-child(1)  { left: 20%; animation-delay: 0s;   animation-duration: 7s; }
.hero-embers span:nth-child(2)  { left: 40%; animation-delay: 1.5s; animation-duration: 6s; }
.hero-embers span:nth-child(3)  { left: 60%; animation-delay: 3s;   animation-duration: 8s; }
.hero-embers span:nth-child(4)  { left: 75%; animation-delay: 0.8s; animation-duration: 5s; }
.hero-embers span:nth-child(5)  { left: 85%; animation-delay: 2s;   animation-duration: 9s; }
.hero-embers span:nth-child(6)  { left: 10%; animation-delay: 4s;   animation-duration: 7s; }
.hero-embers span:nth-child(7)  { left: 30%; animation-delay: 2.5s; animation-duration: 6s; }
.hero-embers span:nth-child(8)  { left: 50%; animation-delay: 5s;   animation-duration: 8s; }
.hero-embers span:nth-child(9)  { left: 65%; animation-delay: 1s;   animation-duration: 7s; }
.hero-embers span:nth-child(10) { left: 90%; animation-delay: 3.5s; animation-duration: 5s; }

@keyframes ember {
  0%   { transform: translateY(100vh) scale(1); opacity: 0; }
  10%  { opacity: 0.8; }
  90%  { opacity: 0.4; }
  100% { transform: translateY(-20px) scale(0.3); opacity: 0; }
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── BUTTONS ────────────────────────────────────────── */
.btn-primary {
  display: inline-block;
  background: linear-gradient(135deg, var(--gold) 0%, var(--ember) 100%);
  color: #0d0b08;
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  padding: 14px 32px;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  transition: all 0.25s;
  box-shadow: 0 4px 20px rgba(201,146,42,0.3);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(201,146,42,0.45);
  color: #0d0b08;
}

.btn-generate {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  background: linear-gradient(135deg, var(--gold) 0%, var(--ember) 100%);
  color: #0d0b08;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  padding: 18px 32px;
  border-radius: var(--radius);
  border: none;
  cursor: pointer;
  transition: all 0.25s;
  box-shadow: 0 4px 24px rgba(201,146,42,0.35);
}
.btn-generate:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 36px rgba(201,146,42,0.5);
}
.btn-generate:active { transform: translateY(0); }
.btn-icon { font-size: 1.2rem; }

.btn-secondary {
  display: inline-block;
  background: transparent;
  color: var(--gold);
  font-family: var(--font-body);
  font-size: 1rem;
  padding: 10px 22px;
  border-radius: 8px;
  border: 1px solid var(--border-hover);
  cursor: pointer;
  transition: all var(--transition);
}
.btn-secondary:hover {
  background: rgba(201,146,42,0.1);
  color: var(--gold-light);
}

/* ── SECTION LABELS & TITLES ────────────────────────── */
.section-label {
  font-family: var(--font-body);
  font-size: 0.8rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--gold-dim);
  margin-bottom: 10px;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 4vw, 2.6rem);
  color: var(--cream);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 14px;
}

.section-subtitle {
  color: var(--cream-dim);
  font-size: 1.15rem;
  max-width: 560px;
  margin-bottom: 48px;
}

/* ── GENERATOR SECTION ──────────────────────────────── */
.generator-section {
  padding: 100px 0 80px;
  position: relative;
}
.generator-section::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold-dim), transparent);
}

.tool-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 44px;
  box-shadow: var(--shadow), var(--shadow-gold);
  margin-top: 32px;
}

.tool-options {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  margin-bottom: 28px;
}

.option-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.option-group label {
  font-size: 0.8rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold-dim);
  font-family: var(--font-body);
}
.option-group select {
  background: var(--bg-deep);
  color: var(--cream);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 12px 16px;
  font-family: var(--font-body);
  font-size: 1rem;
  cursor: pointer;
  transition: border-color var(--transition);
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23c9922a' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
}
.option-group select:focus {
  outline: none;
  border-color: var(--gold);
}

/* Results */
.results-area {
  margin: 28px 0;
  min-height: 140px;
  border: 1px dashed var(--border);
  border-radius: var(--radius);
  padding: 24px;
  background: var(--bg-deep);
  transition: border-color var(--transition);
}
.results-area.has-results {
  border-style: solid;
  border-color: var(--border-hover);
}

.results-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 100%;
  min-height: 100px;
  color: var(--text-dim);
  font-style: italic;
}
.results-placeholder span { font-size: 2rem; opacity: 0.3; }

.names-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.name-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--bg-card2);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 14px 20px;
  animation: slideIn 0.35s ease both;
  transition: border-color var(--transition);
}
.name-item:hover { border-color: var(--border-hover); }

@keyframes slideIn {
  from { opacity: 0; transform: translateX(-10px); }
  to   { opacity: 1; transform: translateX(0); }
}

.name-text {
  font-family: var(--font-display);
  font-size: 1.2rem;
  color: var(--gold-light);
  letter-spacing: 0.04em;
}

.name-copy-btn {
  background: none;
  border: 1px solid var(--border);
  color: var(--cream-dim);
  padding: 5px 12px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.8rem;
  transition: all var(--transition);
}
.name-copy-btn:hover {
  border-color: var(--gold);
  color: var(--gold);
  background: rgba(201,146,42,0.08);
}

.results-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 8px;
}

.copy-msg {
  font-size: 0.9rem;
  color: var(--gold-light);
  margin-top: 10px;
  min-height: 20px;
  text-align: center;
  font-style: italic;
}

/* ── HOW IT WORKS ───────────────────────────────────── */
.how-section {
  padding: 80px 0;
  background: var(--bg-card);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 28px;
  margin-top: 32px;
}

.step-card {
  background: var(--bg-deep);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 28px;
  position: relative;
  transition: border-color var(--transition), transform var(--transition);
}
.step-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-4px);
}

.step-num {
  font-family: var(--font-display);
  font-size: 2.5rem;
  color: var(--gold-dim);
  margin-bottom: 14px;
  line-height: 1;
}

.step-card h3 {
  font-family: var(--font-display);
  font-size: 1rem;
  color: var(--cream);
  margin-bottom: 10px;
}

.step-card p { color: var(--text-dim); font-size: 1rem; }

/* ── WHY SECTION ────────────────────────────────────── */
.why-section {
  padding: 100px 0;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  margin-top: 16px;
}

.feature-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  transition: all var(--transition);
}
.feature-item:hover {
  border-color: var(--border-hover);
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.4);
}

.feature-icon {
  display: block;
  font-size: 2rem;
  margin-bottom: 14px;
}

.feature-item h3 {
  font-family: var(--font-display);
  font-size: 0.9rem;
  color: var(--cream);
  margin-bottom: 8px;
}
.feature-item p { color: var(--text-dim); font-size: 1rem; }

/* ── FAQ ────────────────────────────────────────────── */
.faq-section {
  padding: 100px 0;
  background: var(--bg-card);
  border-top: 1px solid var(--border);
}

.faq-container { max-width: 780px; }

.faq-list {
  margin-top: 40px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-item {
  background: var(--bg-deep);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color var(--transition);
}
.faq-item[open] { border-color: var(--border-hover); }

.faq-item summary {
  padding: 20px 24px;
  font-family: var(--font-display);
  font-size: 0.95rem;
  color: var(--cream);
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: color var(--transition);
  user-select: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '+';
  font-size: 1.4rem;
  color: var(--gold);
  transition: transform var(--transition);
}
.faq-item[open] summary::after {
  content: '−';
}
.faq-item summary:hover { color: var(--gold-light); }

.faq-item p {
  padding: 0 24px 20px;
  color: var(--text-dim);
  font-size: 1rem;
  line-height: 1.7;
}

/* ── BLOG CTA ───────────────────────────────────────── */
.blog-cta-section {
  padding: 80px 0;
  border-top: 1px solid var(--border);
}

.blog-cta-card {
  background: linear-gradient(135deg, var(--bg-card2), rgba(201,146,42,0.07));
  border: 1px solid var(--border-hover);
  border-radius: var(--radius-lg);
  padding: 52px 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}

.blog-cta-text h2 {
  font-family: var(--font-display);
  font-size: 1.6rem;
  color: var(--cream);
  margin-bottom: 10px;
}
.blog-cta-text p { color: var(--cream-dim); max-width: 480px; }

/* ── FOOTER ─────────────────────────────────────────── */
.site-footer {
  background: #0a0806;
  border-top: 1px solid var(--border);
  padding: 60px 0 0;
}

.footer-inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 48px;
}

.footer-brand .logo-icon { font-size: 1.6rem; color: var(--gold); }
.footer-brand .logo-text {
  font-family: var(--font-display);
  font-size: 0.9rem;
  color: var(--cream);
  display: block;
  margin: 8px 0;
}
.footer-brand p { color: var(--text-dim); font-size: 0.95rem; margin-top: 10px; }

.footer-links h4 {
  font-family: var(--font-display);
  font-size: 0.8rem;
  letter-spacing: 0.15em;
  color: var(--gold);
  text-transform: uppercase;
  margin-bottom: 16px;
}
.footer-links ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-links a { color: var(--text-dim); font-size: 0.95rem; }
.footer-links a:hover { color: var(--gold-light); }

.footer-bottom {
  border-top: 1px solid var(--border);
  padding: 20px 24px;
  text-align: center;
  color: var(--text-dim);
  font-size: 0.85rem;
}

/* ── BLOG-SPECIFIC STYLES ───────────────────────────── */
.blog-hero {
  padding: 80px 24px 60px;
  text-align: center;
  background: radial-gradient(ellipse 70% 60% at 50% 30%, rgba(201,146,42,0.07), transparent);
  border-bottom: 1px solid var(--border);
}
.blog-hero .section-label { margin-bottom: 12px; }

.blog-grid {
  padding: 72px 0 100px;
}
.blog-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 28px;
  margin-top: 40px;
}

.blog-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: all var(--transition);
  display: flex;
  flex-direction: column;
}
.blog-card:hover { border-color: var(--border-hover); transform: translateY(-4px); box-shadow: var(--shadow); }

.blog-card-img {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  background: linear-gradient(135deg, var(--bg-card2) 0%, rgba(201,146,42,0.12) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  border-bottom: 1px solid var(--border);
  min-height: 160px;
}

.blog-card-body { padding: 28px 24px; flex: 1; display: flex; flex-direction: column; }
.blog-card-tag {
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 10px;
}
.blog-card-title {
  font-family: var(--font-display);
  font-size: 1.05rem;
  color: var(--cream);
  line-height: 1.4;
  margin-bottom: 12px;
}
.blog-card-excerpt { color: var(--text-dim); font-size: 0.97rem; flex: 1; margin-bottom: 20px; }
.blog-card-meta { font-size: 0.85rem; color: var(--text-dim); }
.blog-card-read {
  display: inline-block;
  margin-top: 16px;
  color: var(--gold);
  font-size: 0.9rem;
  letter-spacing: 0.05em;
}
.blog-card-read:hover { color: var(--gold-light); }

/* Blog Post */
.post-hero {
  padding: 80px 24px 50px;
  border-bottom: 1px solid var(--border);
  background: radial-gradient(ellipse 60% 50% at 50% 0%, rgba(201,146,42,0.06), transparent);
}
.post-hero .container { max-width: 820px; }
.post-tag {
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 14px;
  display: block;
}
.post-title {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 4vw, 2.6rem);
  color: var(--cream);
  line-height: 1.2;
  margin-bottom: 20px;
}
.post-meta { color: var(--text-dim); font-size: 0.95rem; display: flex; gap: 20px; flex-wrap: wrap; }

.post-body {
  padding: 64px 24px 100px;
}
.post-body .container { max-width: 820px; }

.post-body h2 {
  font-family: var(--font-display);
  font-size: 1.4rem;
  color: var(--cream);
  margin: 48px 0 16px;
}
.post-body h3 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: var(--gold-light);
  margin: 32px 0 12px;
}
.post-body p {
  color: var(--text-dim);
  font-size: 1.08rem;
  line-height: 1.85;
  margin-bottom: 20px;
}
.post-body ul, .post-body ol {
  color: var(--text-dim);
  font-size: 1.05rem;
  padding-left: 24px;
  margin-bottom: 20px;
  line-height: 1.8;
}
.post-body li { margin-bottom: 6px; }

.post-cta-box {
  background: linear-gradient(135deg, var(--bg-card2), rgba(201,146,42,0.08));
  border: 1px solid var(--border-hover);
  border-radius: var(--radius-lg);
  padding: 36px;
  margin: 40px 0;
  text-align: center;
}
.post-cta-box h3 {
  font-family: var(--font-display);
  color: var(--cream);
  font-size: 1.2rem;
  margin-bottom: 10px;
}
.post-cta-box p { color: var(--cream-dim); margin-bottom: 20px; }

.breadcrumb {
  font-size: 0.85rem;
  color: var(--text-dim);
  margin-bottom: 24px;
  display: flex;
  gap: 8px;
  align-items: center;
}
.breadcrumb a { color: var(--gold-dim); }
.breadcrumb a:hover { color: var(--gold); }

/* ── RESPONSIVE ─────────────────────────────────────── */
@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-toggle { display: block; }

  .tool-card { padding: 24px 20px; }
  .tool-options { grid-template-columns: 1fr; }

  .blog-cta-card { flex-direction: column; text-align: center; }
  .blog-cta-text p { margin: 0 auto; }

  .footer-inner { grid-template-columns: 1fr; gap: 32px; }

  .results-actions { flex-direction: column; }
  .btn-secondary { width: 100%; text-align: center; }
}

@media (max-width: 500px) {
  .hero-title { font-size: 2.2rem; }
  .tool-card { padding: 18px 16px; }
}
