/* ╔═══════════════════════════════════════════════════════════════════════════
   ║ vyahub-premium.css — D-181
   ║
   ║ Tema visual unificado da plataforma VyaHub. Aplicado em TODAS as paginas
   ║ depois do styles.css/users.css/team.css e ANTES do bg.css (que tem prioridade
   ║ como background global).
   ║
   ║ Eleva os componentes legados (topbar/portal-topbar/footer) pro mesmo nivel
   ║ premium da home D-180:
   ║   - Logo com gradient sky->violet
   ║   - Topbar sticky glass + backdrop-blur
   ║   - Nav-link com hover suave
   ║   - Cards com border-white/10 + bg-white/5 (estilo Tailwind class manual)
   ║   - Hero com gradient text reutilizavel (.hero-grad-title)
   ║   - Footer 4 colunas (.vh-footer) injetado por vyahub-shared.js
   ╚═══════════════════════════════════════════════════════════════════════════ */

/* ── Tokens compartilhados ── */
:root {
  --vh-bg-deep:     #050714;
  --vh-border:      rgba(255, 255, 255, 0.10);
  --vh-border-hot:  rgba(255, 255, 255, 0.30);
  --vh-text:        #f1f5f9;
  --vh-text-mute:   #94a3b8;
  --vh-accent-sky:    #38bdf8;
  --vh-accent-violet: #a78bfa;
  --vh-accent-pink:   #ec4899;
  --vh-accent-emerald:#34d399;
  --vh-accent-amber:  #fbbf24;
  --vh-grad-brand:    linear-gradient(135deg, var(--vh-accent-sky), var(--vh-accent-violet));
  --vh-grad-hero:     linear-gradient(90deg, var(--vh-accent-sky), var(--vh-accent-violet), var(--vh-accent-pink));
}

/* ── Brand mark — gradient sky->violet (igual a home) ── */
.brand-mark,
.portal-mark {
  background: var(--vh-grad-brand) !important;
  color: #fff !important;
  font-weight: 900 !important;
  box-shadow: 0 8px 24px -8px rgba(56, 189, 248, 0.45) !important;
  transition: box-shadow 0.2s ease;
}
.brand:hover .brand-mark,
.portal-brand:hover .portal-mark {
  box-shadow: 0 8px 28px -6px rgba(167, 139, 250, 0.55) !important;
}

/* ── Topbar premium (legacy styles.css + portal layouts) ── */
.topbar,
.portal-topbar {
  background: rgba(7, 11, 22, 0.72) !important;
  backdrop-filter: blur(18px) saturate(140%) !important;
  -webkit-backdrop-filter: blur(18px) saturate(140%) !important;
  border-bottom: 1px solid var(--vh-border) !important;
}

/* ── Nav links com hover bg-white/5 (igual a home premium) ── */
.topbar-nav-link,
.portal-nav-link {
  border: 1px solid transparent !important;
  background: transparent !important;
  color: var(--vh-text-mute) !important;
  font-size: 13px !important;
  font-weight: 500 !important;
  padding: 7px 13px !important;
  border-radius: 8px !important;
  transition: background 0.15s ease, color 0.15s ease !important;
  text-decoration: none !important;
}
.topbar-nav-link:hover,
.portal-nav-link:hover {
  background: rgba(255, 255, 255, 0.05) !important;
  color: #fff !important;
}
.topbar-nav-link.active,
.portal-nav-link.active {
  background: rgba(56, 189, 248, 0.12) !important;
  color: var(--vh-accent-sky) !important;
  border-color: rgba(56, 189, 248, 0.25) !important;
}

/* ── Hero gradient title reutilizavel ── */
.hero-grad-title {
  background: var(--vh-grad-hero);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

/* ── Status pill emerald (igual a home) ── */
.vh-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 9999px;
  background: rgba(52, 211, 153, 0.10);
  border: 1px solid rgba(52, 211, 153, 0.25);
  color: #6ee7b7;
  font-size: 12px;
  font-weight: 500;
}
.vh-status-pill::before {
  content: '';
  width: 6px; height: 6px; border-radius: 50%;
  background: #34d399;
  animation: vh-pulse 2.5s ease-in-out infinite;
}
@keyframes vh-pulse { 0%, 100% { opacity: 0.4; } 50% { opacity: 1; } }

