/* ── Reset & tokens ─────────────────────────────────────────────────────────── */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --black: #0a0a0d;
    --dark-1: #111118;
    --dark-2: #1a1a24;
    --dark-3: #25252e;
    --border: #2e2e3a;
    --red: #9b1c1c;
    --red-light: #c0392b;
    --red-glow: #e74c3c;
    --gold: #c0943b;
    --gold-light: #e8b84b;
    --text: #e8e6e1;
    --text-muted: #9090a0;
    --radius: 10px;
    --shadow: 0 8px 32px rgba(0, 0, 0, .6);
}

html {
    scroll-behavior: smooth;
}

body {
    background: var(--black);
    color: var(--text);
    font-family: 'Inter', system-ui, sans-serif;
    font-size: 1rem;
    line-height: 1.7;
    min-height: 100vh;
}

/* ── Typography ─────────────────────────────────────────────────────────────── */
h1,
h2,
h3,
h4 {
    font-family: 'Cinzel', serif;
    letter-spacing: .02em;
    line-height: 1.3;
}

/* ── Container ──────────────────────────────────────────────────────────────── */
.container {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 1.25rem;
}

/* ── Header ─────────────────────────────────────────────────────────────────── */
.site-header {
    background: var(--dark-1);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(8px);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-block: .9rem;
}

.logo {
    font-family: 'Cinzel', serif;
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--red-glow);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: .4rem;
}

.logo span {
    color: var(--text);
}

nav {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
}

nav a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: .9rem;
    font-weight: 500;
    transition: color .2s;
}

nav a:hover {
    color: var(--red-glow);
}

/* ── Footer ─────────────────────────────────────────────────────────────────── */
.site-footer {
    margin-top: 5rem;
    background: var(--dark-1);
    border-top: 1px solid var(--border);
    padding: 2.5rem 0;
    text-align: center;
}

.footer-tagline {
    font-family: 'Cinzel', serif;
    color: var(--red-glow);
    margin-bottom: 1rem;
}

.footer-nav {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
    margin-bottom: 1rem;
}

.footer-nav a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: .88rem;
}

.footer-nav a:hover {
    color: var(--text);
}

.footer-copy {
    font-size: .8rem;
    color: var(--text-muted);
}

/* ── Hero ───────────────────────────────────────────────────────────────────── */
.hero {
    text-align: center;
    padding: 4rem 1rem 2rem;
    background: radial-gradient(ellipse at 50% 0%, rgba(155, 28, 28, .18) 0%, transparent 70%);
}

.hero h1 {
    font-size: clamp(2rem, 5vw, 3.2rem);
    color: var(--text);
    margin-bottom: .75rem;
}

.hero h1 span {
    color: var(--red-glow);
}

.hero p {
    color: var(--text-muted);
    max-width: 560px;
    margin: 0 auto;
    font-size: 1.05rem;
}

/* ── Generator card ─────────────────────────────────────────────────────────── */
.generator-card {
    background: var(--dark-2);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 2rem;
    box-shadow: var(--shadow);
    margin-block: 2rem;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1.25rem;
    margin-bottom: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: .4rem;
}

.form-group label {
    font-size: .82rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .07em;
    color: var(--text-muted);
}

select {
    appearance: none;
    background: var(--dark-3);
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text);
    padding: .7rem 1rem;
    font-size: .97rem;
    width: 100%;
    cursor: pointer;
    transition: border-color .2s;
    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='%239090a0' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    padding-right: 2.5rem;
}

select:focus {
    outline: none;
    border-color: var(--red-light);
    box-shadow: 0 0 0 3px rgba(192, 57, 43, .2);
}

.btn-generate {
    width: 100%;
    padding: 1rem;
    border: none;
    border-radius: 8px;
    font-family: 'Cinzel', serif;
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: .05em;
    cursor: pointer;
    background: linear-gradient(135deg, var(--red) 0%, var(--red-glow) 100%);
    color: #fff;
    transition: opacity .2s, transform .1s, box-shadow .2s;
    box-shadow: 0 4px 20px rgba(231, 76, 60, .3);
}

.btn-generate:hover {
    opacity: .9;
    box-shadow: 0 6px 28px rgba(231, 76, 60, .5);
}

.btn-generate:active {
    transform: scale(.98);
}

/* ── Result card ────────────────────────────────────────────────────────────── */
.result-card {
    display: none;
    margin-top: 1.5rem;
    background: var(--dark-3);
    border: 1px solid var(--red);
    border-radius: var(--radius);
    padding: 1.75rem;
    text-align: center;
    animation: fadeUp .35s ease;
    box-shadow: 0 0 40px rgba(155, 28, 28, .25);
}

