/* Ocean Games Portal — Styles */

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

:root {
  --bg-primary: #0a0f1e;
  --bg-secondary: #0d1a2e;
  --bg-card: #112240;
  --accent: #00c8c8;
  --accent-hover: #00e5e5;
  --text-primary: #e8f4f8;
  --text-secondary: #8ab4c8;
  --border: rgba(0, 200, 200, 0.2);
  --shadow: 0 4px 24px rgba(0, 0, 0, 0.5);
}

html {
  font-size: 16px;
}

body {
  background-color: var(--bg-primary);
  color: var(--text-primary);
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ── Header ─────────────────────────────────────────────────── */

.site-header {
  background: linear-gradient(180deg, #060b18 0%, var(--bg-secondary) 100%);
  border-bottom: 1px solid var(--border);
  padding: 2.5rem 1.5rem 2rem;
  text-align: center;
}

.site-header h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 700;
  letter-spacing: 0.03em;
  color: var(--accent);
  text-shadow: 0 0 24px rgba(0, 200, 200, 0.4);
}

.site-header .tagline {
  margin-top: 0.5rem;
  color: var(--text-secondary);
  font-size: 1.1rem;
}

/* ── Main content ────────────────────────────────────────────── */

.site-main {
  flex: 1;
  max-width: 960px;
  width: 100%;
  margin: 0 auto;
  padding: 3rem 1.5rem 2rem;
}

/* ── Game grid ───────────────────────────────────────────────── */

.games-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.75rem;
}

.game-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 2rem 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  box-shadow: var(--shadow);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.game-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 32px rgba(0, 200, 200, 0.18);
  border-color: var(--accent);
}

.game-card h2 {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--accent);
}

.game-card p {
  color: var(--text-secondary);
  font-size: 0.97rem;
  flex: 1;
}

.btn-play {
  display: inline-block;
  align-self: flex-start;
  background: var(--accent);
  color: var(--bg-primary);
  font-weight: 700;
  font-size: 0.95rem;
  padding: 0.6rem 1.6rem;
  border-radius: 6px;
  text-decoration: none;
  letter-spacing: 0.04em;
  transition: background 0.2s ease, box-shadow 0.2s ease;
}

.btn-play:hover {
  background: var(--accent-hover);
  box-shadow: 0 0 16px rgba(0, 200, 200, 0.45);
}

/* ── Ad slot ─────────────────────────────────────────────────── */

#ad-slot {
  display: block;
  width: 100%;
  margin-top: 2.5rem;
}

/* ── Footer ──────────────────────────────────────────────────── */

.site-footer {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border);
  text-align: center;
  padding: 1.25rem 1.5rem;
  color: var(--text-secondary);
  font-size: 0.875rem;
}

.site-footer a {
  color: var(--accent);
  text-decoration: none;
}

.site-footer a:hover {
  text-decoration: underline;
}

/* ── Game placeholder pages ──────────────────────────────────── */

.placeholder-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem;
  gap: 1.25rem;
}

.placeholder-page h1 {
  font-size: 2.5rem;
  color: var(--accent);
}

.placeholder-page p {
  color: var(--text-secondary);
  max-width: 520px;
  font-size: 1rem;
}

.placeholder-page a {
  color: var(--accent);
}

.back-link {
  margin-top: 0.5rem;
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.95rem;
}

.back-link:hover {
  color: var(--accent);
}

/* ── Responsive ──────────────────────────────────────────────── */

@media (max-width: 600px) {
  .site-header {
    padding: 1.75rem 1rem 1.5rem;
  }

  .site-main {
    padding: 2rem 1rem 1.5rem;
  }

  .games-grid {
    grid-template-columns: 1fr;
  }
}
