/*
Theme Name: VrooStudios
Theme URI: https://vroostudios.com
Author: VrooStudios Team
Description: Neon Terminal theme for VrooStudios - gaming information site with dark mode and ES/EN translation support.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: vroostudios
Tags: gaming, dark-mode, custom-colors, custom-menu, featured-images, translation-ready
*/

/* ── CSS VARIABLES (LIGHT) ─────────────────────────── */
:root {
  --bg:     #f5f6f7;
  --sl:     #ffffff;
  --slo:    #eff1f2;
  --sc:     #e6e8ea;
  --shi:    #e0e3e4;
  --sho:    #dadddf;
  --ons:    #2c2f30;
  --onsv:   #595c5d;
  --inv:    #0c0f10;
  --brd:    rgba(171,173,174,0.25);
  --hdr:    rgba(255,255,255,0.92);
  --pr:     #006571;
  --prc:    #00e3fd;
  --sec:    #a400a4;
  --ter:    #665d00;
  --terc:   #fde800;
  --err:    #b31b25;
  --grad:   linear-gradient(135deg, #006571, #00e3fd);
  --radius: 0.5rem;
  --radius-lg: 0.75rem;
}

/* ── DARK MODE ─────────────────────────────────────── */
html.dark-mode {
  --bg:   #0d1117;
  --sl:   #161b22;
  --slo:  #1c2128;
  --sc:   #21262d;
  --shi:  #252d38;
  --sho:  #2d3748;
  --ons:  #c9d1d9;
  --onsv: #8b949e;
  --inv:  #c9d1d9;
  --brd:  rgba(48,54,61,0.8);
  --hdr:  rgba(13,17,23,0.95);
}

/* ── RESET & BASE ──────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
  background: var(--bg);
  color: var(--ons);
  font-family: 'Space Grotesk', sans-serif;
  font-size: 15px;
  line-height: 1.6;
  transition: background 0.25s, color 0.25s;
  overflow-x: hidden;
}

a { color: var(--pr); text-decoration: none; }
a:hover { opacity: 0.8; }
img { max-width: 100%; height: auto; display: block; }

/* ── TYPOGRAPHY ────────────────────────────────────── */
.font-headline, h1, h2, h3, h4, h5, h6 {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 800;
  line-height: 1.1;
}
.font-label { font-family: 'Space Grotesk', monospace; }

/* ── LAYOUT ────────────────────────────────────────── */
.site-wrapper { display: flex; flex-direction: column; min-height: 100vh; }

.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: var(--hdr);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--brd);
  box-shadow: 0 1px 12px rgba(0,101,113,0.06);
  transition: background 0.25s;
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  padding: 0.75rem 1.5rem; max-width: 1440px; margin: 0 auto;
}

.site-logo {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 900; font-size: 1.2rem;
  text-transform: uppercase; letter-spacing: -0.04em;
  background: var(--grad); -webkit-background-clip: text;
  -webkit-text-fill-color: transparent; background-clip: text;
  text-decoration: none; cursor: pointer;
}

/* ── MAIN NAV ──────────────────────────────────────── */
.main-nav { display: flex; gap: 1.5rem; align-items: center; }
.main-nav a {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 800; font-size: 0.8rem;
  text-transform: uppercase; letter-spacing: -0.03em;
  color: var(--onsv); text-decoration: none;
  padding-bottom: 2px; border-bottom: 2px solid transparent;
  transition: color 0.2s, border-color 0.2s;
}
.main-nav a:hover, .main-nav a.current-menu-item {
  color: var(--pr); border-bottom-color: var(--pr); opacity: 1;
}

/* ── HEADER CONTROLS ───────────────────────────────── */
.header-controls { display: flex; align-items: center; gap: 0.5rem; }

.search-wrap { position: relative; }
.search-wrap input {
  background: var(--sc); border: none; border-radius: var(--radius);
  padding: 0.4rem 0.75rem 0.4rem 2rem;
  font-size: 0.7rem; font-family: 'Space Grotesk', sans-serif;
  color: var(--ons); width: 160px; transition: width 0.2s;
}
.search-wrap input:focus { outline: 2px solid rgba(0,101,113,0.4); width: 200px; }
.search-wrap input::placeholder { color: var(--onsv); }
.search-wrap .search-icon {
  position: absolute; left: 0.5rem; top: 50%; transform: translateY(-50%);
  color: var(--pr); font-size: 0.85rem; pointer-events: none;
}

