/* ==========================================================================
   Supabase-inspired Dark Theme — Neon Purple Edition
   Para: completa.cloud & completa.cloud/teste
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Override CSS Custom Properties — Dark + Neon Purple
   -------------------------------------------------------------------------- */
:root {
  /* Background */
  --color-bg:           #0a0a0a;
  --color-bg-deep:      #070707;
  --color-surface:      rgba(255, 255, 255, 0.03);
  --color-surface-mid:  rgba(255, 255, 255, 0.06);
  --color-surface-high: rgba(255, 255, 255, 0.09);

  /* Borders */
  --color-border:       rgba(255, 255, 255, 0.08);
  --color-border-mid:   rgba(255, 255, 255, 0.14);

  /* Text */
  --color-text:         #ededed;
  --color-text-muted:   #a1a1aa;
  --color-text-dim:     #71717a;
  --color-white:        #ededed;
  --color-white-pure:   #ffffff;

  /* Brand — roxo neon substituindo o verde do Supabase */
  --color-purple:       #a855f7;
  --color-purple-light: #c084fc;
  --color-purple-deep:  #7c3aed;
  --color-purple-glow:  rgba(168, 85, 247, 0.35);

  /* Mantém navy/blue mas escurece para dark mode */
  --color-navy:         #0f1629;
  --color-blue:         #3b5bdb;
  --color-blue-light:   #4c6ef5;

  /* Glow */
  --glow-purple:        0 0 20px rgba(168, 85, 247, 0.4), 0 0 60px rgba(168, 85, 247, 0.15);
  --glow-purple-sm:     0 0 10px rgba(168, 85, 247, 0.3);
}

/* --------------------------------------------------------------------------
   2. Base — Dark background e grid pattern estilo Supabase
   -------------------------------------------------------------------------- */
html, body {
  background-color: var(--color-bg) !important;
  color: var(--color-text) !important;
}

