/* ─────────────────────────────────────────────────────────────────────────
 * lb-theme.css — Loodific brand language for the builder platform.
 *
 * Palette + typography mirror loodific.com.br exactly so this site reads
 * as a natural extension of the brand. Fonts loaded from Google Fonts:
 *   <link rel="preconnect" href="https://fonts.googleapis.com">
 *   <link href="https://fonts.googleapis.com/css2?family=Orbitron:wght@400;700&family=Roboto:wght@300;400;700&display=swap" rel="stylesheet">
 *
 * Variables:
 *   --bg          near-black page background (#0a0a0a)
 *   --bg-2        elevated surfaces (#141414)
 *   --bg-3        nested/inputs (#1a1a1a)
 *   --cyan        primary brand accent + interactive states
 *   --orange      secondary accent (logo, links, attention)
 *   --text        body
 *   --muted       secondary text
 * ───────────────────────────────────────────────────────────────────────── */

:root {
  --bg:     #0a0a0a;
  --bg-2:   #141414;
  --bg-3:   #1a1a1a;
  --cyan:   #00bfff;
  --cyan-2: #008fcc;
  --orange: #ff6811;
  --text:   #ffffff;
  --muted:  #cccccc;
  --danger: #ff5555;
  --ok:     #19c37d;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Roboto', system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  overflow-x: hidden;
}

/* Animated glow background — mirrors loodific.com.br's body effect */
.lb-bg-effect {
  position: fixed; inset: 0;
  background: radial-gradient(circle at 50% 30%, rgba(0,191,255,0.06), transparent 60%),
              radial-gradient(circle at 80% 80%, rgba(255,104,17,0.05), transparent 60%);
  z-index: -1;
  animation: lb-glow 8s infinite alternate;
}
@keyframes lb-glow {
  0%   { opacity: 0.6; }
  100% { opacity: 1.0; }
}

/* ── Typography ─────────────────────────────────────────────────────── */
h1, h2, h3, h4 { font-family: 'Orbitron', sans-serif; font-weight: 700; letter-spacing: 0.02em; }
h1 { font-size: clamp(2.2rem, 4vw, 3.4rem); text-shadow: 0 0 20px var(--cyan); }
h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); text-shadow: 0 0 14px var(--cyan); margin-bottom: 14px; }
h3 { font-size: 1.3rem; }
h4 { font-size: 1.05rem; color: var(--cyan); }

a       { color: var(--cyan); text-decoration: none; transition: color .25s, text-shadow .25s; }
a:hover { color: var(--orange); text-shadow: 0 0 8px var(--orange); }

p       { line-height: 1.55; }
.muted  { color: var(--muted); font-size: 0.92rem; }

/* ── Logo (wordmark — used in header + footer) ──────────────────────── */
.lb-logo { font-family: 'Orbitron', sans-serif; font-weight: 700; font-size: 1.7rem; letter-spacing: 0.02em; }
.lb-logo .o-orange { color: var(--orange); text-shadow: 0 0 10px var(--orange); }
.lb-logo .o-cyan   { color: var(--cyan);   text-shadow: 0 0 10px var(--cyan); }
.lb-logo small {
  display: block; font-family: 'Roboto', sans-serif; font-weight: 300;
  font-size: 0.8rem; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--muted); margin-top: 2px;
}

/* ── Header ────────────────────────────────────────────────────────── */
.lb-header {
  display: flex; justify-content: space-between; align-items: center;
  padding: 18px clamp(16px, 6vw, 80px);
  background: rgba(10,10,10,0.85); backdrop-filter: blur(8px);
  border-bottom: 2px solid var(--cyan);
  position: sticky; top: 0; z-index: 100;
}
.lb-header nav a { margin-left: 18px; font-size: 0.95rem; color: var(--text); }
.lb-header nav a:hover { color: var(--cyan); text-shadow: 0 0 8px var(--cyan); }