/* ── Footer 4 colunas premium (injetado por vyahub-shared.js) ── */
.vh-footer {
  margin-top: 80px;
  padding: 56px 0 28px;
  border-top: 1px solid var(--vh-border);
  /* Footer canonico — kernel/design-system.md: rgba(10,14,26,0.78) + blur(10px),
     mesmo token de .footer (bg.css). Footer e excecao opaca por navegabilidade. */
  background: rgba(10, 14, 26, 0.78);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: var(--vh-text-mute);
  font-size: 14px;
}
.vh-footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 28px;
}
.vh-footer-cols {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 32px;
}
@media (max-width: 820px) {
  .vh-footer-cols { grid-template-columns: 1fr 1fr; gap: 28px; }
}
@media (max-width: 480px) {
  .vh-footer-cols { grid-template-columns: 1fr; }
}
.vh-footer-brand-row {
  display: flex; align-items: center; gap: 10px; margin-bottom: 12px;
}
.vh-footer-brand-mark {
  width: 28px; height: 28px;
  background: var(--vh-grad-brand);
  border-radius: 8px;
  display: grid; place-items: center;
  font-weight: 900; color: #fff; font-size: 13px;
}
.vh-footer-brand-name { font-weight: 700; color: var(--vh-text); font-size: 15px; }
.vh-footer-tagline {
  color: var(--vh-text-mute); font-size: 12px; line-height: 1.55; max-width: 280px;
}
.vh-footer-col-title {
  font-size: 11px; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.08em; color: var(--vh-text-mute); margin-bottom: 12px;
}
.vh-footer-col a {
  display: block; color: #cbd5e1; text-decoration: none;
  font-size: 13.5px; padding: 4px 0;
  transition: color 0.15s ease;
}
.vh-footer-col a:hover { color: #fff; }
.vh-footer-bar {
  padding-top: 22px; border-top: 1px solid var(--vh-border);
  display: flex; justify-content: space-between; align-items: center;
  font-size: 11.5px; color: #64748b; gap: 12px; flex-wrap: wrap;
}
.vh-footer-bar .heart { color: #f43f5e; }

/* ── Inputs alinhados ao tema ── */
.form-input, .form-select, .auth-input,
input[type="text"], input[type="email"], input[type="password"],
input[type="number"], textarea, select {
  border: 1px solid var(--vh-border) !important;
  transition: border-color 0.15s ease, box-shadow 0.15s ease !important;
}
.form-input:focus, .form-select:focus, .auth-input:focus,
input:focus, textarea:focus, select:focus {
  outline: none !important;
  border-color: rgba(56, 189, 248, 0.5) !important;
  box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.15) !important;
}

/* ── Botoes primarios harmonizados ── */
.btn-primary {
  background: var(--vh-grad-brand) !important;
  border: none !important;
  color: #fff !important;
  font-weight: 600 !important;
  box-shadow: 0 8px 24px -8px rgba(56, 189, 248, 0.5) !important;
  transition: transform 0.15s ease, box-shadow 0.15s ease !important;
}
.btn-primary:hover {
  transform: translateY(-1px) !important;
  box-shadow: 0 10px 28px -6px rgba(167, 139, 250, 0.6) !important;
}
.btn-primary:active { transform: translateY(0) !important; }

/* ── Brand title color do styles.css → branco ── */
.brand-title, .portal-brand-text { color: var(--vh-text) !important; }
.brand-subtitle, .portal-brand-text small { color: var(--vh-text-mute) !important; }

/* ── Page heading (h1) harmonizado ── */
.portal-h1, .page-title, main > h1 {
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--vh-text);
}

/* ── Section titles ── */
.portal-section-title, .section-title {
  color: var(--vh-text-mute);
  font-weight: 700;
  letter-spacing: 0.06em;
}

/* ═══════════════════════════════════════════════════════════════
   ║ VyaHub Premium UX Innovations (Sprint 3 / AI-Refined)
   ║ - Staggered Card Animation Delays (efeito cockpit)
   ║ - Neon Glows & HSL Smooth Transition Shadows
   ║ - Parallax Hover Scale & Organic Cyberpunk Effects
   ╚═══════════════════════════════════════════════════════════════ */

