/* Nuvory: tokens e componentes partilhados entre o site e o painel.
   Tema escuro unico de proposito: o publico vive no Discord, que e escuro. */

:root {
  --bg: #0c0d10;
  --bg-2: #111318;
  --surface: #16181f;
  --surface-2: #1c1f27;
  --line: #262a34;
  --line-2: #323745;
  --text: #eceef2;
  --text-2: #a3a9b6;
  --text-3: #8a90a0;
  --accent: #a78bfa;
  --accent-ink: #1b1033;
  --accent-soft: rgb(167 139 250 / .12);
  --danger: #f06a6a;
  --warn: #f2c14e;
  --discord: #5865f2;
  --radius: 14px;
  --radius-sm: 9px;
  --ease: cubic-bezier(.16, 1, .3, 1);
  --font: 'Geist', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: 'Geist Mono', ui-monospace, 'SFMono-Regular', Menlo, monospace;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 15px/1.6 var(--font);
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button, input, select, textarea { font: inherit; color: inherit; }
::selection { background: var(--accent); color: var(--accent-ink); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 6px; }

.wrap { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 24px; }
@media (max-width: 640px) { .wrap { padding: 0 16px; } }

/* Marca */
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 650; letter-spacing: -.02em; font-size: 18px; }
.brand-mark {
  width: 30px; height: 30px; flex: none; display: inline-block;
  background: url(/img/logo.webp) center / contain no-repeat;
  font-size: 0 !important; color: transparent;
}

/* Botoes: pill. Cartoes e campos: 14px / 9px. Regra unica do site todo. */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 42px; padding: 0 18px; border-radius: 999px; border: 1px solid transparent;
  font-weight: 560; font-size: 14.5px; white-space: nowrap; cursor: pointer;
  transition: transform .15s var(--ease), background .2s, border-color .2s, opacity .2s;
}
.btn:active { transform: translateY(1px) scale(.985); }
.btn[disabled] { opacity: .5; cursor: not-allowed; }
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { background: #c4b5fd; }
.btn-ghost { background: transparent; border-color: var(--line-2); color: var(--text); }
.btn-ghost:hover { background: var(--surface-2); }
.btn-discord { background: var(--discord); color: #fff; }
.btn-discord:hover { background: #6b76f5; }
.btn-danger { background: transparent; border-color: rgb(240 106 106 / .4); color: var(--danger); }
.btn-danger:hover { background: rgb(240 106 106 / .1); }
.btn-sm { height: 34px; padding: 0 14px; font-size: 13.5px; }
.btn i { font-size: 17px; }

/* Campos */
.field { display: grid; gap: 7px; }
.field > label, .label { font-size: 13px; font-weight: 560; color: var(--text); }
.help { font-size: 12.5px; color: var(--text-3); line-height: 1.45; }
.input, .select, .textarea {
  width: 100%; background: var(--bg-2); border: 1px solid var(--line-2); border-radius: var(--radius-sm);
  padding: 10px 12px; font-size: 14px; transition: border-color .15s, box-shadow .15s;
}
.input::placeholder, .textarea::placeholder { color: #737a8a; }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.textarea { min-height: 96px; resize: vertical; line-height: 1.5; }
.select { appearance: none; padding-right: 34px; background-image: linear-gradient(45deg, transparent 50%, var(--text-2) 50%), linear-gradient(135deg, var(--text-2) 50%, transparent 50%); background-position: calc(100% - 17px) 50%, calc(100% - 12px) 50%; background-size: 5px 5px; background-repeat: no-repeat; }
.err { font-size: 12.5px; color: var(--danger); }

/* Interruptor */
.switch { position: relative; display: inline-flex; width: 40px; height: 23px; flex: none; cursor: pointer; }
.switch input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.switch span { position: absolute; inset: 0; background: var(--line-2); border-radius: 999px; transition: background .2s; }
.switch span::after { content: ''; position: absolute; top: 3px; left: 3px; width: 17px; height: 17px; border-radius: 50%; background: #fff; transition: transform .25s var(--ease); }
.switch input:checked + span { background: var(--accent); }
.switch input:checked + span::after { transform: translateX(17px); }
.switch input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }

.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.tag { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 560; padding: 3px 9px; border-radius: 999px; background: var(--surface-2); color: var(--text-2); border: 1px solid var(--line); }
.tag-accent { background: var(--accent-soft); color: var(--accent); border-color: transparent; }
.tag-warn { background: rgb(242 193 78 / .12); color: var(--warn); border-color: transparent; }
.mono { font-family: var(--mono); }

/* Mensagem estilo Discord, usada no hero, na secao FiveM e nas previsoes do painel */
.dc { background: #313338; border-radius: var(--radius); padding: 16px; font-size: 14px; color: #dbdee1; }
.dc-msg { display: grid; grid-template-columns: 40px 1fr; gap: 12px; padding: 6px 0; }
.dc-av { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; font-size: 15px; color: #fff; }
.dc-name { font-weight: 600; color: #f2f3f5; }
.dc-name .bot { display: inline-block; margin-left: 6px; font-size: 10.5px; font-weight: 600; background: var(--discord); color: #fff; padding: 1px 5px; border-radius: 4px; vertical-align: 2px; }
.dc-time { color: #949ba4; font-size: 12px; margin-left: 6px; }
.dc-text { margin-top: 2px; line-height: 1.45; overflow-wrap: anywhere; }
.dc-embed { margin-top: 6px; background: #2b2d31; border-left: 4px solid var(--accent); border-radius: 4px; padding: 10px 14px 12px; max-width: 460px; }
.dc-embed-title { font-weight: 600; color: #f2f3f5; margin-bottom: 4px; }
.dc-embed-foot { margin-top: 8px; font-size: 12px; color: #949ba4; }
.dc-fields { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px 14px; margin-top: 8px; }
.dc-fields b { display: block; font-size: 12.5px; color: #f2f3f5; }
.dc-btns { display: flex; gap: 8px; margin-top: 8px; flex-wrap: wrap; }
.dc-btn { background: #4e5058; color: #fff; font-size: 13.5px; font-weight: 500; padding: 6px 14px; border-radius: 4px; }
.dc-btn.green { background: #248046; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