body {
  background-image:
    linear-gradient(rgba(168, 85, 247, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(168, 85, 247, 0.03) 1px, transparent 1px);
  background-size: 40px 40px;
  background-attachment: fixed;
}

/* --------------------------------------------------------------------------
   3. Tipografia
   -------------------------------------------------------------------------- */
h1, h2, h3, h4, h5, h6 {
  color: var(--color-white-pure) !important;
  letter-spacing: -0.02em;
}

p, li, span, td, th {
  color: var(--color-text-muted);
}

a {
  color: var(--color-purple-light);
  transition: color 0.2s;
}
a:hover {
  color: var(--color-purple);
}

/* --------------------------------------------------------------------------
   4. Header — glassmorphism dark
   -------------------------------------------------------------------------- */
.site-header,
header.site-header {
  background: rgba(10, 10, 10, 0.8) !important;
  backdrop-filter: blur(16px) !important;
  -webkit-backdrop-filter: blur(16px) !important;
  border-bottom: 1px solid var(--color-border) !important;
  box-shadow: none !important;
}

.nav-list a {
  color: var(--color-text-muted) !important;
  font-size: 0.875rem;
  transition: color 0.2s;
}
.nav-list a:hover {
  color: var(--color-white-pure) !important;
}
.nav-list .current-menu-item > a {
  color: var(--color-purple-light) !important;
}

/* --------------------------------------------------------------------------
   5. Botão CTA — roxo neon com glow
   -------------------------------------------------------------------------- */
.btn-cliente,
.btn-primary,
.wp-block-button__link,
button[type="submit"],
input[type="submit"] {
  background: var(--color-purple) !important;
  color: #fff !important;
  border: 1px solid var(--color-purple-light) !important;
  border-radius: 6px !important;
  padding: 0.5rem 1.25rem !important;
  font-size: 0.875rem !important;
  font-weight: 500 !important;
  letter-spacing: 0.01em !important;
  box-shadow: var(--glow-purple-sm) !important;
  transition: all 0.2s ease !important;
  text-decoration: none !important;
}

.btn-cliente:hover,
.btn-primary:hover,
.wp-block-button__link:hover,
button[type="submit"]:hover,
input[type="submit"]:hover {
  background: var(--color-purple-deep) !important;
  box-shadow: var(--glow-purple) !important;
  transform: translateY(-1px) !important;
}

.btn-secondary,
.btn-outline {
  background: transparent !important;
  color: var(--color-purple-light) !important;
  border: 1px solid var(--color-purple) !important;
  border-radius: 6px !important;
  padding: 0.5rem 1.25rem !important;
  font-size: 0.875rem !important;
  font-weight: 500 !important;
  transition: all 0.2s ease !important;
  text-decoration: none !important;
}
.btn-secondary:hover,
.btn-outline:hover {
  background: rgba(168, 85, 247, 0.1) !important;
  box-shadow: var(--glow-purple-sm) !important;
}

/* --------------------------------------------------------------------------
   6. Cards & Seções — dark cards com border sutil
   -------------------------------------------------------------------------- */
.card,
.servico-card,
.service-card,
.wp-block-group,
.feature-card,
[class*="card"] {
  background: rgba(255, 255, 255, 0.03) !important;
  border: 1px solid var(--color-border) !important;
  border-radius: 12px !important;
  transition: border-color 0.3s, box-shadow 0.3s !important;
}

.card:hover,
.servico-card:hover,
.service-card:hover,
[class*="card"]:hover {
  border-color: rgba(168, 85, 247, 0.4) !important;
  box-shadow: 0 0 30px rgba(168, 85, 247, 0.08) !important;
}

/* Ícone/accent em cards */
.card-icon,
.servico-icon,
[class*="icon"] svg,
[class*="icon"] i {
  color: var(--color-purple) !important;
  fill: var(--color-purple) !important;
}

/* --------------------------------------------------------------------------
   7. Seções de fundo alterado
   -------------------------------------------------------------------------- */
section,
.section,
[class*="section"],
.wp-block-cover,
main {
  background-color: transparent !important;
}

.bg-light,
.bg-gray,
.section-alt,
.section-bg {
  background: rgba(255, 255, 255, 0.02) !important;
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}

/* --------------------------------------------------------------------------
   8. Hero — gradiente com glow roxo
   -------------------------------------------------------------------------- */
.hero,
.home-hero,
[class*="hero"],
.front-page-hero {
  background:
    radial-gradient(ellipse 80% 50% at 50% -20%, rgba(168, 85, 247, 0.15), transparent),
    var(--color-bg) !important;
  position: relative;
}

.hero h1,
.home-hero h1,
[class*="hero"] h1 {
  background: linear-gradient(135deg, #ffffff 0%, #c084fc 50%, #a855f7 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* --------------------------------------------------------------------------
   9. Hamburguer & Mobile Nav
   -------------------------------------------------------------------------- */
.hamburger-line {
  background-color: var(--color-text) !important;
}

/* --------------------------------------------------------------------------
   10. Footer
   -------------------------------------------------------------------------- */
footer,
.site-footer {
  background: #070707 !important;
  border-top: 1px solid var(--color-border) !important;
  color: var(--color-text-dim) !important;
}

footer a,
.site-footer a {
  color: var(--color-text-muted) !important;
}
footer a:hover,
.site-footer a:hover {
  color: var(--color-purple-light) !important;
}

/* --------------------------------------------------------------------------
   11. Formulários
   -------------------------------------------------------------------------- */
input[type="text"],
input[type="email"],
input[type="tel"],
input[type="url"],
input[type="password"],
input[type="search"],
select,
textarea {
  background: rgba(255, 255, 255, 0.05) !important;
  border: 1px solid var(--color-border-mid) !important;
  border-radius: 6px !important;
  color: var(--color-text) !important;
  transition: border-color 0.2s, box-shadow 0.2s !important;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--color-purple) !important;
  box-shadow: 0 0 0 3px rgba(168, 85, 247, 0.15) !important;
  outline: none !important;
}

input::placeholder,
textarea::placeholder {
  color: var(--color-text-dim) !important;
}

/* --------------------------------------------------------------------------
   12. Badges & Tags
   -------------------------------------------------------------------------- */
.badge,
.tag,
.label,
[class*="badge"],
[class*="tag"] {
  background: rgba(168, 85, 247, 0.12) !important;
  color: var(--color-purple-light) !important;
  border: 1px solid rgba(168, 85, 247, 0.3) !important;
  border-radius: 9999px !important;
  padding: 0.15rem 0.75rem !important;
  font-size: 0.75rem !important;
  font-weight: 500 !important;
}

/* --------------------------------------------------------------------------
   13. Divisores & Linhas
   -------------------------------------------------------------------------- */
hr,
.divider,
.separator {
  border-color: var(--color-border) !important;
}

/* --------------------------------------------------------------------------
   14. Scrollbar customizado
   -------------------------------------------------------------------------- */
::-webkit-scrollbar {
  width: 6px;
}
::-webkit-scrollbar-track {
  background: var(--color-bg-deep);
}
::-webkit-scrollbar-thumb {
  background: rgba(168, 85, 247, 0.4);
  border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--color-purple);
}

/* --------------------------------------------------------------------------
   15. Selection highlight
   -------------------------------------------------------------------------- */
::selection {
  background: rgba(168, 85, 247, 0.3);
  color: #fff;
}

/* --------------------------------------------------------------------------
   16. Glow decorativo no topo da página (dot/radial Supabase style)
   -------------------------------------------------------------------------- */
body::before {
  content: '';
  position: fixed;
  top: -200px;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 400px;
  background: radial-gradient(ellipse, rgba(168, 85, 247, 0.12) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

/* --------------------------------------------------------------------------
   17. Tailwind utility overrides para dark mode
   -------------------------------------------------------------------------- */
.bg-white       { background-color: rgba(255,255,255,0.04) !important; }
.bg-gray-50     { background-color: rgba(255,255,255,0.02) !important; }
.bg-gray-100    { background-color: rgba(255,255,255,0.04) !important; }
.text-gray-900  { color: #ededed !important; }
.text-gray-700  { color: #a1a1aa !important; }
.text-gray-500  { color: #71717a !important; }
.border-gray-200{ border-color: rgba(255,255,255,0.08) !important; }
.shadow-sm      { box-shadow: 0 1px 3px rgba(0,0,0,0.5) !important; }
.shadow         { box-shadow: 0 4px 16px rgba(0,0,0,0.6) !important; }

/* Tailwind purple neon utilities */
.text-purple    { color: var(--color-purple) !important; }
.text-purple-light { color: var(--color-purple-light) !important; }
.bg-purple      { background-color: var(--color-purple) !important; }
.border-purple  { border-color: var(--color-purple) !important; }
.glow-purple    { box-shadow: var(--glow-purple) !important; }
