/*
Theme Name: Grim Games Live
Theme URI: https://grimgames.infinitygains.tv
Author: Grim Games Live
Description: Dark theme for GrimGamesLive — GRiM & the GRiMLINs. Twitch live status, schedule, and Grimbot integration.
Version: 1.0.3
Requires at least: 6.0
Requires PHP: 8.0
Text Domain: grim-games-live
*/

:root {
  --grim-bg: #000000;
  --grim-surface: #141414;
  --grim-surface-alt: #1a1a1a;
  --grim-purple: #9d4edd;
  --grim-purple-muted: #6b2d9e;
  --grim-green: #39ff14;
  --grim-green-muted: #22c55e;
  --grim-text: #e8e8e8;
  --grim-text-muted: #888888;
  --grim-border: #2a2a2a;
  --grim-max: 1100px;
}

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

body {
  margin: 0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, sans-serif;
  background: var(--grim-bg);
  color: var(--grim-text);
  line-height: 1.6;
}

a {
  color: var(--grim-purple);
  text-decoration: none;
}

a:hover {
  color: var(--grim-green);
}

.site-header {
  border-bottom: 1px solid var(--grim-border);
  background: var(--grim-surface);
}

.site-header__inner {
  max-width: var(--grim-max);
  margin: 0 auto;
  padding: 1rem 1.25rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.site-brand {
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.site-brand span {
  color: var(--grim-green);
}

.site-nav a.grimbot-nav-discord,
.site-nav .grimbot-nav-discord > a {
  color: #5865f2;
  font-weight: 700;
}

.site-nav a.grimbot-nav-login,
.site-nav .grimbot-nav-login > a {
  font-weight: 700;
}

.site-nav a.grimbot-nav-register,
.site-nav .grimbot-nav-register > a {
  color: var(--grim-green);
  font-weight: 700;
}

.site-nav a.grimbot-nav-my-stats,
.site-nav .grimbot-nav-my-stats > a {
  color: var(--grim-green);
  font-weight: 700;
}

.site-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.site-nav a {
  color: var(--grim-text);
  font-weight: 600;
}

.site-nav a:hover {
  color: var(--grim-green);
}

.site-main {
  max-width: var(--grim-max);
  margin: 0 auto;
  padding: 1.5rem 1.25rem 3rem;
}

.site-footer {
  border-top: 1px solid var(--grim-border);
  padding: 1.5rem 1.25rem;
  text-align: center;
  color: var(--grim-text-muted);
  font-size: 0.9rem;
}

.hero {
  padding: 2rem 0 1.5rem;
}

.hero__tagline {
  color: var(--grim-text-muted);
  font-size: 1.1rem;
  margin: 0.5rem 0 1.25rem;
}

.live-banner {
  border: 1px solid var(--grim-border);
  border-radius: 0.75rem;
  padding: 1.25rem;
  background: var(--grim-surface);
  margin-bottom: 1.5rem;
}

.live-banner--live {
  border-color: var(--grim-green-muted);
  box-shadow: 0 0 20px rgba(57, 255, 20, 0.08);
}

.live-banner__status {
  display: inline-block;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 0.85rem;
}

.live-banner--live .live-banner__status {
  color: var(--grim-green);
}

.live-banner--offline .live-banner__status {
  color: var(--grim-text-muted);
}

.live-banner__title {
  font-size: 1.25rem;
  margin: 0.5rem 0 0.25rem;
  color: var(--grim-purple);
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1rem;
  margin: 1.5rem 0;
}

.card {
  background: var(--grim-surface);
  border: 1px solid var(--grim-border);
  border-radius: 0.75rem;
  padding: 1.25rem;
}

.card h3 {
  margin: 0 0 0.5rem;
  color: var(--grim-purple);
}

.btn {
  display: inline-block;
  padding: 0.55rem 1.1rem;
  border-radius: 0.5rem;
  background: var(--grim-purple);
  color: #fff;
  font-weight: 700;
  border: none;
  cursor: pointer;
}

.btn:hover {
  background: var(--grim-purple-muted);
  color: #fff;
}

.btn--green {
  background: var(--grim-green-muted);
  color: #000;
}

.btn--green:hover {
  background: var(--grim-green);
  color: #000;
}

.clips-list,
.schedule-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.clips-list li,
.schedule-list li {
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--grim-border);
}

.clips-list a {
  color: var(--grim-green);
  font-weight: 600;
}

.page-title {
  color: var(--grim-purple);
  margin-top: 0;
}

.entry-content {
  max-width: 70ch;
}

.entry-meta {
  color: var(--grim-text-muted);
  font-size: 0.9rem;
}

.grimbot-register-note {
  color: var(--grim-text-muted);
  margin-bottom: 1rem;
}

.text-muted,
.grimbot-muted {
  color: var(--grim-text-muted);
}
