/* ==========================================================================
   VEXIANPRO Portal Hub - Estilos Personalizados
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&family=Space+Grotesk:wght@500;700&display=swap');

:root {
  --font-primary: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  --font-display: 'Space Grotesk', system-ui, sans-serif;
  
  --bg-glow: radial-gradient(circle at 50% 10%, rgba(245, 158, 11, 0.12) 0%, rgba(15, 23, 42, 0) 65%);
  --card-border: rgba(255, 255, 255, 0.08);
  --card-hover-border: rgba(245, 158, 11, 0.4);
}

body {
  font-family: var(--font-primary);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Background com iluminação de malha (mesh gradient sutil) */
.bg-mesh-dark {
  background-color: #070b14;
  background-image: 
    radial-gradient(at 50% 0%, rgba(245, 158, 11, 0.14) 0px, transparent 50%),
    radial-gradient(at 100% 0%, rgba(14, 165, 233, 0.08) 0px, transparent 40%),
    radial-gradient(at 0% 100%, rgba(16, 185, 129, 0.06) 0px, transparent 40%),
    linear-gradient(to bottom, #070b14, #0b1120);
  background-attachment: fixed;
}

.bg-mesh-light {
  background-color: #f8fafc;
  background-image: 
    radial-gradient(at 50% 0%, rgba(245, 158, 11, 0.12) 0px, transparent 55%),
    radial-gradient(at 100% 0%, rgba(14, 165, 233, 0.07) 0px, transparent 45%),
    radial-gradient(at 0% 100%, rgba(16, 185, 129, 0.05) 0px, transparent 45%),
    linear-gradient(to bottom, #f8fafc, #edf2f7);
  background-attachment: fixed;
}

/* Logomarca em destaque com animação de flutuação suave e halo de brilho */
.logo-container {
  position: relative;
  display: inline-block;
}

.logo-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 140%;
  height: 140%;
  background: radial-gradient(circle, rgba(245, 158, 11, 0.22) 0%, rgba(245, 158, 11, 0) 70%);
  filter: blur(28px);
  z-index: 0;
  pointer-events: none;
  transition: all 0.5s ease;
}

.logo-container:hover .logo-glow {
  background: radial-gradient(circle, rgba(245, 158, 11, 0.35) 0%, rgba(245, 158, 11, 0) 75%);
  filter: blur(34px);
}

.logo-img {
  position: relative;
  z-index: 1;
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  filter: drop-shadow(0 12px 24px rgba(0, 0, 0, 0.35));
}

.logo-container:hover .logo-img {
  transform: scale(1.03);
}

/* Cards com Glassmorphism refinado */
.app-card {
  position: relative;
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--card-border);
  overflow: hidden;
}

.dark .app-card {
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.75) 0%, rgba(15, 23, 42, 0.45) 100%);
  box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.5);
}

.light .app-card {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.9) 0%, rgba(255, 255, 255, 0.7) 100%);
  box-shadow: 0 10px 30px -10px rgba(148, 163, 184, 0.25);
}

.app-card:hover {
  transform: translateY(-6px);
  border-color: var(--card-hover-border);
}

.dark .app-card:hover {
  box-shadow: 0 20px 35px -10px rgba(0, 0, 0, 0.7), 0 0 25px -5px rgba(245, 158, 11, 0.15);
}

.light .app-card:hover {
  box-shadow: 0 20px 35px -10px rgba(148, 163, 184, 0.4), 0 0 25px -5px rgba(245, 158, 11, 0.2);
}

/* Indicador pulsante de status online */
.status-pulse {
  position: relative;
}

.status-pulse::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 9999px;
  background-color: currentColor;
  opacity: 0.75;
  animation: ping 2s cubic-bezier(0, 0, 0.2, 1) infinite;
}

@keyframes ping {
  75%, 100% {
    transform: scale(2.2);
    opacity: 0;
  }
}

/* Animação suave para os cards ao carregar ou filtrar */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-fade-in-up {
  animation: fadeInUp 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

.dark ::-webkit-scrollbar-thumb {
  background: #1e293b;
  border-radius: 4px;
}

.dark ::-webkit-scrollbar-thumb:hover {
  background: #334155;
}

.light ::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 4px;
}

.light ::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}

/* ==========================================================================
   Layout Garantido de 5 Cards Lado a Lado no Desktop
   ========================================================================== */
.grid-5-cards {
  display: grid;
  width: 100%;
  gap: 1rem;
}

/* A partir de 960px (qualquer tela de desktop ou laptop) força 5 colunas lado a lado */
@media (min-width: 960px) {
  .grid-5-cards {
    grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
    gap: 1rem !important;
  }
}

/* Em telas muito grandes (1400px+) espaçamento maior */
@media (min-width: 1400px) {
  .grid-5-cards {
    gap: 1.25rem !important;
  }
}

/* Telas de tablet médio (640px a 959px) */
@media (min-width: 640px) and (max-width: 959px) {
  .grid-5-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Celulares (abaixo de 640px) */
@media (max-width: 639px) {
  .grid-5-cards {
    grid-template-columns: 1fr;
  }
}