/* 1. Staggered Panel Load Animation Delays */
#panel-state { animation-delay: 0ms !important; }
#controls { animation-delay: 50ms !important; }
#panel-agents { animation-delay: 100ms !important; }
#panel-usage { animation-delay: 150ms !important; }
#panel-throughput { animation-delay: 200ms !important; }
#panel-demands { animation-delay: 250ms !important; }
#panel-tasks { animation-delay: 300ms !important; }
#panel-git { animation-delay: 350ms !important; }
#panel-decisions { animation-delay: 400ms !important; }
#panel-backlog { animation-delay: 450ms !important; }
#panel-logs { animation-delay: 500ms !important; }

/* 2. Custom 3D Parallax Hover Scale */
.panel, .hero-card {
  transition: border-color 0.25s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.25s cubic-bezier(0.22, 1, 0.36, 1),
              box-shadow 0.25s cubic-bezier(0.22, 1, 0.36, 1) !important;
}
.panel:hover, .hero-card:hover {
  transform: translateY(-3px) scale(1.006) !important;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.55),
              0 0 0 1px rgba(56, 189, 248, 0.15),
              inset 0 1px 1px rgba(255, 255, 255, 0.08) !important;
}

/* 3. Neon Glassmorphism Input Focus */
.form-input:focus, .form-select:focus, .auth-input:focus,
input:focus, textarea:focus, select:focus {
  border-color: rgba(167, 139, 250, 0.65) !important; /* transiciona Sky para Violet */
  box-shadow: 0 0 0 3px rgba(167, 139, 250, 0.18),
              0 0 14px rgba(167, 139, 250, 0.15) !important;
}

/* 4. Connection Dot Glow pulse */
.connection-dot.connected {
  background: var(--vh-accent-emerald) !important;
  box-shadow: 0 0 10px rgba(52, 211, 153, 0.75) !important;
  animation: vh-glow-pulse 2s ease-in-out infinite !important;
}
.connection-dot.disconnected {
  background: #f87171 !important;
  box-shadow: 0 0 10px rgba(248, 113, 113, 0.75) !important;
  animation: vh-glow-pulse-fast 1.2s ease-in-out infinite !important;
}
@keyframes vh-glow-pulse {
  0%, 100% { opacity: 1; transform: scale(1); filter: brightness(1); }
  50% { opacity: 0.65; transform: scale(0.9); filter: brightness(1.3); }
}
@keyframes vh-glow-pulse-fast {
  0%, 100% { opacity: 1; transform: scale(1); filter: brightness(1); }
  50% { opacity: 0.4; transform: scale(0.8); filter: brightness(1.5); }
}

/* 5. Global Ultrafino Webkit Scrollbars for VyaHub Luxury */
::-webkit-scrollbar {
  width: 5px;
  height: 5px;
}
::-webkit-scrollbar-track {
  background: transparent;
}
::-webkit-scrollbar-thumb {
  background: rgba(167, 139, 250, 0.15);
  border-radius: 10px;
}
::-webkit-scrollbar-thumb:hover {
  background: rgba(167, 139, 250, 0.35);
}

/* 6. Staggered Page Content Entrance Animation */
main, .data-main, .editor-main, .studio-main {
  animation: vh-page-fade-in 0.35s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes vh-page-fade-in {
  from { opacity: 0; transform: translateY(10px); filter: blur(4px); }
  to { opacity: 1; transform: translateY(0); filter: none; }
}

/* 7. Premium Card & Panel Visual Overrides across pages
   Padrao oficial "vidro leve" — kernel/design-system.md: branco 5%, sem blur,
   border 10%. A imagem bg-factory.png passa nitida atras de todo card. */
.panel, .card, .stat-card, .data-table-item, .tpl-card, .sec-card {
  background: rgba(255, 255, 255, 0.05) !important;
  border: 1px solid rgba(255, 255, 255, 0.10) !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  border-radius: 12px !important;
}

.panel:hover, .card:hover, .stat-card:hover, .sec-card:hover {
  border-color: rgba(56, 189, 248, 0.22) !important;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.4),
              0 0 16px rgba(56, 189, 248, 0.08) !important;
}

