/* Quetoo Dark Theme — inspired by in-game UI */
/* Font: Coda | Accent: teal #4a8a9a | BG: #0a0f12 */

:root {
  --bg: #0a0f12;
  --bg-panel: rgba(20, 35, 42, 0.85);
  --bg-card: rgba(30, 50, 60, 0.6);
  --accent: #4a8a9a;
  --accent-light: #5fb0c4;
  --accent-dark: #3a7080;
  --text: #e0e6ea;
  --text-muted: #8a9aa4;
  --border: rgba(74, 138, 154, 0.25);
  --shadow: rgba(0, 0, 0, 0.5);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Coda', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
}

.container { max-width: 1200px; margin: 0 auto; padding: 0 1.5rem; }

a { color: var(--accent-light); text-decoration: none; transition: color 0.2s; }
a:hover { color: #fff; }

h1, h2, h3, h4 { font-weight: 800; letter-spacing: -0.02em; }
h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.2rem); color: var(--accent-light); margin-bottom: 1.5rem; }
h3 { font-size: 1.2rem; margin-bottom: 0.5rem; }

/* ── Navigation ── */

.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(10, 15, 18, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

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

.logo img { display: block; }

.nav-links {
  display: flex;
  list-style: none;
  gap: 0.25rem;
  align-items: center;
}

.nav-links a {
  color: var(--text-muted);
  padding: 0.5rem 1rem;
  border-radius: 6px;
  font-size: 0.95rem;
  transition: color 0.2s, background 0.2s;
}

.nav-links a:hover, .nav-links a.active {
  color: #fff;
  background: var(--bg-card);
}

.btn-discord {
  background: var(--accent) !important;
  color: #fff !important;
  font-weight: 800;
  border-radius: 6px;
}

.btn-discord:hover { background: var(--accent-light) !important; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  transition: transform 0.2s;
}

/* ── Buttons ── */

.btn {
  display: inline-block;
  padding: 0.75rem 2rem;
  border-radius: 8px;
  font-family: 'Coda', sans-serif;
  font-weight: 800;
  font-size: 1rem;
  transition: all 0.2s;
  cursor: pointer;
  border: none;
}

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

.btn-primary:hover {
  background: var(--accent-light);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px var(--shadow);
}

.btn-secondary {
  background: transparent;
  color: var(--accent-light);
  border: 2px solid var(--accent);
}

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

/* ── Hero ── */

.hero {
  position: relative;
  min-height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: url('/images/hero.jpg') center/cover no-repeat;
  margin-top: 0;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(10, 15, 18, 0.4) 0%,
    rgba(10, 15, 18, 0.7) 60%,
    rgba(10, 15, 18, 1) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 1;
  padding: 2rem;
}

.hero-content h1 {
  font-size: clamp(3rem, 8vw, 6rem);
  text-shadow: 0 4px 24px var(--shadow);
  margin-bottom: 0.5rem;
}

.tagline {
  font-size: clamp(1.1rem, 2.5vw, 1.5rem);
  color: var(--accent-light);
  font-weight: 800;
  margin-bottom: 0.25rem;
}

.subtitle {
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: var(--text-muted);
  margin-bottom: 2rem;
}

.hero-actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* ── Features ── */

.features {
  padding: 6rem 0;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 2rem;
  transition: border-color 0.2s, transform 0.2s;
}

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

.feature-card h3 { color: var(--accent-light); }
.feature-card p { color: var(--text-muted); font-size: 0.95rem; }

/* ── Gallery ── */

.gallery-preview { padding: 0 0 6rem; }

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1rem;
}

.gallery-grid.preview { grid-template-columns: repeat(3, 1fr); }

.gallery-grid.full { grid-template-columns: repeat(auto-fill, minmax(360px, 1fr)); }

.gallery-item {
  display: block;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--border);
  transition: border-color 0.2s, transform 0.2s;
}

.gallery-item:hover {
  border-color: var(--accent);
  transform: scale(1.02);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.center { text-align: center; margin-top: 2rem; }

/* ── Page Content ── */

.page-content {
  padding: 8rem 1.5rem 6rem;
  max-width: 900px;
  margin: 0 auto;
}

.page-content h1 {
  color: var(--accent-light);
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border);
}

