/* PokeOdyssey — interface futura (shell global) */
:root {
  --ody-electric: #facc15;
  --ody-electric-dim: rgba(250, 204, 21, 0.12);
  --ody-cyan: #22d3ee;
  --ody-cyan-dim: rgba(34, 211, 238, 0.08);
  --ody-void: #05070c;
  --ody-panel: rgba(12, 16, 28, 0.72);
  --ody-panel-light: rgba(255, 255, 255, 0.78);
  --ody-line: rgba(250, 204, 21, 0.28);
  --ody-line-soft: rgba(148, 163, 184, 0.18);
  --ody-glow: 0 0 24px rgba(250, 204, 21, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.06);
  --ody-font-display: "Orbitron", "Outfit", ui-sans-serif, system-ui, sans-serif;
  --ody-font-body: "Exo 2", "Outfit", ui-sans-serif, system-ui, sans-serif;
}

html { scroll-behavior: smooth; }

body.odyssey-body {
  font-family: var(--ody-font-body);
  background-color: #f4f6fa;
  background-image:
    radial-gradient(ellipse 80% 50% at 50% -20%, rgba(250, 204, 21, 0.14), transparent 55%),
    linear-gradient(180deg, #f8fafc 0%, #eef2f7 100%);
  min-height: 100vh;
}

html.dark body.odyssey-body {
  background-color: var(--ody-void);
  background-image:
    radial-gradient(ellipse 70% 45% at 15% 10%, rgba(250, 204, 21, 0.09), transparent 50%),
    radial-gradient(ellipse 50% 40% at 90% 0%, rgba(34, 211, 238, 0.06), transparent 45%),
    linear-gradient(180deg, #070a12 0%, #05070c 100%);
  color: #e5e7eb;
}

/* Grade de circuito no fundo */
.odyssey-grid {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.35;
  background-image:
    linear-gradient(rgba(250, 204, 21, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(250, 204, 21, 0.04) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, #000 20%, transparent 75%);
}
html.dark .odyssey-grid { opacity: 0.55; }

.odyssey-scanlines {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0.03;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(0, 0, 0, 0.35) 2px,
    rgba(0, 0, 0, 0.35) 3px
  );
}
html.dark .odyssey-scanlines { opacity: 0.045; }

/* Sidebar futurista */
#sidebar-fuse.odyssey-sidebar {
  background: linear-gradient(180deg, rgba(10, 14, 24, 0.94), rgba(8, 10, 18, 0.98));
  border-right: 1px solid var(--ody-line);
  box-shadow: 8px 0 40px rgba(0, 0, 0, 0.35), inset -1px 0 0 rgba(34, 211, 238, 0.08);
  backdrop-filter: blur(16px);
}
html:not(.dark) #sidebar-fuse.odyssey-sidebar {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(248, 250, 252, 0.96));
  box-shadow: 8px 0 32px rgba(15, 23, 42, 0.08);
}

.odyssey-sidebar .sidebar-link {
  border: 1px solid transparent;
  border-radius: 0.75rem;
  margin-left: 0.5rem;
  margin-right: 0.5rem;
  letter-spacing: 0.01em;
}
.odyssey-sidebar .sidebar-link:hover {
  transform: translateX(3px);
  background: linear-gradient(90deg, var(--ody-electric-dim), transparent);
  border-color: rgba(250, 204, 21, 0.2);
  box-shadow: 0 0 16px rgba(250, 204, 21, 0.08);
}
.odyssey-sidebar .sidebar-section-label {
  font-family: var(--ody-font-display);
  font-size: 0.65rem;
  letter-spacing: 0.16em;
  color: rgba(250, 204, 21, 0.75);
}

/* Status bar + header */
.odyssey-status-bar {
  background: linear-gradient(90deg, rgba(10, 14, 24, 0.9), rgba(12, 20, 36, 0.85));
  border-bottom: 1px solid var(--ody-line);
  font-family: var(--ody-font-display);
  letter-spacing: 0.04em;
  position: relative;
  overflow: hidden;
}
html:not(.dark) .odyssey-status-bar {
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.95), rgba(248, 250, 252, 0.9));
}
.odyssey-status-bar::after {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 40%;
  background: linear-gradient(90deg, transparent, rgba(250, 204, 21, 0.15), transparent);
  animation: ody-sweep 4.5s ease-in-out infinite;
}
@keyframes ody-sweep {
  0% { transform: translateX(-30%); opacity: 0; }
  40% { opacity: 1; }
  100% { transform: translateX(280%); opacity: 0; }
}

.odyssey-header {
  background: rgba(8, 12, 20, 0.75) !important;
  border-bottom: 1px solid var(--ody-line) !important;
  backdrop-filter: blur(18px) saturate(1.2);
}
html:not(.dark) .odyssey-header {
  background: rgba(255, 255, 255, 0.82) !important;
}

.odyssey-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  border: 1px solid rgba(250, 204, 21, 0.35);
  background: rgba(250, 204, 21, 0.08);
  font-family: var(--ody-font-display);
  font-size: 0.62rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ody-electric);
}