/* ── Buttons ───────────────────────────────────────────────────────── */
.btn, button.btn, a.btn {
  display: inline-block; cursor: pointer; font-family: 'Orbitron', sans-serif;
  font-weight: 700; font-size: 0.95rem; letter-spacing: 0.04em;
  padding: 12px 22px; border: 0; border-radius: 6px;
  background: var(--cyan); color: var(--bg);
  text-decoration: none; transition: background .25s, transform .25s, box-shadow .25s;
}
.btn:hover { background: var(--cyan-2); transform: scale(1.05); box-shadow: 0 0 18px var(--cyan); }
.btn.ghost { background: transparent; color: var(--cyan); border: 2px solid var(--cyan); }
.btn.ghost:hover { background: var(--cyan); color: var(--bg); }
.btn.warn  { background: var(--orange); color: var(--bg); }
.btn.warn:hover  { background: #cc4d09; box-shadow: 0 0 18px var(--orange); }
.btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none; box-shadow: none; }

/* ── Cards (catalogue + admin + form sections) ─────────────────────── */
.lb-card {
  background: rgba(20,20,20,0.92);
  border: 2px solid var(--cyan);
  border-radius: 12px;
  padding: 22px;
  transition: transform .3s, box-shadow .3s, border-color .3s;
}
.lb-card:hover { transform: translateY(-3px); box-shadow: 0 0 18px rgba(0,191,255,0.45); }
.lb-card.warn  { border-color: var(--orange); }
.lb-card.warn:hover { box-shadow: 0 0 18px rgba(255,104,17,0.45); }

/* ── Section ───────────────────────────────────────────────────────── */
section { padding: 80px clamp(16px, 6vw, 80px); }
section.hero { min-height: 86vh; display: flex; align-items: center; justify-content: center; text-align: center; }
section.hero .inner { max-width: 760px; }
section.hero p { font-size: 1.15rem; margin: 18px 0 28px; color: var(--muted); }

/* ── Forms ─────────────────────────────────────────────────────────── */
label { display: block; font-size: 0.85rem; color: var(--cyan); margin-top: 14px; margin-bottom: 6px; letter-spacing: 0.04em; text-transform: uppercase; font-weight: 700; }
input[type=text], input[type=email], input[type=number], input[type=password], select, textarea {
  width: 100%; padding: 10px 12px;
  background: var(--bg-3); color: var(--text);
  border: 1px solid #2a2a2a; border-radius: 6px;
  font: inherit; transition: border-color .2s, box-shadow .2s;
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--cyan); box-shadow: 0 0 0 3px rgba(0,191,255,0.18); }
input[type=color] { width: 60px; height: 38px; padding: 2px; cursor: pointer; }
input[type=checkbox] { width: 18px; height: 18px; accent-color: var(--cyan); }
input[type=file] { color: var(--muted); }

/* ── Tables (admin) ────────────────────────────────────────────────── */
table { width: 100%; border-collapse: collapse; font-size: 0.92rem; background: rgba(20,20,20,0.8); border-radius: 8px; overflow: hidden; }
th { background: rgba(0,191,255,0.12); color: var(--cyan); text-transform: uppercase; font-size: 0.75rem; letter-spacing: 0.06em; padding: 10px; text-align: left; }
td { padding: 10px; border-top: 1px solid #2a2a2a; }
code { font-family: ui-monospace, monospace; background: var(--bg-3); padding: 2px 6px; border-radius: 4px; color: var(--orange); font-size: 0.85rem; }

/* ── Errors + status messages ──────────────────────────────────────── */
.err  { color: var(--danger); font-size: 0.9rem; margin-top: 8px; }
.ok   { color: var(--ok);     font-size: 0.9rem; margin-top: 8px; }

/* ── Play link box ─────────────────────────────────────────────────── */
.play-link {
  background: var(--bg-3); padding: 10px 12px; border-radius: 6px;
  font-family: ui-monospace, monospace; font-size: 0.82rem; color: var(--orange);
  word-break: break-all; border: 1px dashed #333;
}

/* ── Footer ────────────────────────────────────────────────────────── */
.lb-footer {
  text-align: center; padding: 40px 24px;
  border-top: 2px solid var(--cyan);
  background: rgba(10,10,10,0.85);
  font-size: 0.85rem; color: var(--muted);
}
.lb-footer a { color: var(--orange); }
.lb-footer .social a { font-size: 1.4rem; margin: 0 10px; }

/* ── Game runtime header (used by the three games) ─────────────────── */
.game-header {
  display: flex; justify-content: space-between; align-items: center;
  padding: 12px clamp(10px, 4vw, 32px);
  background: rgba(10,10,10,0.92); border-bottom: 2px solid var(--cyan);
}
.game-header img { max-height: 38px; }
