/* ==============================================================================
   public_html/assets/css/style.css
   Grupo Komvos Design System — Diretrizes Oficiais e Biblioteca de Componentes (V1)
   ============================================================================== */

@import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@400;500;600;700;800&family=Montserrat:ital,wght@0,300;0,400;0,500;0,600;0,700;0,800;1,400&display=swap');

@property --shine-angle {
  syntax: "<angle>";
  initial-value: 0deg;
  inherits: false;
}

:root {
  /* 1. Cores Institucionais de Marca */
  --komvos-black: #111516;
  --komvos-dark: #111516;
  --komvos-gray: #939598;
  --senior-teal: #00aa9e;
  --senior-verde: #00aa9e;
  --trusth-magenta: #af005f;
  --trusth-rosa: #af005f;
  --statum-cyan: #00afef;
  --statum-azul: #00afef;

  /* 2. Superfícies e Fundos (Proporção 80/20) */
  --ui-bg: #0b1011;
  --ui-surface: #141a1c;
  --ui-surface-raised: #1b2224;
  --ui-surface-hover: #242d30;
  --ui-surface-glass: rgba(20, 26, 28, 0.78);
  --ui-border: #323d40;
  --ui-border-light: rgba(255, 255, 255, 0.12);

  /* 3. Tipografia */
  --ui-text: #ffffff;
  --ui-text-secondary: #d9dadb;
  --ui-text-muted: #939598;
  --font-main: 'Montserrat', system-ui, -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  /* 4. O Degradê Institucional Oficial de 3 Cores (Violeta -> Magenta -> Ciano) */
  --komvos-brand-gradient: linear-gradient(90deg, #5b42f3 0%, #af005f 50%, #00afef 100%);
  --komvos-brand-gradient-135: linear-gradient(135deg, #5b42f3 0%, #af005f 50%, #00afef 100%);
  --brand-gradient: linear-gradient(135deg, #5b42f3 0%, #af005f 50%, #00afef 100%);

  /* 5. Gradientes Metálicos para Caixas de Ícones */
  --grad-metallic: linear-gradient(90deg, #8e949a, #e6e9ec);
  --silver: linear-gradient(135deg, #eceef0 0%, #c4c8cc 26%, #f5f6f7 48%, #aeb3b8 74%, #dcdfe2 100%);
}

* {
  font-family: var(--font-main);
  box-sizing: border-box;
}

body {
  background-color: var(--ui-bg);
  color: var(--ui-text);
  overflow-x: hidden;
}

/* Tipografia Técnica Numérica */
.font-mono-tech {
  font-family: var(--font-mono) !important;
  font-feature-settings: "tnum" 1, "zero" 1;
}

/* ==============================================================================
   Animações Houdini
   ============================================================================== */
@keyframes shine-angle {
  to { --shine-angle: 360deg; }
}

@keyframes shine-sweep {
  0% { background-position: 130% 0; }
  100% { background-position: -130% 0; }
}

/* ==============================================================================
   Botões Oficiais do Komvos Design System (V1)
   ============================================================================== */

/* A. Botão Primário Oficial com Caixa Metálica (.v2-btn) */
.v2-btn {
  --h: clamp(52px, 4vw, 62px);
  height: var(--h);
  padding: 0 calc(var(--h) * 0.12) 0 clamp(18px, 1.6vw, 26px);
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(16px, 2vw, 32px);
  border: 1.6px solid rgba(255, 255, 255, 0.85);
  border-radius: 14px;
  background: rgba(20, 26, 28, 0.65);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: #f4f7fb;
  font-family: var(--font-main);
  text-decoration: none;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: background 0.25s ease, border-color 0.25s ease, transform 0.2s ease, box-shadow 0.25s ease;
  user-select: none;
}

.v2-btn-block {
  width: 100%;
}

.v2-btn-label {
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.v2-btn-box {
  flex: none;
  width: calc(var(--h) * 0.74);
  height: calc(var(--h) * 0.74);
  border-radius: 10px;
  background: var(--silver);
  color: #111516;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.3s ease;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.4);
}

.v2-btn-box svg {
  width: 18px;
  height: 18px;
  stroke: #111516;
}

.v2-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 10px 28px -6px rgba(0, 175, 239, 0.35);
}

.v2-btn:hover .v2-btn-box {
  transform: translateX(4px);
  box-shadow: 0 0 18px rgba(220, 224, 228, 0.6);
}

.v2-btn:active {
  transform: translateY(0);
}

/* B. Botão Compacto para Dashboards e Plataformas (.v2-btn-sm) */
.v2-btn-sm {
  --h: 40px;
  padding: 0 6px 0 16px;
  gap: 12px;
  border-radius: 10px;
  border-width: 1.2px;
}
.v2-btn-sm .v2-btn-label {
  font-size: 12px;
  font-weight: 600;
}
.v2-btn-sm .v2-btn-box {
  width: 28px;
  height: 28px;
  border-radius: 7px;
}
.v2-btn-sm .v2-btn-box svg {
  width: 14px;
  height: 14px;
}

/* C. Botão Ghost Translúcido (.pg-btn-ghost) */
.pg-btn-ghost {
  height: clamp(44px, 3.5vw, 54px);
  padding: 0 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1.6px solid rgba(255, 255, 255, 0.25);
  border-radius: 12px;
  background: transparent;
  color: #f4f7fb;
  font-size: 13.5px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.25s ease, border-color 0.25s ease, transform 0.2s ease;
}

.pg-btn-ghost:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.7);
  transform: translateY(-1px);
}

/* D. Botão Hero Tail-Light Aprimorado com Degradê Oficial Komvos */
.btn-tail-light {
  position: relative;
  background: transparent;
  color: #fff;
  padding: 18px 32px;
  border-radius: 14px;
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
  z-index: 10;
  cursor: pointer;
  width: 100%;
}

.btn-tail-light::before {
  content: '';
  position: absolute;
  top: -3px; left: -3px; right: -3px; bottom: -3px;
  background: conic-gradient(
    from var(--tail-angle, 0deg) at var(--mouse-x, 50%) var(--mouse-y, 50%),
    transparent 0deg,
    rgba(91, 66, 243, 0.5) 60deg,   /* Violeta Komvos */
    rgba(175, 0, 95, 0.9) 120deg,   /* Trusth Magenta */
    rgba(0, 175, 239, 0.9) 180deg,  /* Statum Ciano */
    transparent 240deg
  );
  border-radius: 14px;
  z-index: -2;
  transition: opacity 0.3s ease;
  opacity: 0;
}

.btn-tail-light::after {
  content: '';
  position: absolute;
  inset: 1.5px;
  background: #141a1c;
  border-radius: 12.5px;
  z-index: -1;
  transition: background 0.3s ease;
}

.btn-tail-light:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 35px -5px rgba(0, 175, 239, 0.45);
  border-color: rgba(255, 255, 255, 0.4);
}

.btn-tail-light:hover::before {
  opacity: 1;
}

.btn-tail-light:active {
  transform: translateY(0);
}

/* ==============================================================================
   Pills e Badges Orbitais de Solução (.hn-sol)
   ============================================================================== */
.hn-sol {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  white-space: nowrap;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(20, 26, 28, 0.85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  font-size: 12px;
  font-weight: 600;
  color: #f4f7fb;
  text-decoration: none;
  cursor: default;
  transition: border-color 0.3s, transform 0.3s, box-shadow 0.3s;
}

.hn-sol:hover {
  border-color: var(--c, #00afef);
  box-shadow: 0 0 14px var(--c, rgba(0, 175, 239, 0.3));
}

.hn-sol-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--c, #00afef);
  box-shadow: 0 0 8px var(--c, #00afef);
  animation: pulse-dot 2s infinite ease-in-out;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.6; transform: scale(0.85); }
}

/* ==============================================================================
   Inputs e Formulários
   ============================================================================== */
.komvos-input {
  background-color: rgba(20, 26, 28, 0.85);
  border: 1px solid var(--ui-border);
  color: #ffffff;
  font-size: 14px;
  transition: all 0.25s ease;
}

.komvos-input:focus {
  outline: none;
  border-color: var(--statum-cyan);
  box-shadow: 0 0 0 3px rgba(0, 175, 239, 0.22);
  background-color: rgba(27, 34, 36, 0.95);
}

.komvos-input::placeholder {
  color: #6b7785;
}

/* ==============================================================================
   Efeitos do Sorteio no Telão (sorteio-ao-vivo.html)
   ============================================================================== */
.roleta-box {
  background: radial-gradient(circle at center, rgba(27, 34, 36, 0.96) 0%, rgba(17, 21, 22, 0.99) 100%);
  border: 1.6px solid rgba(0, 175, 239, 0.35);
  box-shadow: 0 0 50px rgba(0, 175, 239, 0.12), inset 0 0 30px rgba(0, 0, 0, 0.85);
  position: relative;
  overflow: hidden;
}

.roleta-box.animando {
  border-color: var(--statum-cyan);
  box-shadow: 0 0 90px rgba(0, 175, 239, 0.45), inset 0 0 40px rgba(0, 175, 239, 0.2);
  animation: pulse-border-komvos 0.8s infinite alternate ease-in-out;
}

@keyframes pulse-border-komvos {
  0% {
    border-color: #5b42f3;
    box-shadow: 0 0 50px rgba(91, 66, 243, 0.45);
  }
  50% {
    border-color: #af005f;
    box-shadow: 0 0 80px rgba(175, 0, 95, 0.5);
  }
  100% {
    border-color: #00afef;
    box-shadow: 0 0 80px rgba(0, 175, 239, 0.5);
  }
}

.winner-card {
  animation: pop-in 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

@keyframes pop-in {
  0% {
    transform: scale(0.7) translateY(40px);
    opacity: 0;
  }
  100% {
    transform: scale(1) translateY(0);
    opacity: 1;
  }
}

/* Gradientes de Texto */
.text-gradient-komvos {
  background: linear-gradient(135deg, #ffffff 40%, #939598 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.text-gradient-accent {
  background: var(--komvos-brand-gradient-135);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Glassmorphism Oficial */
.glass-panel {
  background: var(--ui-surface-glass);
  backdrop-filter: blur(18px) saturate(130%);
  -webkit-backdrop-filter: blur(18px) saturate(130%);
  border: 1px solid var(--ui-border-light);
}

/* ==============================================================================
   Componentes de Plataforma & Admin (SaaS/ERP Komvos)
   ============================================================================== */

/* A. Data Table Corporativa */
.data-table-container {
  width: 100%;
  overflow-x: auto;
  border-radius: 16px;
  border: 1px solid var(--ui-border-light);
  background: rgba(17, 21, 22, 0.7);
}

.data-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  text-align: left;
  font-size: 13px;
  color: var(--ui-text-secondary);
}

.data-table thead th {
  background: rgba(27, 34, 36, 0.95);
  padding: 14px 18px;
  color: var(--ui-text-muted);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  border-bottom: 1px solid var(--ui-border);
  white-space: nowrap;
}

.data-table tbody td {
  padding: 14px 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  transition: background 0.2s ease;
  vertical-align: middle;
}

.data-table tbody tr:hover td {
  background: rgba(255, 255, 255, 0.03);
}

.data-table tbody tr:last-child td {
  border-bottom: none;
}

/* B. Badges de Status Semânticos */
.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  white-space: nowrap;
}

.status-badge--success {
  background: rgba(0, 170, 158, 0.15);
  color: #00e0d0;
  border: 1px solid rgba(0, 170, 158, 0.4);
}

.status-badge--info {
  background: rgba(0, 175, 239, 0.15);
  color: #00afef;
  border: 1px solid rgba(0, 175, 239, 0.4);
}

.status-badge--danger {
  background: rgba(175, 0, 95, 0.15);
  color: #ff66ad;
  border: 1px solid rgba(175, 0, 95, 0.4);
}

.status-badge--warning {
  background: rgba(245, 158, 11, 0.15);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.4);
}

/* C. Modais Glassmorphism */
.glass-modal {
  border: none;
  background: transparent;
  padding: 0;
  max-width: 520px;
  width: 92vw;
}

.glass-modal::backdrop {
  background: rgba(7, 10, 11, 0.82);
  backdrop-filter: blur(20px) saturate(140%);
  -webkit-backdrop-filter: blur(20px) saturate(140%);
}

.glass-modal__card {
  background: rgba(20, 26, 28, 0.94);
  border: 1px solid var(--ui-border-light);
  border-radius: 24px;
  padding: 28px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.7);
}
