/* ============================================================
   Battle Realms Hosting Fix – Site Stylesheet
   BenLotus
   ============================================================ */

:root {
  --bg:          #0d0d0d;
  --bg-card:     #1a1a1a;
  --bg-card-alt: #141414;
  --border:      #2a2a2a;
  --yellow:      #ffd700;
  --cyan:        #00d7d7;
  --green:       #4cff72;
  --red:         #ff4c4c;
  --white:       #ffffff;
  --gray:        #a0a0a0;
  --text:        #e0e0e0;
  --font-ui:     'Segoe UI', system-ui, -apple-system, sans-serif;
  --font-mono:   'Consolas', 'Courier New', monospace;
  --radius:      8px;
  --max-w:       860px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-ui);
  font-size: 15px;
  line-height: 1.7;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a { color: var(--cyan); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ── Layout ──────────────────────────────────────────────── */

.site-main {
  flex: 1;
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 20px 60px;
}

/* ── Navigation ──────────────────────────────────────────── */

.site-nav {
  background: #111;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
}

.site-nav__inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 56px;
}

.site-nav__brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 15px;
  color: var(--yellow);
  text-decoration: none;
}

.site-nav__brand:hover { text-decoration: none; opacity: .85; }

.site-nav__brand span.sub {
  color: var(--gray);
  font-weight: 400;
  font-size: 13px;
}

.site-nav__links {
  display: flex;
  gap: 24px;
  list-style: none;
}

.site-nav__links a {
  color: var(--gray);
  font-size: 14px;
  transition: color .15s;
}

.site-nav__links a:hover { color: var(--white); text-decoration: none; }

/* ── Hero ────────────────────────────────────────────────── */

.hero {
  text-align: center;
  padding: 64px 0 48px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 48px;
}

.hero--compact {
  padding-bottom: 36px;
}

.hero__eyebrow {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 14px;
}

.hero__eyebrow-link {
  color: var(--cyan);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.hero__eyebrow-link:hover {
  color: var(--white);
  text-decoration: underline;
}

.hero__title {
  font-size: clamp(26px, 5vw, 42px);
  font-weight: 800;
  color: var(--yellow);
  line-height: 1.15;
  margin-bottom: 16px;
}

.hero__sub {
  font-size: 17px;
  color: var(--gray);
  max-width: 560px;
  margin: 0 auto 32px;
}

.btn-download {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #1a6e2e;
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  padding: 14px 36px;
  border-radius: var(--radius);
  text-decoration: none;
  transition: background .15s, transform .1s;
  border: 2px solid #258038;
}

.btn-download:hover {
  background: #258038;
  text-decoration: none;
  transform: translateY(-1px);
}

.btn-download__icon { font-size: 20px; }
.btn-download__version {
  font-size: 13px;
  font-weight: 600;
  opacity: 0.75;
  letter-spacing: 0.03em;
}

.hero__meta {
  margin-top: 16px;
  font-size: 12px;
  color: #555;
}

.hero__credit {
  margin-top: 14px;
  font-size: 13px;
  color: #a08840;
  letter-spacing: 0.01em;
}

.hero__credit strong {
  color: #ffd700;
  font-weight: 700;
}

/* ── Section ─────────────────────────────────────────────── */

.section { margin-bottom: 48px; }

.section__title {
  font-size: 20px;
  font-weight: 700;
  color: var(--yellow);
  margin-bottom: 18px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 10px;
}

.section__intro {
  color: var(--gray);
  font-size: 14px;
  margin: -6px 0 18px;
}

.section__intro code {
  font-family: var(--font-mono);
  font-size: 13px;
  background: #222;
  color: var(--cyan);
  padding: 1px 6px;
  border-radius: 4px;
}

/* ── Downloads ───────────────────────────────────────────── */

.download-group {
  background: var(--bg-card-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  margin-bottom: 18px;
}

.download-group__header {
  margin-bottom: 14px;
}

.download-group__header h3 {
  color: var(--white);
  font-size: 17px;
  margin-bottom: 4px;
}

.download-group__header p {
  color: var(--gray);
  font-size: 14px;
}

.download-group code,
.download-feature code {
  font-family: var(--font-mono);
  font-size: 13px;
  background: #222;
  color: var(--cyan);
  padding: 1px 6px;
  border-radius: 4px;
}

.download-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
}

.download-card {
  display: flex;
  flex-direction: column;
  gap: 3px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  color: var(--text);
  text-decoration: none;
  transition: border-color .15s, transform .1s, background .15s;
}

.download-card:hover {
  background: #202020;
  border-color: var(--cyan);
  text-decoration: none;
  transform: translateY(-1px);
}

.download-card__icon {
  font-size: 24px;
  margin-bottom: 4px;
}

.download-card__title {
  color: var(--white);
  font-weight: 700;
}

.download-card__meta {
  color: var(--gray);
  font-size: 12px;
}

.download-feature {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
}

.download-feature h3,
.download-feature h4 {
  color: var(--yellow);
  font-size: 16px;
  margin-bottom: 6px;
}

.download-feature p {
  color: var(--gray);
  font-size: 14px;
  margin-bottom: 8px;
}

.download-feature p:last-child {
  margin-bottom: 0;
}

.download-feature pre {
  background: #101010;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--green);
  font-family: var(--font-mono);
  font-size: 13px;
  overflow-x: auto;
  padding: 10px 12px;
  margin-top: 8px;
}

.download-feature pre code {
  background: transparent;
  color: inherit;
  padding: 0;
}

.instruction-list {
  color: var(--gray);
  font-size: 14px;
  margin: 8px 0 10px;
  padding-left: 22px;
}

.instruction-list li {
  margin-bottom: 4px;
}

.instruction-list code {
  font-family: var(--font-mono);
  font-size: 13px;
  background: #222;
  color: var(--cyan);
  padding: 1px 6px;
  border-radius: 4px;
}

.download-credit {
  color: #ffc966;
  font-size: 13px;
  font-weight: 700;
}

.btn-download--small {
  flex-shrink: 0;
  font-size: 14px;
  padding: 10px 18px;
  margin-top: 2px;
}

/* ── Cards ───────────────────────────────────────────────── */

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
}

