/* ============================================================
   GAMINGO LABS — Base Styles v3
   Theme CSS vars override these. Load a theme AFTER this file.
   ============================================================ */

/* ── Safe defaults (overridden by theme files) ─────────────── */
:root {
  --gl-bg:       #07090d;
  --gl-bg2:      #0d1018;
  --gl-surface:  #111620;
  --gl-surface2: #161c2a;
  --gl-card:     #131925;
  --gl-ink:      #eef2f8;
  --gl-ink2:     #8fa3bc;
  --gl-muted:    #4a607a;
  --gl-line:     rgba(255,255,255,0.07);
  --gl-lineA:    rgba(0,229,160,0.18);
  --gl-accent:   #00e5a0;
  --gl-accent2:  #00b87a;
  --gl-dim:      rgba(0,229,160,0.10);
  --gl-glow:     rgba(0,229,160,0.35);
  --gl-red:      #ff4d6d;
  --gl-yellow:   #ffd166;
  --gl-blue:     #63b3ed;
  --gl-purple:   #a78bfa;
  --gl-r:        14px;
  --gl-rl:       22px;
  --gl-fd:       'Bebas Neue', sans-serif;
  --gl-fb:       'Syne', sans-serif;
  --gl-fm:       'JetBrains Mono', monospace;
  --gl-shadow:   0 2px 12px rgba(0,0,0,.45), 0 8px 32px rgba(0,0,0,.3);
  --gl-shadowL:  0 4px 20px rgba(0,0,0,.55), 0 20px 60px rgba(0,229,160,.07);
}

/* ── Reset ──────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--gl-fb);
  background: var(--gl-bg);
  color: var(--gl-ink);
  -webkit-font-smoothing: antialiased;
  font-size: 16px;
  line-height: 1.65;
  overflow-x: hidden;
  transition: background .4s, color .4s;
}

/* Noise overlay — themes can set display:none on body::after to remove */
body::after {
  content: '';
  position: fixed; inset: 0; z-index: 9998; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.025'/%3E%3C/svg%3E");
  opacity: 0.45;
}

/* ── Typography ─────────────────────────────────────────────── */
h1, h2, h3, h4 {
  font-family: var(--gl-fd);
  font-weight: 400;
  letter-spacing: .04em;
  line-height: 1.05;
  color: var(--gl-ink);
}
h1 { font-size: clamp(3.8rem, 9vw, 9rem); }
h2 { font-size: clamp(2.2rem, 5vw, 4rem); }
h3 { font-size: clamp(1.4rem, 3vw, 2rem); }
p  { font-weight: 300; font-size: 1rem; }
a  { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: 0; background: none; color: inherit; padding: 0; }
input, select, textarea { font-family: inherit; font-size: inherit; }
img { display: block; }

/* ── Buttons ────────────────────────────────────────────────── */
.gl-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 28px;
  font-family: var(--gl-fb); font-weight: 600; font-size: 13px;
  letter-spacing: .05em; text-transform: uppercase;
  border-radius: 999px; border: 1px solid var(--gl-line);
  background: var(--gl-surface); color: var(--gl-ink);
  transition: all .18s; white-space: nowrap; user-select: none;
}
.gl-btn:hover  { background: var(--gl-surface2); border-color: rgba(255,255,255,.13); transform: translateY(-1px); }
.gl-btn:active { transform: translateY(0); opacity: .9; }
.gl-btn-primary {
  background: var(--gl-accent); color: var(--gl-btn-ink, #000); border-color: transparent;
  box-shadow: 0 4px 22px var(--gl-glow);
}
.gl-btn-primary:hover { filter: brightness(1.12); box-shadow: 0 6px 30px var(--gl-glow); }
.gl-btn-outline { border-color: var(--gl-lineA); background: var(--gl-dim); color: var(--gl-accent); }
.gl-btn-outline:hover { background: rgba(var(--gl-accent), .18); border-color: var(--gl-lineA); filter: brightness(1.08); }
.gl-btn-ghost { border-color: transparent; background: transparent; }
.gl-btn-ghost:hover { background: var(--gl-dim); border-color: var(--gl-lineA); }
.gl-btn-sm { padding: 7px 16px; font-size: 11px; }
.gl-btn-block { width: 100%; }
.gl-btn:disabled { opacity: .4; cursor: not-allowed; transform: none !important; }

/* ── Inputs ─────────────────────────────────────────────────── */
.gl-input {
  width: 100%; padding: 13px 17px;
  border: 1px solid var(--gl-line); border-radius: var(--gl-r);
  background: var(--gl-surface); color: var(--gl-ink); font-size: 15px;
  outline: none; transition: border-color .15s, box-shadow .15s;
}
.gl-input:focus { border-color: var(--gl-accent); box-shadow: 0 0 0 3px var(--gl-dim); }
.gl-input::placeholder { color: var(--gl-muted); }
.gl-label { font-size: 10px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--gl-ink2); display: block; margin-bottom: 6px; }

/* ── Cards ──────────────────────────────────────────────────── */
.gl-card {
  background: var(--gl-card);
  border: 1px solid var(--gl-line);
  border-radius: var(--gl-rl);
  box-shadow: var(--gl-shadow);
  transition: background .2s, box-shadow .22s, transform .22s, border-color .22s;
  position: relative;
  overflow: hidden;
}
.gl-card:hover { box-shadow: var(--gl-shadowL); transform: translateY(-4px); border-color: var(--gl-lineA); }