.page-content h2 {
  font-size: 1.5rem;
  margin-top: 3rem;
  margin-bottom: 1rem;
}

.page-content p { margin-bottom: 1rem; color: var(--text-muted); }
.page-content p strong { color: var(--text); }
.page-content ul, .page-content ol { margin: 0 0 1.5rem 1.5rem; color: var(--text-muted); }
.page-content li { margin-bottom: 0.5rem; }
.page-content code {
  background: var(--bg-card);
  padding: 0.15em 0.4em;
  border-radius: 4px;
  font-size: 0.9em;
}

.page-content pre {
  background: var(--bg-panel);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1.5rem;
  overflow-x: auto;
  margin-bottom: 1.5rem;
}

.page-content pre code {
  background: none;
  padding: 0;
}

/* ── Downloads ── */

.download-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin: 2rem 0;
}

.download-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 2.5rem 2rem;
  text-align: center;
  transition: border-color 0.2s, transform 0.2s;
}

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

.download-card .platform-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.download-card h3 { color: var(--accent-light); margin-bottom: 0.5rem; }
.download-card p { color: var(--text-muted); font-size: 0.9rem; margin-bottom: 1.5rem; }

/* ── Community ── */

.community-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
  margin: 2rem 0;
}

.community-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 2.5rem 2rem;
  text-align: center;
  transition: border-color 0.2s;
}

.community-card:hover { border-color: var(--accent); }
.community-card h3 { color: var(--accent-light); margin-bottom: 0.5rem; }
.community-card p { color: var(--text-muted); font-size: 0.95rem; margin-bottom: 1.5rem; }

/* ── Screenshots page (full) ── */

.screenshots-page { padding: 8rem 0 6rem; }

.screenshots-page h1 {
  color: var(--accent-light);
  padding: 0 1.5rem;
  max-width: 1200px;
  margin: 0 auto 2rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border);
}

.screenshots-page .gallery-grid {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ── Lightbox ── */

.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(0, 0, 0, 0.92);
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.lightbox.active { display: flex; }

.lightbox img {
  max-width: 92vw;
  max-height: 92vh;
  border-radius: 8px;
  box-shadow: 0 8px 48px rgba(0, 0, 0, 0.6);
}

.lightbox-close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  color: #fff;
  font-size: 2rem;
  cursor: pointer;
  background: none;
  border: none;
  font-family: 'Coda', sans-serif;
  opacity: 0.7;
  transition: opacity 0.2s;
}

.lightbox-close:hover { opacity: 1; }

/* ── Footer ── */

.site-footer {
  border-top: 1px solid var(--border);
  padding: 3rem 0 0;
  margin-top: 2rem;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 3rem;
}

.footer-brand p { color: var(--text-muted); margin-top: 0.75rem; font-size: 0.9rem; }
.footer-brand img { opacity: 0.8; }

.footer-links h4 {
  color: var(--accent);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 1rem;
}

.footer-links ul { list-style: none; }
.footer-links li { margin-bottom: 0.5rem; }
.footer-links a { color: var(--text-muted); font-size: 0.9rem; }
.footer-links a:hover { color: var(--accent-light); }

.footer-bottom {
  max-width: 1200px;
  margin: 2rem auto 0;
  padding: 1.5rem;
  border-top: 1px solid var(--border);
  text-align: center;
}

.footer-bottom p { color: var(--text-muted); font-size: 0.85rem; }

/* ── Responsive ── */

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

  .nav-links {
    display: none;
    position: absolute;
    top: 64px; left: 0; right: 0;
    flex-direction: column;
    background: rgba(10, 15, 18, 0.98);
    border-bottom: 1px solid var(--border);
    padding: 1rem;
    gap: 0;
  }

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

  .nav-links li { width: 100%; }
  .nav-links a { display: block; padding: 0.75rem 1rem; }

  .gallery-grid.preview { grid-template-columns: repeat(2, 1fr); }
  .gallery-grid.full { grid-template-columns: repeat(2, 1fr); }

  .footer-container { grid-template-columns: 1fr; gap: 2rem; }
}

@media (max-width: 480px) {
  .gallery-grid.preview { grid-template-columns: 1fr; }
  .gallery-grid.full { grid-template-columns: 1fr; }
}