.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
}

.card__icon { font-size: 26px; margin-bottom: 8px; }

.card__title {
  font-weight: 700;
  color: var(--white);
  margin-bottom: 6px;
}

.card__desc { font-size: 14px; color: var(--gray); }

/* ── Steps ───────────────────────────────────────────────── */

.steps { display: flex; flex-direction: column; gap: 14px; }

.step {
  display: flex;
  gap: 16px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 20px;
  align-items: flex-start;
}

.step__num {
  flex-shrink: 0;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #1a3a1a;
  border: 2px solid var(--green);
  color: var(--green);
  font-weight: 800;
  font-size: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.step__body strong {
  display: block;
  color: var(--white);
  margin-bottom: 4px;
}

.step__body p { font-size: 14px; color: var(--gray); }

.step__body code {
  font-family: var(--font-mono);
  font-size: 13px;
  background: #222;
  color: var(--cyan);
  padding: 1px 6px;
  border-radius: 4px;
}

/* ── Warning / info boxes ────────────────────────────────── */

.alert {
  border-radius: var(--radius);
  padding: 18px 20px;
  margin-bottom: 14px;
  border-left: 4px solid;
  background: var(--bg-card);
}

.alert--warning {
  border-color: var(--yellow);
  background: #1a1500;
}

.alert--warning .alert__title { color: var(--yellow); }

.alert--info {
  border-color: var(--cyan);
  background: #001a1a;
}

.alert--info .alert__title { color: var(--cyan); }

.alert--success {
  border-color: var(--green);
  background: #001a06;
}

.alert--success .alert__title { color: var(--green); }

.alert__title {
  font-weight: 700;
  font-size: 15px;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.alert p { font-size: 14px; color: var(--text); margin-bottom: 6px; }
.alert p:last-child { margin-bottom: 0; }

.alert ol, .alert ul {
  padding-left: 20px;
  font-size: 14px;
  color: var(--text);
  margin-top: 6px;
}

.alert ol li, .alert ul li { margin-bottom: 4px; }

/* ── Requirements list ───────────────────────────────────── */

.req-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.req-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: var(--text);
}

.req-list li::before {
  content: '✓';
  color: var(--green);
  font-weight: 700;
}

/* ── Credits ─────────────────────────────────────────────── */

.credits {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.credits__card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 22px;
}

.credits__card--hero {
  background: #1c1400;
  border-color: #6a4e00;
  box-shadow: 0 0 0 1px #6a4e00, 0 4px 24px rgba(255, 215, 0, 0.08);
}

.credits__card--dxwnd {
  background: #111a11;
  border-color: #1a3a1a;
}

.credits__card-header {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 12px;
}

.credits__crown {
  font-size: 2rem;
  line-height: 1;
  flex-shrink: 0;
  margin-top: 2px;
}

.credits__icon {
  font-size: 1.6rem;
  line-height: 1;
  flex-shrink: 0;
  margin-top: 4px;
}

.credits__name {
  font-size: 1.25rem;
  font-weight: 700;
  color: #ffd700;
  line-height: 1.2;
}

.credits__card:not(.credits__card--hero) .credits__name {
  color: var(--green);
  font-size: 1.05rem;
}

.credits__card--dxwnd .credits__name {
  color: var(--cyan);
}

.credits__fullname {
  font-size: 0.85em;
  font-weight: 400;
  color: #ffc966;
  opacity: 0.9;
}

.credits__card:not(.credits__card--hero) .credits__fullname {
  color: var(--gray);
}

.credits__role {
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #ffc966;
  margin-top: 2px;
}

.credits__card:not(.credits__card--hero) .credits__role {
  color: var(--cyan);
}

.credits__card--dxwnd .credits__role {
  color: var(--gray);
}

.credits__desc {
  font-size: 14px;
  color: var(--text);
  line-height: 1.65;
}

.credits__card--hero .credits__desc {
  color: #e0d080;
}

/* ── FAQ ─────────────────────────────────────────────────── */

.faq { display: flex; flex-direction: column; gap: 12px; }

.faq__item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 20px;
}

.faq__q {
  font-weight: 700;
  color: var(--white);
  margin-bottom: 6px;
}

.faq__a { font-size: 14px; color: var(--gray); }

/* ── Footer ──────────────────────────────────────────────── */

.site-footer {
  background: #111;
  border-top: 1px solid var(--border);
  padding: 28px 20px;
  text-align: center;
}

.site-footer__inner {
  max-width: var(--max-w);
  margin: 0 auto;
}

.site-footer__brand {
  font-size: 16px;
  font-weight: 700;
  color: var(--yellow);
  margin-bottom: 6px;
}

.site-footer__tagline {
  font-size: 13px;
  color: var(--gray);
  margin-bottom: 12px;
}

.site-footer__links {
  display: flex;
  justify-content: center;
  gap: 20px;
  list-style: none;
  font-size: 13px;
  flex-wrap: wrap;
}

.site-footer__copy {
  margin-top: 14px;
  font-size: 12px;
  color: #444;
}

/* ── Responsive ──────────────────────────────────────────── */

@media (max-width: 600px) {
  .site-nav__links { display: none; }
  .hero { padding: 40px 0 32px; }
  .card-grid { grid-template-columns: 1fr; }
  .download-feature { flex-direction: column; }
  .btn-download--small { width: 100%; justify-content: center; }
}
