/* =============================================================================
 * styles.css — Identidade Akita (Manual de Marca). Dark-first (Void), com tema
 * claro alternável. Paleta oficial; tipografia Inter/Helvetica Neue (fallback Arial).
 * "Contraste sempre, paleta sempre."
 * ============================================================================= */

/* ---------- Tema escuro (padrão · preferência da marca) ---------- */
:root, [data-theme="dark"] {
  --bg:          #0A0C10;   /* Void */
  --bg-2:        #0F1218;   /* Carbon */
  --surface:     #141820;   /* Onyx (cards) */
  --surface-2:   #1A2029;
  --line:        #1E2530;   /* Slate (bordas) */
  --line-strong: #2A3340;
  --text:        #F0F4F8;   /* Frost */
  --text-muted:  #8493A4;
  --text-dim:    #6B7A8D;   /* Steel */
  --accent:      #00D4FF;   /* Electric Cyan */
  --accent-2:    #00A8CC;   /* Deep Cyan */
  --spark:       #FF6B35;
  --topbar-bg:   rgba(10,12,16,.72);
  --glow:        rgba(0,212,255,.16);
  --shadow:      0 1px 2px rgba(0,0,0,.45), 0 10px 30px rgba(0,0,0,.5);
  --shadow-lg:   0 16px 40px rgba(0,0,0,.6);
  --on-accent:   #05202b;
}

/* ---------- Tema claro ---------- */
[data-theme="light"] {
  --bg:          #F0F4F8;   /* Frost */
  --bg-2:        #E6ECF2;
  --surface:     #FFFFFF;
  --surface-2:   #F4F7FA;
  --line:        #DBE3EC;
  --line-strong: #C7D2DE;
  --text:        #0A0C10;   /* Void */
  --text-muted:  #55647A;
  --text-dim:    #6B7A8D;   /* Steel */
  --accent:      #00A8CC;   /* Deep Cyan (recomendado p/ fundo claro) */
  --accent-2:    #0090B0;
  --spark:       #E85A28;
  --topbar-bg:   rgba(255,255,255,.82);
  --glow:        rgba(0,168,204,.10);
  --shadow:      0 1px 2px rgba(10,20,35,.06), 0 8px 24px rgba(10,20,35,.10);
  --shadow-lg:   0 14px 34px rgba(10,20,35,.16);
  --on-accent:   #ffffff;
}

:root {
  --radius: 16px;
  --font: "Inter", "Helvetica Neue", Arial, system-ui, -apple-system, sans-serif;
  --mono: "JetBrains Mono", "SFMono-Regular", Consolas, monospace;
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  transition: background .25s ease, color .25s ease;
}

/* Glow discreto de ciano ao fundo (energia dos agentes). */
body::before {
  content: ""; position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(60vw 40vw at 82% -8%, var(--glow), transparent 60%),
    radial-gradient(48vw 34vw at 6% 4%, var(--glow), transparent 55%);
  opacity: .9;
}
#app, .screen, .boot { position: relative; z-index: 1; }

[hidden] { display: none !important; }