.result-card.show {
    display: block;
}

.result-label {
    font-size: .78rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .1em;
    color: var(--red-light);
    margin-bottom: .5rem;
}

.result-name {
    font-family: 'Cinzel', serif;
    font-size: clamp(1.6rem, 4vw, 2.4rem);
    font-weight: 700;
    color: var(--text);
    margin-bottom: 1rem;
    text-shadow: 0 2px 12px rgba(231, 76, 60, .3);
}

.btn-copy {
    padding: .6rem 1.4rem;
    border: 1px solid var(--border);
    border-radius: 6px;
    background: transparent;
    color: var(--text-muted);
    font-size: .9rem;
    cursor: pointer;
    transition: all .2s;
}

.btn-copy:hover {
    border-color: var(--gold);
    color: var(--gold);
}

.btn-copy.copied {
    border-color: #22c55e;
    color: #22c55e;
}

/* ── Prose / content sections ───────────────────────────────────────────────── */
.prose {
    max-width: 700px;
    margin: 3rem auto;
    color: var(--text-muted);
}

.prose h2 {
    color: var(--text);
    font-size: 1.5rem;
    margin-bottom: 1rem;
    margin-top: 2.5rem;
    padding-bottom: .5rem;
    border-bottom: 1px solid var(--border);
}

.prose h2:first-child {
    margin-top: 0;
}

.prose p {
    margin-bottom: 1rem;
}

.prose ul,
.prose ol {
    padding-left: 1.5rem;
    margin-bottom: 1rem;
}

.prose li {
    margin-bottom: .35rem;
}

.prose a {
    color: var(--red-glow);
}

.prose strong {
    color: var(--text);
}

/* ── Name grid (popular-names) ──────────────────────────────────────────────── */
.name-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 1rem;
    margin: 2rem 0;
}

.name-card {
    background: var(--dark-2);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.25rem 1.5rem;
    transition: border-color .2s;
}

.name-card:hover {
    border-color: var(--red-light);
}

.name-card h3 {
    font-family: 'Cinzel', serif;
    font-size: 1.05rem;
    color: var(--text);
    margin-bottom: .4rem;
}

.name-card p {
    font-size: .88rem;
    color: var(--text-muted);
}

/* ── FAQ ────────────────────────────────────────────────────────────────────── */
.faq-list {
    max-width: 700px;
    margin: 2rem auto;
}

.faq-item {
    border-bottom: 1px solid var(--border);
    padding: 1.25rem 0;
}

.faq-item h3 {
    font-family: 'Cinzel', serif;
    font-size: 1.05rem;
    color: var(--text);
    margin-bottom: .6rem;
}

.faq-item p {
    color: var(--text-muted);
    font-size: .95rem;
}

/* ── Page hero (non-index) ──────────────────────────────────────────────────── */
.page-hero {
    padding: 3rem 1rem 1.5rem;
    text-align: center;
    background: radial-gradient(ellipse at 50% 0%, rgba(155, 28, 28, .15) 0%, transparent 65%);
}

.page-hero h1 {
    font-size: clamp(1.6rem, 4vw, 2.5rem);
    color: var(--text);
    margin-bottom: .5rem;
}

.page-hero p {
    color: var(--text-muted);
    max-width: 520px;
    margin: 0 auto;
}

/* ── Badge pill ─────────────────────────────────────────────────────────────── */
.badge {
    display: inline-block;
    padding: .2rem .7rem;
    border-radius: 999px;
    font-size: .75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .06em;
    background: rgba(155, 28, 28, .25);
    color: var(--red-glow);
    border: 1px solid rgba(155, 28, 28, .4);
    margin-bottom: 1rem;
}

/* ── Animations ─────────────────────────────────────────────────────────────── */
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ── Utility ────────────────────────────────────────────────────────────────── */
.mt-lg {
    margin-top: 3rem;
}

.text-center {
    text-align: center;
}

/* ── Breadcrumbs ───────────────────────────────────────────────────────────── */
.breadcrumb-wrap {
    padding-top: 1rem;
}

.breadcrumb {
    display: flex;
    align-items: center;
    gap: .55rem;
    flex-wrap: wrap;
    font-size: .85rem;
}

.breadcrumb a {
    color: var(--text-muted);
    text-decoration: none;
}

.breadcrumb a:hover {
    color: var(--red-glow);
}

.breadcrumb span[aria-current="page"] {
    color: var(--text);
    font-weight: 600;
}

.breadcrumb-separator {
    color: var(--text-muted);
}
