/* Occilon (KrownKing) — dark theme with the purple sampled directly from his
   personal logo (#A860F0). Fixed dark theme, no light mode — this genre
   (streamer/gaming sites) reads as dark-first by convention. */
:root {
  --bg: #0A0A0C;
  --surface: #18181D;
  --surface-alt: #232329;
  --border: #2E2E36;
  --text: #F5F5F7;
  --text-muted: #A0A0AA;
  --accent: #A860F0;
  --accent-alt: #7C3AED;
  --danger: #E5484D;
  --warn: #F5A623;

  --max-width: 1080px;
  --radius: 14px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  scroll-behavior: smooth;
}

a { color: inherit; }

main {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 32px 24px 64px;
}

/* ---------- Nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 24px;
  position: relative;
}

.brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 20px;
  font-weight: 800;
  text-decoration: none;
  color: var(--text);
  letter-spacing: -0.02em;
}

.brand-logo {
  width: 32px;
  height: 32px;
}

.nav-links {
  display: flex;
  gap: 4px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  display: block;
  padding: 8px 14px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  color: var(--text-muted);
}

.nav-links a:hover {
  background: var(--surface-alt);
  color: var(--text);
}

.nav-links a.active {
  background: var(--accent);
  color: #fff;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  width: 38px;
  height: 38px;
}

.nav-toggle-bar {
  display: block;
  width: 100%;
  height: 2px;
  border-radius: 2px;
  background: var(--text);
}

@media (max-width: 720px) {
  .nav-toggle { display: flex; }

  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    padding: 8px 16px 16px;
    gap: 4px;
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links a {
    padding: 12px 14px;
  }
}

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 28px 24px;
  color: var(--text-muted);
  font-size: 13px;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
  max-width: var(--max-width);
  margin: 0 auto;
}

.footer-copyright {
  margin: 0;
}

.footer-socials {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.footer-socials a {
  display: flex;
  align-items: center;
  justify-content: center;
}

.footer-socials img {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  transition: transform 0.15s ease;
}

.footer-socials img:hover {
  transform: scale(1.1);
}

.footer-socials .icon-text-fallback {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-muted);
  text-decoration: none;
  padding: 4px 8px;
  border: 1px solid var(--border);
  border-radius: 6px;
}

.footer-socials .icon-text-fallback:hover {
  color: var(--text);
  border-color: var(--accent);
}

/* ---------- Hero ---------- */
.hero {
  text-align: center;
  padding: 48px 0 40px;
}

.hero-logo {
  display: block;
  width: 240px;
  height: auto;
  margin: 0 auto 10px;
}

.hero h1 {
  display: inline-block;
  font-size: 42px;
  margin: 0 0 6px;
  letter-spacing: -0.02em;
  text-transform: uppercase;
}

.hero p {
  font-size: 18px;
  color: var(--text-muted);
  max-width: 560px;
  margin: 0 auto;
  line-height: 1.6;
}

.hero p.hero-founder {
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin: 0 auto 20px;
}

.hero-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  margin-top: 28px;
  flex-wrap: wrap;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 12px 22px;
  border-radius: 10px;
  font-weight: 700;
  font-size: 14px;
  text-decoration: none;
  border: 1.5px solid transparent;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
}

.btn-primary:hover {
  background: var(--accent-alt);
}

.btn-secondary {
  background: transparent;
  color: var(--text);
  border-color: var(--border);
}

.btn-secondary:hover {
  border-color: var(--accent);
}

/* ---------- Section headings ---------- */
.section-title {
  font-size: 26px;
  margin: 0 0 8px;
}

.section-subtitle {
  color: var(--text-muted);
  margin: 0 0 32px;
  max-width: 640px;
}

/* ---------- Twitch embed ---------- */
.twitch-embed-wrap {
  position: relative;
  width: 100%;
  max-width: 854px;
  margin: 0 auto;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--surface);
}

.twitch-embed-wrap iframe {
  width: 100%;
  height: 100%;
  border: none;
}

/* ---------- Social grid (home page) ---------- */
.social-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 16px;
}

.social-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 12px;
  text-decoration: none;
  transition: border-color 0.15s ease, transform 0.15s ease;
}

.social-card:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
}

.social-card img {
  width: 48px;
  height: 48px;
  border-radius: 10px;
}

.social-card span {
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
}

/* ---------- About page ---------- */
.about-layout {
  display: flex;
  gap: 32px;
  align-items: flex-start;
  flex-wrap: wrap;
}

.about-photo {
  width: 180px;
  height: auto;
  flex-shrink: 0;
}

.about-text {
  flex: 1;
  min-width: 260px;
}

.about-text p {
  line-height: 1.7;
  color: var(--text-muted);
  font-size: 15px;
}

/* ---------- Donate card ---------- */
.donate-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  max-width: 560px;
  margin-top: 16px;
}

.donate-card p {
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.6;
  margin: 0 0 16px;
}