/* Glass shimmer on hover */
.gl-card::before {
  content: '';
  position: absolute; inset: 0; opacity: 0; transition: opacity .3s; pointer-events: none;
  background: linear-gradient(135deg, rgba(255,255,255,0.06) 0%, transparent 60%);
  border-radius: inherit;
}
.gl-card:hover::before { opacity: 1; }

/* ── Badges ─────────────────────────────────────────────────── */
.gl-badge {
  display: inline-flex; align-items: center;
  padding: 3px 11px; font-size: 10px; font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase;
  border-radius: 999px; border: 1px solid transparent;
}
.gl-badge-live  { background: rgba(0,229,160,.1);  color: var(--gl-accent); border-color: rgba(0,229,160,.25); }
.gl-badge-hot   { background: rgba(255,209,102,.1); color: var(--gl-yellow); border-color: rgba(255,209,102,.25); }
.gl-badge-new   { background: rgba(99,179,237,.1);  color: var(--gl-blue);   border-color: rgba(99,179,237,.25); }
.gl-badge-feat  { background: var(--gl-accent); color: #000; }

/* ── Eyebrow ────────────────────────────────────────────────── */
.gl-eye {
  font-size: 10px; font-weight: 700; letter-spacing: .22em; text-transform: uppercase;
  color: var(--gl-accent); display: flex; align-items: center; gap: 10px; margin-bottom: 16px;
}
.gl-eye::before { content: ''; width: 28px; height: 2px; background: var(--gl-accent); border-radius: 2px; flex-shrink: 0; }

/* ── Divider ────────────────────────────────────────────────── */
.gl-hr { width: 100%; height: 1px; background: var(--gl-line); }

/* ── Marquee ────────────────────────────────────────────────── */
@keyframes glMq { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.gl-mq { overflow: hidden; background: var(--gl-surface); border-top: 1px solid var(--gl-line); border-bottom: 1px solid var(--gl-line); }
.gl-mq-track { display: flex; gap: 56px; padding: 14px 0; white-space: nowrap; animation: glMq 38s linear infinite; width: max-content; }
.gl-mq-item { font-weight: 600; letter-spacing: .12em; font-size: 11px; text-transform: uppercase; color: var(--gl-muted); display: inline-flex; align-items: center; gap: 14px; }
.gl-mq-dot { color: var(--gl-accent); font-size: 14px; }

/* ── Page progress bar ──────────────────────────────────────── */
#gl-bar { position: fixed; top: 0; left: 0; height: 2px; z-index: 9997; background: linear-gradient(90deg, var(--gl-accent), var(--gl-accent2)); transition: width .4s; box-shadow: 0 0 10px var(--gl-glow); pointer-events: none; }

/* ── Toast ──────────────────────────────────────────────────── */
@keyframes glToast { from { opacity: 0; transform: translateY(10px) translateX(-50%); } to { opacity: 1; transform: translateY(0) translateX(-50%); } }
.gl-toast-wrap { animation: glToast .22s cubic-bezier(.34,1.56,.64,1); }

/* ── Grid bg / orbs ─────────────────────────────────────────── */
.gl-gridbg {
  position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(rgba(0,229,160,.032) 1px, transparent 1px), linear-gradient(90deg, rgba(0,229,160,.032) 1px, transparent 1px);
  background-size: 48px 48px;
}
.gl-orb { position: absolute; border-radius: 50%; pointer-events: none; }

/* ── Animations ─────────────────────────────────────────────── */
@keyframes glFloat { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-22px); } }
@keyframes glGlow  { 0%,100% { text-shadow: 0 0 40px var(--gl-glow); } 50% { text-shadow: 0 0 80px var(--gl-glow), 0 0 120px rgba(0,229,160,.1); } }
.gl-float { animation: glFloat 7s ease-in-out infinite; }
.gl-glow-text { animation: glGlow 3s ease-in-out infinite; }

/* ── Scrollbar ──────────────────────────────────────────────── */
::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: var(--gl-bg2); }
::-webkit-scrollbar-thumb { background: var(--gl-muted); border-radius: 99px; }

/* ── Utility ────────────────────────────────────────────────── */
.gl-hide { display: none !important; }

/* ── Layout ─────────────────────────────────────────────────── */
.gl-wrap { max-width: 1380px; margin: 0 auto; padding: 0 5%; }
.gl-2col  { display: grid; grid-template-columns: 1fr 1fr;    gap: 64px; align-items: start; }
.gl-25col { display: grid; grid-template-columns: 1.4fr 2fr;  gap: 64px; align-items: start; }
.gl-footer{ display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; }
.gl-auto  { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 24px; }
.gl-auto3 { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 24px; }

/* ── Section ────────────────────────────────────────────────── */
.gl-section { padding: 88px 5% 100px; max-width: 1380px; margin: 0 auto; }
.gl-section-sm { padding: 60px 5%; max-width: 1380px; margin: 0 auto; }

/* ── Responsive ─────────────────────────────────────────────── */
@media (max-width: 1060px) {
  .gl-footer { grid-template-columns: 2fr 1fr 1fr !important; }
}
@media (max-width: 860px) {
  .gl-hide-mob { display: none !important; }
  .gl-show-mob { display: block !important; }
  .gl-2col  { grid-template-columns: 1fr !important; gap: 40px !important; }
  .gl-25col { grid-template-columns: 1fr !important; gap: 40px !important; }
  .gl-footer { grid-template-columns: 1fr 1fr !important; }
  .gl-auto  { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 18px; }
}
@media (min-width: 861px) {
  .gl-show-mob { display: none !important; }
}
@media (max-width: 560px) {
  .gl-footer { grid-template-columns: 1fr !important; }
  h1 { font-size: 3rem; }
  h2 { font-size: 2.2rem; }
}