/* Painéis globais — aplica em todas as páginas sem reescrever cada blade */
.odyssey-content .rounded-xl.border,
.odyssey-content .rounded-2xl.border,
.odyssey-panel {
  position: relative;
  background: var(--ody-panel) !important;
  border-color: var(--ody-line) !important;
  box-shadow: var(--ody-glow);
  backdrop-filter: blur(14px);
  overflow: hidden;
}
html:not(.dark) .odyssey-content .rounded-xl.border,
html:not(.dark) .odyssey-content .rounded-2xl.border,
html:not(.dark) .odyssey-panel {
  background: var(--ody-panel-light) !important;
  box-shadow: 0 8px 32px rgba(15, 23, 42, 0.06), inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.odyssey-content .rounded-xl.border::before,
.odyssey-content .rounded-2xl.border::before,
.odyssey-panel::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(250, 204, 21, 0.55), rgba(34, 211, 238, 0.35), transparent);
  pointer-events: none;
  z-index: 2;
}

.odyssey-content h1,
.odyssey-content .text-2xl.font-bold,
.odyssey-title {
  font-family: var(--ody-font-display);
  letter-spacing: 0.04em;
  text-shadow: 0 0 28px rgba(250, 204, 21, 0.15);
}

/* Inputs / botões com cara de HUD */
.odyssey-content input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]),
.odyssey-content select,
.odyssey-content textarea {
  border-radius: 0.75rem !important;
  border-color: rgba(250, 204, 21, 0.22) !important;
  background: rgba(0, 0, 0, 0.25) !important;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
html:not(.dark) .odyssey-content input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]),
html:not(.dark) .odyssey-content select,
html:not(.dark) .odyssey-content textarea {
  background: rgba(255, 255, 255, 0.9) !important;
}
.odyssey-content input:focus,
.odyssey-content select:focus,
.odyssey-content textarea:focus {
  outline: none;
  border-color: rgba(250, 204, 21, 0.65) !important;
  box-shadow: 0 0 0 3px rgba(250, 204, 21, 0.15), 0 0 20px rgba(34, 211, 238, 0.08);
}

.odyssey-content button[type="submit"],
.odyssey-content a.bg-poke-red,
.odyssey-content button.bg-poke-red,
.odyssey-btn {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(250, 204, 21, 0.45) !important;
  box-shadow: 0 0 18px rgba(250, 204, 21, 0.2);
  letter-spacing: 0.03em;
  font-weight: 700;
}
.odyssey-content button[type="submit"]::after,
.odyssey-content a.bg-poke-red::after,
.odyssey-btn::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, transparent 40%, rgba(255, 255, 255, 0.25) 50%, transparent 60%);
  transform: translateX(-120%);
  transition: transform 0.5s ease;
}
.odyssey-content button[type="submit"]:hover::after,
.odyssey-content a.bg-poke-red:hover::after,
.odyssey-btn:hover::after {
  transform: translateX(120%);
}

/* Tabelas ranking / listas */
.odyssey-content table thead {
  background: linear-gradient(90deg, rgba(250, 204, 21, 0.08), rgba(34, 211, 238, 0.04)) !important;
}
.odyssey-content table tbody tr {
  transition: background 0.15s ease, box-shadow 0.15s ease;
}
.odyssey-content table tbody tr:hover {
  background: rgba(250, 204, 21, 0.06) !important;
  box-shadow: inset 3px 0 0 var(--ody-electric);
}

/* Aside widgets */
.odyssey-aside .rounded-xl {
  border-color: var(--ody-line) !important;
  background: var(--ody-panel) !important;
  backdrop-filter: blur(12px);
  box-shadow: var(--ody-glow);
}
html:not(.dark) .odyssey-aside .rounded-xl {
  background: var(--ody-panel-light) !important;
}

/* Footer */
footer.odyssey-footer {
  border-top: 1px solid var(--ody-line) !important;
  background: linear-gradient(180deg, transparent, rgba(250, 204, 21, 0.03)) !important;
  font-family: var(--ody-font-display);
  letter-spacing: 0.06em;
  font-size: 0.7rem;
}

/* Companion sparks */
.ody-spark {
  position: fixed;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  pointer-events: none;
  z-index: 99999;
  background: var(--ody-electric);
  box-shadow: 0 0 8px var(--ody-electric), 0 0 14px var(--ody-cyan);
  animation: ody-spark-fade 0.55s ease-out forwards;
}
@keyframes ody-spark-fade {
  to { opacity: 0; transform: scale(0.2) translateY(12px); }
}

#ody-companion {
  filter: drop-shadow(0 0 10px rgba(250, 204, 21, 0.55)) drop-shadow(0 0 18px rgba(34, 211, 238, 0.25));
}

/* Modal de login */
#login-fuse-panel {
  border: 1px solid rgba(250, 204, 21, 0.35) !important;
  box-shadow: 0 0 40px rgba(250, 204, 21, 0.12), 0 24px 64px rgba(0, 0, 0, 0.45) !important;
  backdrop-filter: blur(20px);
}
#login-fuse-panel::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, #facc15, #22d3ee, transparent);
  pointer-events: none;
}

@media (prefers-reduced-motion: reduce) {
  .odyssey-status-bar::after,
  .ody-spark { animation: none !important; }
}