/* ---------- Boot / spinner ---------- */
.boot {
  position: fixed; inset: 0; z-index: 2;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 18px; background: var(--bg);
}
.boot__spinner {
  width: 42px; height: 42px; border-radius: 50%;
  border: 3px solid var(--line); border-top-color: var(--accent);
  animation: spin .8s linear infinite;
}
.boot__text { color: var(--text-dim); font-size: 15px; letter-spacing: .2px; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Error screen ---------- */
.screen { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 24px; }
.panel {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 32px; max-width: 440px; text-align: center;
}
.panel__title { margin: 0 0 8px; font-size: 20px; color: var(--accent); }
.panel__msg { color: var(--text-muted); font-size: 14px; word-break: break-word; margin: 0 0 20px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  border: 0; border-radius: 10px; cursor: pointer;
  background: var(--accent); color: var(--on-accent); font: 700 14px/1 var(--font);
  padding: 11px 18px; text-decoration: none; transition: filter .15s, transform .05s, background .15s;
}
.btn:hover { filter: brightness(1.08); }
.btn:active { transform: translateY(1px); }
.btn--ghost {
  background: transparent; color: var(--text-muted); border: 1px solid var(--line-strong); padding: 9px 14px; font-weight: 600;
}
.btn--ghost:hover { background: var(--surface-2); color: var(--text); border-color: var(--accent); }

/* ---------- Icon button (tema) ---------- */
.iconbtn {
  width: 40px; height: 40px; border-radius: 10px; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
  background: transparent; color: var(--text-muted);
  border: 1px solid var(--line-strong); transition: color .15s, border-color .15s, background .15s;
}
.iconbtn:hover { color: var(--accent); border-color: var(--accent); background: var(--surface-2); }
.ic { display: none; }
[data-theme="dark"] .ic--sun  { display: block; }   /* no escuro, ofereço ir p/ claro (sol) */
[data-theme="light"] .ic--moon { display: block; }  /* no claro, ofereço ir p/ escuro (lua) */

/* ---------- Topbar ---------- */
.topbar {
  position: sticky; top: 0; z-index: 10;
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 28px; background: var(--topbar-bg);
  backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.topbar__brand { display: flex; align-items: center; gap: 10px; }
.topbar__logo { width: 30px; height: 30px; display: block; }
.topbar__wordmark { font-size: 20px; font-weight: 800; letter-spacing: .3px; color: var(--text); }
.topbar__actions { display: flex; align-items: center; gap: 12px; }
.user { display: flex; align-items: center; gap: 10px; }
.user__avatar {
  width: 38px; height: 38px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--accent); color: var(--on-accent); font-weight: 700; font-size: 14px; flex: none;
}
.user__meta { display: flex; flex-direction: column; line-height: 1.2; }
.user__name { font-weight: 600; font-size: 14px; color: var(--text); }
.user__email { font-size: 12px; color: var(--text-dim); }

/* ---------- Main ---------- */
.main { max-width: 1120px; margin: 0 auto; padding: 44px 28px 24px; }
.hero { margin-bottom: 28px; }
.hero__title { margin: 0 0 6px; font-size: 27px; font-weight: 800; letter-spacing: -.2px; }
.hero__sub { margin: 0; color: var(--text-muted); font-size: 15px; max-width: 640px; }

/* ---------- Grid & cards ---------- */
.grid { display: grid; gap: 20px; grid-template-columns: repeat(auto-fill, minmax(272px, 1fr)); }
.card {
  --accent-card: var(--accent);
  position: relative; display: flex; flex-direction: column; gap: 14px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px; text-decoration: none; color: inherit;
  box-shadow: var(--shadow); overflow: hidden;
  transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease;
}
.card::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--accent-card); }
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--accent-card); }
.card__mark {
  width: 52px; height: 52px; border-radius: 13px; flex: none;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 24px; font-weight: 700; color: var(--on-accent);
  background: var(--accent-card);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.12);
}
.card__body { flex: 1; }
.card__name { margin: 0 0 2px; font-size: 18px; font-weight: 700; }
.card__subtitle { margin: 0 0 8px; font-size: 12px; font-weight: 700; letter-spacing: .5px; text-transform: uppercase; color: var(--accent-card); }
.card__desc { margin: 0; font-size: 13.5px; color: var(--text-muted); line-height: 1.55; }
.card__foot { display: flex; align-items: center; }
.card__cta { font-size: 14px; font-weight: 700; color: var(--accent-card); }
.tag {
  font-size: 11px; font-weight: 700; letter-spacing: .5px; text-transform: uppercase;
  color: var(--text-dim); background: var(--surface-2); border: 1px solid var(--line); border-radius: 999px; padding: 4px 10px;
}
.card--disabled { cursor: default; opacity: .6; }
.card--disabled:hover { transform: none; box-shadow: var(--shadow); border-color: var(--line); }

/* ---------- Empty ---------- */
.empty {
  text-align: center; padding: 56px 24px; background: var(--surface);
  border: 1px dashed var(--line-strong); border-radius: var(--radius);
}
.empty__title { margin: 0 0 8px; font-size: 18px; }
.empty__msg { margin: 0 auto; max-width: 420px; color: var(--text-muted); font-size: 14px; }

/* ---------- Footer ---------- */
.footer {
  max-width: 1120px; margin: 0 auto; padding: 22px 28px 34px;
  display: flex; justify-content: space-between; align-items: center;
  color: var(--text-dim); font-size: 12.5px;
}
.footer__ver { font-family: var(--mono); letter-spacing: .5px; }

/* ---------- Responsivo ---------- */
@media (max-width: 560px) {
  .topbar { padding: 12px 16px; }
  .user__meta { display: none; }
  .main { padding: 30px 16px 16px; }
  .hero__title { font-size: 23px; }
  .footer { padding: 18px 16px 28px; }
}

.footer__credit{color:var(--accent);text-decoration:none;font-weight:600}
.footer__credit:hover{text-decoration:underline}