/* Lang switcher */
.lang-switcher {
  display: flex; background: var(--sc); border-radius: 9999px; padding: 2px; gap: 1px;
}
.lang-btn {
  padding: 2px 10px; border-radius: 9999px; font-size: 0.65rem;
  font-family: 'Space Grotesk', sans-serif; font-weight: 700;
  cursor: pointer; border: none; background: transparent;
  color: var(--onsv); transition: all 0.2s;
}
.lang-btn.active {
  background: var(--sl); color: var(--pr);
  box-shadow: 0 1px 4px rgba(0,0,0,0.15);
}

/* Dark mode toggle */
.dark-toggle {
  background: transparent; border: none; cursor: pointer;
  padding: 0.4rem; border-radius: var(--radius);
  color: var(--pr); font-size: 1.1rem; display: flex;
  align-items: center; transition: background 0.2s;
}
.dark-toggle:hover { background: rgba(0,101,113,0.1); }

/* Auth btn */
.auth-btn {
  display: flex; align-items: center; gap: 0.4rem;
  padding: 0.3rem 0.75rem; border-radius: var(--radius);
  background: transparent; border: none; cursor: pointer;
  font-family: 'Space Grotesk', sans-serif; font-size: 0.7rem;
  color: var(--onsv); transition: background 0.2s;
}
.auth-btn:hover { background: var(--sc); }
.auth-avatar {
  width: 26px; height: 26px; border-radius: var(--radius);
  background: var(--pr); color: #d8f8ff;
  font-weight: 900; font-size: 0.7rem;
  display: flex; align-items: center; justify-content: center;
  font-family: 'Plus Jakarta Sans', sans-serif;
}

