/* ═══════════════════════════════════════════════
   FORGELIGHT — Shared Stylesheet
   Include on every page:
   <link rel="stylesheet" href="/styles.css">
═══════════════════════════════════════════════ */

/* ── CSS VARIABLES ── */
:root {
  --bg:            #111228;
  --panel:         #171630;
  --card:          #1e1c3a;
  --card-hover:    #252348;
  --card-selected: #221a50;
  --accent:        #e07e10;
  --accent-dim:    rgba(224,126,16,0.12);
  --accent-border: rgba(224,126,16,0.45);
  --text:          #dcd8c8;
  --text-dim:      #8a8aaa;
  --text-muted:    #565678;
  --border:        #2c2a50;
  --border-light:  #3c3a6a;
  --pos:           #e07e10;
  --neg:           #c05a5a;
  --success:       #50b050;
}

/* ── RESET ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Lato', sans-serif;
  min-height: 100vh;
  line-height: 1.6;
  overflow-x: hidden;
}

/* ── BACKGROUND TEXTURE ── */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image:
    radial-gradient(ellipse 80% 60% at 20% 10%, rgba(224,126,16,0.06) 0%, transparent 60%),
    radial-gradient(ellipse 60% 50% at 80% 80%, rgba(224,126,16,0.04) 0%, transparent 55%);
  pointer-events: none;
  z-index: 0;
}

/* ── NAV ── */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 32px;
  height: 56px;
  background: rgba(12,8,24,0.97);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(224,126,16,0.18);
}
.nav-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
}
.nav-logo img {
  height: 32px;
  width: auto;
  display: block;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
}
.nav-links a {
  font-size: 0.78rem;
  color: var(--text-muted);
  text-decoration: none;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--text); }
.nav-cta {
  padding: 7px 20px;
  border-radius: 5px;
  background: var(--accent);
  color: white !important;
  font-weight: 700;
  font-size: 0.78rem !important;
  letter-spacing: 0.06em;
  transition: filter 0.2s, transform 0.2s !important;
}
.nav-cta:hover {
  filter: brightness(1.12);
  transform: translateY(-1px);
  color: white !important;
}

/* ── FOOTER ── */
.site-footer {
  position: relative;
  z-index: 1;
  border-top: 1px solid var(--border);
  padding: 32px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}
.footer-logo img {
  height: 34px;
  width: auto;
  opacity: 0.55;
  transition: opacity 0.2s;
}
.footer-logo img:hover { opacity: 1; }
.footer-copy { font-size: 0.75rem; color: var(--text-muted); }
.footer-links { display: flex; gap: 20px; list-style: none; }
.footer-links a {
  font-size: 0.72rem;
  color: var(--text-muted);
  text-decoration: none;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: color 0.15s;
}
.footer-links a:hover { color: var(--accent); }

/* ── BUTTONS ── */
.btn {
  display: inline-block;
  padding: 10px 24px;
  border-radius: 6px;
  border: none;
  cursor: pointer;
  font-family: 'Lato', sans-serif;
  font-size: 0.88rem;
  font-weight: 700;
  text-decoration: none;
  letter-spacing: 0.04em;
  transition: all 0.2s;
}
.btn-primary {
  background: var(--accent);
  color: white;
}
.btn-primary:hover {
  filter: brightness(1.12);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(224,126,16,0.35);
}
.btn-secondary {
  background: transparent;
  border: 2px solid var(--border-light);
  color: var(--text-dim);
}
.btn-secondary:hover {
  border-color: var(--accent-border);
  color: var(--accent);
}
.btn-ghost {
  background: transparent;
  border: 1px solid var(--border-light);
  color: var(--text-muted);
}
.btn-ghost:hover {
  border-color: var(--neg);
  color: var(--neg);
}

/* ── BADGE ── */
.badge {
  display: inline-block;
  font-size: 0.62rem;
  padding: 2px 9px;
  border-radius: 20px;
  background: var(--panel);
  border: 1px solid var(--border-light);
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.07em;
  vertical-align: middle;
  font-family: 'Lato', sans-serif;
}
.badge-accent {
  border-color: var(--accent-border);
  color: var(--accent);
  background: var(--accent-dim);
}

/* ── ORNAMENT DIVIDER ── */
.ornament {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 36px;
}
.ornament-line { flex: 1; height: 1px; background: var(--border); }
.ornament-mark {
  width: 8px;
  height: 8px;
  border: 2px solid var(--accent-border);
  border-radius: 1px;
  transform: rotate(45deg);
  flex-shrink: 0;
}

/* ── LOADING SPINNER ── */
.loading-spinner {
  width: 32px;
  height: 32px;
  border: 2px solid var(--border-light);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: fl-spin 0.8s linear infinite;
  margin: 0 auto 14px;
}
@keyframes fl-spin { to { transform: rotate(360deg); } }

/* ── GLOBAL LOADER (full screen) ── */
#global-loader {
  position: fixed;
  inset: 0;
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 999;
  flex-direction: column;
  gap: 16px;
}
.loader-spinner {
  width: 40px;
  height: 40px;
  border: 3px solid var(--border-light);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: fl-spin 0.8s linear infinite;
}
.loader-text {
  font-family: 'Cinzel', serif;
  font-size: 0.85rem;
  color: var(--text-muted);
  letter-spacing: 0.1em;
}

/* ── FORM ELEMENTS ── */
.form-group { margin-bottom: 18px; }
.form-label {
  display: block;
  font-family: 'Cinzel', serif;
  font-size: 0.72rem;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 7px;
}
.form-input {
  width: 100%;
  background: var(--panel);
  border: 2px solid var(--border);
  border-radius: 6px;
  padding: 10px 14px;
  color: var(--text);
  font-size: 1rem;
  font-family: 'Lato', sans-serif;
  outline: none;
  transition: border-color 0.2s;
  resize: vertical;
}
.form-input:focus { border-color: var(--accent); }
.form-input::placeholder { color: var(--text-muted); }
.form-hint { font-size: 0.8rem; color: var(--text-muted); margin-top: 5px; }

/* ── SECTION UTILITIES ── */
.section-label {
  font-family: 'Cinzel', serif;
  font-size: 0.7rem;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  margin-bottom: 10px;
}
.section-title {
  font-family: 'Cinzel', serif;
  font-size: clamp(1.4rem, 3vw, 2rem);
  color: var(--text);
  margin-bottom: 10px;
}
.section-desc {
  color: var(--text-dim);
  font-size: 0.95rem;
  max-width: 560px;
  line-height: 1.65;
  margin-bottom: 36px;
}

/* ── ANIMATIONS ── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeSlide {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── RESPONSIVE ── */
@media (max-width: 640px) {
  .site-nav { padding: 0 16px; }
  .nav-links { display: none; }
  .site-footer { flex-direction: column; align-items: flex-start; gap: 12px; }
}
