/*
Theme Name: ELG Bare
Theme URI: https://elitelogicgames.com
Author: Elite Logic Games
Version: 2.2.0
Text Domain: elg-bare
*/

/* --- Tokens --- */
:root {
  --elg-bg: #FAFAF8;
  --elg-ink: #1A1A1A;
  --elg-muted: #7A7A76;
  --elg-border: #CDCDC6;
  --elg-font: "DM Sans", ui-sans-serif, system-ui, -apple-system, sans-serif;
  --elg-font-display: "Fraunces", "Georgia", serif;
}

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

html, body {
  height: 100%;
  margin: 0;
}

body {
  color: var(--elg-ink);
  background: var(--elg-bg);
  font-family: var(--elg-font);
  -webkit-font-smoothing: antialiased;
}

body.admin-bar .elg-shell {
  min-height: calc(100vh - 32px);
}

/* --- Shell --- */
.elg-shell {
  max-width: 1140px;
  margin: 0 auto;
  padding: 20px 20px 60px;
}

/* --- Brand header with logo --- */
.elg-brand {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 0 18px;
  border-bottom: 2px solid var(--elg-ink);
  margin-bottom: 24px;
}

.elg-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--elg-ink);
}

.elg-logo-icon {
  display: flex;
}

.elg-logo-text {
  font-family: var(--elg-font-display);
  font-weight: 700;
  font-size: 20px;
  letter-spacing: -0.3px;
}

.elg-logo-text em {
  font-style: italic;
  font-weight: 300;
}

/* User nav */
.elg-user-nav {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 13px;
  font-weight: 600;
}
.elg-user-greeting {
  color: var(--elg-muted);
  font-weight: 500;
}
.elg-nav-link {
  color: var(--elg-muted);
  text-decoration: none;
  transition: color 150ms;
}
.elg-nav-link:hover {
  color: var(--elg-ink);
}
.elg-nav-btn {
  display: inline-block;
  padding: 6px 14px;
  background: var(--elg-ink);
  color: #fff;
  border-radius: 6px;
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  transition: opacity 150ms;
}
.elg-nav-btn:hover {
  opacity: 0.85;
}

/* --- Content --- */
.elg-content {
  margin: 0 auto;
}

.elg-content > *:first-child { margin-top: 0; }
.elg-content > *:last-child { margin-bottom: 0; }

.entry-title { display: none; }
.wp-block-spacer { display: none; }

/* --- Game page template --- */
.elg-game-page {
  max-width: 1100px;
  margin: 0 auto;
}

/* --- Mobile theme --- */
@media (max-width: 600px) {
  .elg-shell { padding: 10px 0 0; }
  .elg-brand { padding: 0 12px 10px; margin-bottom: 10px; border-bottom-width: 1.5px; }
  .elg-logo-text { font-size: 16px; }
  .elg-logo-icon svg { width: 22px; height: 22px; }
  .elg-user-nav { gap: 8px; font-size: 12px; }
  .elg-user-greeting { display: none; }
  .elg-nav-btn { padding: 5px 10px; font-size: 12px; }
  body.admin-bar .elg-shell { min-height: calc(100vh - 46px); }
}