/* ── SIDEBAR ───────────────────────────────────────── */
.site-sidebar {
  position: fixed; left: 0; top: 56px; bottom: 0; width: 200px;
  background: var(--slo); border-right: 1px dashed var(--brd);
  display: flex; flex-direction: column; z-index: 50;
  overflow-y: auto; transition: background 0.25s;
}
.sidebar-profile {
  padding: 1rem; border-bottom: 1px solid var(--brd);
  display: flex; align-items: center; gap: 0.65rem;
}
.sidebar-avatar {
  width: 36px; height: 36px; border-radius: var(--radius);
  background: var(--pr); color: #d8f8ff;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 900; font-size: 0.75rem;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.sidebar-name { font-family: 'Plus Jakarta Sans', sans-serif; font-weight: 700; font-size: 0.78rem; color: var(--ons); }
.sidebar-status { font-size: 0.6rem; color: var(--pr); font-weight: 700; letter-spacing: 0.15em; }

.sidebar-nav { flex: 1; padding: 0.75rem 0.5rem; }
.sidebar-nav a {
  display: flex; align-items: center; gap: 0.6rem;
  padding: 0.55rem 0.75rem; border-radius: var(--radius);
  color: var(--onsv); font-size: 0.7rem; font-family: 'Space Grotesk', sans-serif;
  font-weight: 600; letter-spacing: 0.1em; text-decoration: none;
  transition: all 0.2s; margin-bottom: 2px;
}
.sidebar-nav a:hover, .sidebar-nav a.current-page {
  background: var(--sc); color: var(--ons); opacity: 1;
}
.sidebar-nav a.current-page {
  background: var(--sc); color: var(--pr) !important;
  border-left: 3px solid var(--pr); font-weight: 700;
}
.sidebar-nav .material-icons { font-size: 1rem; }

.sidebar-footer { padding: 0.75rem; border-top: 1px solid var(--brd); }
.btn-join {
  width: 100%; background: var(--grad); color: white;
  font-family: 'Plus Jakarta Sans', sans-serif; font-weight: 700;
  font-size: 0.7rem; padding: 0.6rem; border-radius: var(--radius);
  border: none; cursor: pointer; display: block; text-align: center;
  text-decoration: none; margin-bottom: 0.5rem; transition: opacity 0.2s;
}
.btn-join:hover { opacity: 0.9; color: white; }

.sidebar-utils {
  display: flex; justify-content: space-between; align-items: center;
  padding: 0.25rem 0.25rem 0;
}
.sidebar-util-btn {
  display: flex; align-items: center; gap: 3px;
  font-size: 0.65rem; color: var(--onsv); background: none;
  border: none; cursor: pointer; font-family: 'Space Grotesk', sans-serif;
  transition: color 0.2s; padding: 0;
}
.sidebar-util-btn:hover { color: var(--ons); }
.sidebar-util-btn.danger:hover { color: var(--err); }
.sidebar-util-btn .material-icons { font-size: 0.85rem; }

/* ── CONTENT AREA ──────────────────────────────────── */
.site-content {
  margin-top: 56px;
  padding-left: 200px; /* sidebar width */
  min-height: calc(100vh - 56px);
}

/* ── CARDS & SURFACE ───────────────────────────────── */
.card {
  background: var(--sl); border-radius: var(--radius-lg);
  border: 1px solid var(--brd); transition: background 0.25s;
}
.card-inner { background: var(--slo); border-radius: var(--radius-lg); }
.surface { background: var(--sc); }

/* ── BUTTONS ───────────────────────────────────────── */
.btn-primary {
  background: var(--grad); color: white;
  font-family: 'Plus Jakarta Sans', sans-serif; font-weight: 700;
  padding: 0.65rem 1.5rem; border-radius: var(--radius-lg);
  border: none; cursor: pointer; font-size: 0.8rem;
  display: inline-flex; align-items: center; gap: 0.4rem;
  transition: opacity 0.2s, transform 0.2s; text-decoration: none;
}
.btn-primary:hover { opacity: 0.9; transform: scale(1.02); color: white; }

.btn-ghost {
  background: transparent; border: 1px solid var(--brd);
  color: var(--ons); font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 700; padding: 0.65rem 1.5rem;
  border-radius: var(--radius-lg); cursor: pointer; font-size: 0.8rem;
  display: inline-flex; align-items: center; gap: 0.4rem;
  transition: background 0.2s; text-decoration: none;
}
.btn-ghost:hover { background: var(--sc); color: var(--ons); }

/* ── ASCII ELEMENTS ────────────────────────────────── */
.ascii-divider {
  font-family: 'Space Grotesk', monospace; letter-spacing: 0.2em;
  color: var(--onsv); font-size: 0.65rem; user-select: none;
  opacity: 0.5;
}
.ascii-tag { font-size: 0.6rem; color: var(--onsv); opacity: 0.4; }

/* ── TAGS / BADGES ─────────────────────────────────── */
.badge {
  display: inline-block; padding: 2px 8px; border-radius: var(--radius);
  font-size: 0.6rem; font-weight: 700; font-family: 'Space Grotesk', sans-serif;
  letter-spacing: 0.1em; text-transform: uppercase;
}
.badge-primary   { background: rgba(0,101,113,0.12); color: var(--pr); }
.badge-secondary { background: rgba(164,0,164,0.12); color: var(--sec); }
.badge-major     { background: #fde800; color: #665d00; }
.badge-hotfix    { background: var(--sho); color: var(--onsv); }
.badge-stable    { background: rgba(0,227,253,0.15); color: var(--pr); }
.badge-success   { background: rgba(0,101,113,0.12); color: var(--pr); }

/* ── FORMS ─────────────────────────────────────────── */
.form-group { margin-bottom: 1rem; }
.form-label {
  display: block; font-size: 0.6rem; font-family: 'Space Grotesk', sans-serif;
  font-weight: 700; text-transform: uppercase; letter-spacing: 0.15em;
  color: var(--onsv); margin-bottom: 0.35rem;
}
.form-control {
  width: 100%; background: var(--sc); border: none;
  border-radius: var(--radius); padding: 0.6rem 0.75rem 0.6rem 1.75rem;
  font-size: 0.8rem; font-family: 'Space Grotesk', sans-serif;
  color: var(--ons); transition: outline 0.2s;
}
.form-control:focus { outline: 2px solid rgba(0,101,113,0.45); }
.form-control::placeholder { color: var(--onsv); }
.form-prefix {
  position: absolute; left: 0.6rem; top: 50%; transform: translateY(-50%);
  color: var(--pr); font-weight: 700; font-size: 0.8rem; pointer-events: none;
}
.form-wrap { position: relative; }

/* ── MODALS ────────────────────────────────────────── */
.modal-overlay {
  display: none; position: fixed; inset: 0; z-index: 200;
  background: rgba(0,0,0,0.6); backdrop-filter: blur(8px);
  align-items: center; justify-content: center;
}
.modal-overlay.open { display: flex; }
.modal-box {
  background: var(--sl); border-radius: var(--radius-lg);
  border: 1px solid var(--brd); padding: 1.75rem;
  width: 100%; max-width: 400px; margin: 1rem;
  max-height: 90vh; overflow-y: auto;
  box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}

/* ── HUD ───────────────────────────────────────────── */
.hud {
  position: fixed; bottom: 1.25rem; right: 1.25rem; z-index: 30;
  background: var(--sl); border: 1px solid var(--brd);
  border-radius: var(--radius); padding: 0.65rem 0.85rem;
  pointer-events: none;
}
.hud-row {
  display: flex; justify-content: space-between; gap: 1.25rem;
  font-size: 0.6rem; font-family: 'Space Grotesk', sans-serif;
  margin-bottom: 2px;
}
.hud-row:last-child { margin-bottom: 0; }
.hud-key { color: var(--onsv); }
.hud-val { color: var(--pr); }

/* ── AMBIENT BLOBS ─────────────────────────────────── */
.ambient {
  position: fixed; inset: 0; z-index: -1; pointer-events: none; overflow: hidden;
}
.blob {
  position: absolute; border-radius: 50%;
  filter: blur(120px); opacity: 0.07;
}
.blob-1 { width: 320px; height: 320px; background: var(--pr); top: 20%; left: -80px; }
.blob-2 { width: 320px; height: 320px; background: var(--sec); bottom: 20%; right: -80px; }

/* ── ANIMATIONS ────────────────────────────────────── */
.fade-in { animation: fadeIn 0.22s ease-out; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* ── ADMIN NOTICE ──────────────────────────────────── */
.admin-bar-notice {
  background: var(--terc); color: var(--ter);
  font-family: 'Space Grotesk', sans-serif; font-size: 0.65rem;
  font-weight: 700; padding: 0.25rem 1rem; text-align: center;
}

/* ── GLITCH ────────────────────────────────────────── */
.glitch { position: relative; }
.glitch::after {
  content: attr(data-text); position: absolute; left: 2px; top: 0;
  color: var(--sec); opacity: 0.25;
  clip-path: inset(40% 0 61% 0); animation: glitch 4s infinite;
}
@keyframes glitch {
  0%,88%,100% { clip-path: inset(40% 0 61% 0); }
  91% { clip-path: inset(5% 0 85% 0); }
  95% { clip-path: inset(75% 0 5% 0); }
}

/* ── ADMIN PANEL (frontend) ────────────────────────── */
.admin-tabs { display: flex; gap: 2px; background: var(--sc); border-radius: var(--radius-lg); padding: 3px; width: fit-content; margin-bottom: 1.5rem; }
.admin-tab { padding: 0.4rem 1rem; border-radius: var(--radius); font-size: 0.7rem; font-family: 'Space Grotesk', sans-serif; font-weight: 600; cursor: pointer; border: none; background: transparent; color: var(--onsv); transition: all 0.2s; }
.admin-tab.active { background: var(--sl); color: var(--ons); font-weight: 700; box-shadow: 0 1px 4px rgba(0,0,0,0.12); }

.admin-table { width: 100%; border-collapse: collapse; }
.admin-table th { font-size: 0.6rem; text-transform: uppercase; letter-spacing: 0.15em; color: var(--onsv); font-weight: 700; padding: 0.5rem 0.75rem; text-align: left; border-bottom: 1px solid var(--brd); }
.admin-table td { padding: 0.75rem; border-bottom: 1px solid var(--brd); font-size: 0.8rem; vertical-align: middle; }
.admin-table tr:hover td { background: var(--slo); }

/* ── RESPONSIVE ────────────────────────────────────── */
@media (max-width: 1024px) {
  .site-sidebar { display: none; }
  .site-content { padding-left: 0; }
  .main-nav { display: none; }
}
@media (max-width: 640px) {
  .search-wrap { display: none; }
  .header-inner { padding: 0.65rem 1rem; }
}

/* ── SCROLLBAR ─────────────────────────────────────── */
::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: var(--slo); }
::-webkit-scrollbar-thumb { background: var(--pr); border-radius: 2px; }

/* ── WORDPRESS DEFAULT CLASSES ─────────────────────── */
.aligncenter { display: block; margin: 1rem auto; }
.alignleft { float: left; margin-right: 1rem; }
.alignright { float: right; margin-left: 1rem; }
.wp-caption { max-width: 100%; }
.sticky { /* WP sticky post */ }
.screen-reader-text {
  clip: rect(1px,1px,1px,1px); position: absolute;
  width: 1px; height: 1px; overflow: hidden;
}
