/*
Theme Name: Goodhart Gaming
Theme URI: https://goodhartgaming.com
Author: Goodhart Gaming
Description: Custom dark gaming theme for Goodhart Gaming with Minecraft and GameVox server cards, gaming news, downloads, and community links.
Version: 1.5.0
Requires at least: 6.0
Requires PHP: 8.0
Text Domain: goodhart-gaming
*/

:root {
  --gg-bg: #080808;
  --gg-panel: #121212;
  --gg-panel-2: #191919;
  --gg-red: #d51f2a;
  --gg-red-bright: #ff3340;
  --gg-gold: #d5a24b;
  --gg-text: #f3f3f3;
  --gg-muted: #a8a8a8;
  --gg-border: #2c2c2c;
  --gg-success: #61d36b;
  --gg-shadow: 0 16px 45px rgba(0,0,0,.35);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background:
    radial-gradient(circle at 15% 10%, rgba(213,31,42,.12), transparent 30%),
    radial-gradient(circle at 85% 15%, rgba(213,162,75,.07), transparent 28%),
    var(--gg-bg);
  color: var(--gg-text);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
}
a { color: inherit; }
.gg-wrap { width: min(1180px, calc(100% - 32px)); margin-inline: auto; }
.gg-site-header {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(14px);
  background: rgba(8,8,8,.88);
  border-bottom: 1px solid var(--gg-border);
}
.gg-header-inner { min-height: 72px; display:flex; align-items:center; justify-content:space-between; gap:20px; }
.gg-brand-wrap { display:flex; align-items:center; gap:12px; min-width:0; }
.gg-brand, .gg-brand-name { display:flex; align-items:center; gap:12px; text-decoration:none; font-weight:900; letter-spacing:.04em; }
.gg-brand-name { text-transform:uppercase; font-size:1.05rem; }
.gg-logo, .custom-logo { width:56px; height:56px; object-fit:contain; display:block; filter:drop-shadow(0 0 10px rgba(213,162,75,.16)); }
.custom-logo-link { display:block; line-height:0; }
.gg-brand-text { font-size:1.05rem; text-transform:uppercase; }
.gg-nav ul { list-style:none; display:flex; gap:18px; padding:0; margin:0; }
.gg-nav a { text-decoration:none; color:#ddd; font-weight:700; }
.gg-nav a:hover { color:var(--gg-red-bright); }
.gg-hero { padding: 72px 0 64px; text-align:center; }
.gg-hero-logo { width:clamp(132px, 18vw, 205px); height:auto; display:block; margin:0 auto 18px; filter:drop-shadow(0 18px 32px rgba(0,0,0,.45)) drop-shadow(0 0 18px rgba(213,162,75,.10)); }
.gg-kicker { color:var(--gg-gold); text-transform:uppercase; letter-spacing:.16em; font-weight:800; font-size:.82rem; }
.gg-hero h1 { margin:.4rem 0 1rem; font-size:clamp(2.6rem, 8vw, 5.8rem); line-height:.92; text-transform:uppercase; letter-spacing:-.045em; }
.gg-hero p { max-width:760px; margin:0 auto 28px; color:var(--gg-muted); font-size:1.12rem; }
.gg-btn { display:inline-flex; align-items:center; justify-content:center; min-height:46px; padding:0 20px; border-radius:8px; text-decoration:none; font-weight:900; text-transform:uppercase; letter-spacing:.04em; border:1px solid transparent; }
.gg-btn-primary { background:var(--gg-red); color:#fff; box-shadow:0 10px 30px rgba(213,31,42,.2); }
.gg-btn-primary:hover { background:var(--gg-red-bright); }
.gg-btn-secondary { border-color:var(--gg-border); background:var(--gg-panel); }
.gg-btn-row { display:flex; flex-wrap:wrap; gap:12px; justify-content:center; }
.gg-section { padding: 54px 0; }
.gg-section-title { display:flex; align-items:end; justify-content:space-between; gap:20px; margin-bottom:22px; }
.gg-section-title h2 { margin:0; font-size:clamp(1.7rem, 4vw, 2.6rem); text-transform:uppercase; }
.gg-section-title p { margin:0; color:var(--gg-muted); }
.gg-grid { display:grid; grid-template-columns:repeat(3, minmax(0,1fr)); gap:18px; }
.gg-server-card, .gg-card {
  position:relative; overflow:hidden; background:linear-gradient(180deg, var(--gg-panel-2), var(--gg-panel));
  border:1px solid var(--gg-border); border-radius:14px; padding:22px; box-shadow:var(--gg-shadow);
}
.gg-server-card::before { content:""; position:absolute; inset:0 auto 0 0; width:4px; background:var(--gg-red); }
.gg-server-head { display:flex; justify-content:space-between; gap:12px; align-items:start; }
.gg-server-card h3 { margin:0 0 4px; font-size:1.35rem; }
.gg-server-type { color:var(--gg-muted); font-size:.92rem; }
.gg-status { display:inline-flex; align-items:center; gap:7px; font-size:.8rem; font-weight:800; text-transform:uppercase; color:#dfffe1; }
.gg-status::before { content:""; width:9px; height:9px; border-radius:50%; background:var(--gg-success); box-shadow:0 0 14px rgba(97,211,107,.65); }
.gg-server-endpoint { margin:18px 0 12px; padding:12px 14px; background:#090909; border:1px solid #292929; border-radius:9px; font-family:ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; word-break:break-all; }
.gg-server-meta { display:grid; grid-template-columns:1fr 1fr; gap:10px; margin-top:14px; }
.gg-meta-box { padding:10px 12px; border:1px solid var(--gg-border); border-radius:8px; background:#0d0d0d; }
.gg-meta-label { color:var(--gg-muted); font-size:.76rem; text-transform:uppercase; letter-spacing:.08em; }
.gg-meta-value { font-weight:800; }
.gg-card h3 { margin-top:0; }
.gg-card p { color:var(--gg-muted); }
.gg-post-list { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:18px; }
.gg-post-card { background:var(--gg-panel); border:1px solid var(--gg-border); border-radius:14px; overflow:hidden; }
.gg-post-card img { width:100%; aspect-ratio:16/9; object-fit:cover; display:block; }
.gg-post-body { padding:18px; }
.gg-post-body h3 { margin:0 0 8px; }
.gg-site-footer { margin-top:50px; border-top:1px solid var(--gg-border); background:#050505; }
.gg-footer-inner { padding:30px 0; display:flex; justify-content:space-between; gap:20px; flex-wrap:wrap; color:var(--gg-muted); }
.gg-copy-btn { width:100%; margin-top:12px; background:transparent; color:#ddd; border:1px solid var(--gg-border); border-radius:8px; padding:9px 12px; cursor:pointer; font-weight:800; }
.gg-copy-btn:hover { border-color:var(--gg-red); color:#fff; }
.gg-page { padding:48px 0; }
.gg-content { max-width:850px; }
.gg-content a { color:var(--gg-red-bright); }
@media (max-width: 900px) { .gg-grid, .gg-post-list { grid-template-columns:1fr 1fr; } }
@media (max-width: 680px) {
  .gg-header-inner { align-items:flex-start; padding:12px 0; }
  .gg-logo, .custom-logo { width:48px; height:48px; }
  .gg-brand-text, .gg-brand-name { font-size:.92rem; }
  .gg-hero-logo { width:138px; margin-bottom:14px; }
  .gg-nav ul { flex-wrap:wrap; gap:10px 14px; }
  .gg-grid, .gg-post-list { grid-template-columns:1fr; }
  .gg-section-title { align-items:start; flex-direction:column; }
  .gg-server-meta { grid-template-columns:1fr; }
}

/* v1.1 voice server additions */
.gg-section-alt {
  background: rgba(255,255,255,.018);
  border-top: 1px solid rgba(255,255,255,.05);
  border-bottom: 1px solid rgba(255,255,255,.05);
}
.gg-voice-card {
  position: relative;
  overflow: hidden;
}
.gg-voice-card::before {
  content: "VOICE";
  position: absolute;
  top: 14px;
  right: -31px;
  transform: rotate(45deg);
  font-size: 10px;
  letter-spacing: 2px;
  font-weight: 800;
  opacity: .18;
}
.gg-card-actions {
  margin-top: 12px;
  align-items: center;
}
.gg-card-actions .gg-btn,
.gg-card-actions .gg-copy-btn {
  margin-top: 0;
}


/* v1.2 unified server hub */
.gg-main-server-title { margin-bottom: 34px; }
.gg-server-group + .gg-server-group { margin-top: 46px; }
.gg-subsection-title {
  display:flex; align-items:end; justify-content:space-between; gap:20px; margin-bottom:18px;
  padding-bottom:12px; border-bottom:1px solid var(--gg-border);
}
.gg-subsection-title > div { display:flex; align-items:center; gap:10px; }
.gg-subsection-title h3 { margin:0; font-size:1.45rem; text-transform:uppercase; letter-spacing:.02em; }
.gg-subsection-title p { margin:0; color:var(--gg-muted); }
.gg-server-icon { font-size:1.25rem; line-height:1; }
.gg-card-description { margin-top:14px; color:var(--gg-muted); }
.gg-meta-host { overflow-wrap:anywhere; }
.gg-version-line { margin-top:12px; color:var(--gg-muted); font-size:.88rem; }
.gg-voice-group { padding-top: 8px; }
.gg-grid-voice { grid-template-columns:minmax(0, 760px); }
.gg-gamevox-meta { grid-template-columns:repeat(2, minmax(0, 1fr)); }
.gg-voice-card::before { content:"GAMEVOX"; right:-38px; }
@media (max-width: 680px) {
  .gg-subsection-title { align-items:start; flex-direction:column; }
  .gg-gamevox-meta { grid-template-columns:1fr; }
}


/* v1.3 live server status, stronger actions, and setup guides */
.gg-status-tools { display:flex; flex-direction:column; align-items:flex-end; gap:7px; }
.gg-refresh-btn { min-height:38px; padding:0 14px; font-size:.78rem; cursor:pointer; }
.gg-refresh-btn:disabled { opacity:.65; cursor:wait; }
.gg-status-checked { color:var(--gg-muted); font-size:.78rem; }
.gg-status { white-space:nowrap; border:1px solid rgba(255,255,255,.08); background:#0b0b0b; border-radius:999px; padding:6px 10px; }
.gg-status::before { background:#777; box-shadow:none; }
.gg-status.is-online { color:#dfffe1; border-color:rgba(97,211,107,.24); background:rgba(97,211,107,.07); }
.gg-status.is-online::before { background:var(--gg-success); box-shadow:0 0 14px rgba(97,211,107,.65); }
.gg-status.is-offline { color:#ffd7d9; border-color:rgba(255,51,64,.28); background:rgba(255,51,64,.08); }
.gg-status.is-offline::before { background:var(--gg-red-bright); box-shadow:0 0 14px rgba(255,51,64,.45); }
.gg-status.is-checking, .gg-status.is-unknown { color:#d0d0d0; }
.gg-status.is-checking::before { animation:ggPulse 1.1s infinite ease-in-out; }
@keyframes ggPulse { 0%,100%{opacity:.35;transform:scale(.8)} 50%{opacity:1;transform:scale(1.1)} }
.gg-primary-actions { display:grid; grid-template-columns:1.35fr 1fr; gap:10px; margin:12px 0 16px; }
.gg-primary-actions .gg-btn { width:100%; min-height:48px; }
.gg-copy-action { border:0; cursor:pointer; font:inherit; }
.gg-copy-action.is-copied { background:var(--gg-success); color:#071108; }
.gg-meta-live { border-color:rgba(97,211,107,.18); }
.gg-live-motd { margin-top:13px; padding:10px 12px; border-left:3px solid var(--gg-gold); background:rgba(213,162,75,.06); color:#e5d7be; font-size:.9rem; }
.gg-host-line { margin-top:12px; color:var(--gg-muted); font-size:.86rem; overflow-wrap:anywhere; }
.gg-host-line span { color:#ddd; font-weight:800; margin-right:6px; text-transform:uppercase; letter-spacing:.06em; font-size:.73rem; }
.gg-guide-grid { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:18px; }
.gg-guide-card { background:linear-gradient(180deg, var(--gg-panel-2), var(--gg-panel)); border:1px solid var(--gg-border); border-radius:14px; padding:22px; box-shadow:var(--gg-shadow); }
.gg-guide-card h3 { margin:.45rem 0 .65rem; font-size:1.2rem; }
.gg-guide-card p, .gg-guide-card li { color:var(--gg-muted); }
.gg-guide-card ol { margin:.4rem 0 1rem; padding-left:1.2rem; }
.gg-guide-card li + li { margin-top:.35rem; }
.gg-guide-icon { width:42px; height:42px; display:grid; place-items:center; border-radius:10px; border:1px solid rgba(213,162,75,.25); background:rgba(213,162,75,.07); color:var(--gg-gold); font-weight:900; font-size:1.2rem; }
.gg-text-link { color:var(--gg-gold); text-decoration:none; font-weight:800; }
.gg-text-link:hover { color:#f4c86f; }
.gg-muted-note { display:block; color:var(--gg-muted); font-size:.85rem; }
.gg-download-card .gg-btn { margin-top:8px; }
@media (max-width: 1050px) { .gg-guide-grid { grid-template-columns:repeat(2,minmax(0,1fr)); } }
@media (max-width: 680px) {
  .gg-status-tools { align-items:flex-start; }
  .gg-primary-actions { grid-template-columns:1fr; }
  .gg-guide-grid { grid-template-columns:1fr; }
}


/* v1.4 direct-LAN server health checks */
.gg-status-checked { text-align:right; }
@media (max-width:680px){ .gg-status-checked { text-align:left; } }


/* v1.5 Goodhart Gaming logo integration */
.gg-hero-logo { border-radius:18px; }
