@import url('./fonts/fonts.css');

/* ==========================================================================
   DETETIVE SPYGRAM — TEMA WARM FROSTED LIGHT (PAINEL ENTREGÁVEL)
   ========================================================================== */

:root {
  /* Shadcn / Tailwind HSL Tokens */
  --background: 24 100% 99%;         /* #fffaf7 */
  --foreground: 263 43% 10%;         /* #140d21 */
  --card: 0 0% 100%;                 /* #ffffff */
  --card-foreground: 263 43% 10%;    /* #140d21 */
  --popover: 0 0% 100%;
  --popover-foreground: 263 43% 10%;
  --primary: 340 75% 54%;            /* #e1306c */
  --primary-foreground: 0 0% 100%;
  --secondary: 330 20% 96%;
  --secondary-foreground: 263 43% 10%;
  --muted: 220 14% 96%;
  --muted-foreground: 215 16% 47%;   /* #64748b */
  --accent: 330 20% 96%;
  --accent-foreground: 263 43% 10%;
  --destructive: 0 84.2% 60.2%;
  --destructive-foreground: 0 0% 100%;
  --border: 339 70% 88%;             /* rgba(225, 48, 108, 0.25) */
  --input: 339 70% 88%;
  --ring: 340 75% 54%;
  --radius: 0.85rem;

  /* App Native Tokens */
  --color-primary: #e1306c;
  --color-secondary: #ff0069;
  --color-accent: #7638fa;
  --color-dark-card: rgba(255, 255, 255, 0.92);
}

.dark {
  --background: 24 100% 99% !important;
  --foreground: 263 43% 10% !important;
  --card: 0 0% 100% !important;
  --card-foreground: 263 43% 10% !important;
  --popover: 0 0% 100% !important;
  --popover-foreground: 263 43% 10% !important;
  --primary: 340 75% 54% !important;
  --primary-foreground: 0 0% 100% !important;
  --secondary: 330 20% 96% !important;
  --secondary-foreground: 263 43% 10% !important;
  --muted: 220 14% 96% !important;
  --muted-foreground: 215 16% 47% !important;
  --accent: 330 20% 96% !important;
  --accent-foreground: 263 43% 10% !important;
  --border: 339 70% 88% !important;
  --input: 339 70% 88% !important;
  --ring: 340 75% 54% !important;
}

/* Base Body e HTML */
html, body {
  background-color: #fffaf7 !important;
  color: #140d21 !important;
  font-family: 'Sora', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

#root {
  background-color: #fffaf7 !important;
  min-height: 100vh;
}

/* Background Shell Spygram com glows suaves */
.spygram-shell-bg,
div.min-h-screen.bg-\[\#040607\] {
  background:
    radial-gradient(ellipse 90% 60% at 50% -15%, rgba(255, 122, 0, 0.12), transparent 60%),
    radial-gradient(ellipse 70% 50% at 90% 20%, rgba(255, 0, 105, 0.08), transparent 50%),
    radial-gradient(ellipse 70% 50% at 10% 40%, rgba(118, 56, 250, 0.07), transparent 50%),
    linear-gradient(180deg, #fffaf7 0%, #fff3f7 45%, #f8fbff 100%) !important;
  color: #140d21 !important;
}

/* Tipografia */
h1, h2, h3, h4, h5, h6,
.font-space {
  font-family: 'Space Grotesk', -apple-system, BlinkMacSystemFont, sans-serif !important;
  letter-spacing: -0.025em;
  color: #140d21;
}

/* Cartões Frosted Glass */
.gradient-card,
.bg-card {
  background: rgba(255, 255, 255, 0.92) !important;
  backdrop-filter: blur(20px) !important;
  -webkit-backdrop-filter: blur(20px) !important;
  border: 1px solid rgba(225, 48, 108, 0.16) !important;
  box-shadow: 0 10px 30px -5px rgba(20, 13, 33, 0.06), 0 0 0 1px rgba(255, 255, 255, 0.9) inset !important;
  border-radius: 18px !important;
}

.gradient-card h1, .gradient-card h2, .gradient-card h3, .gradient-card h4, .gradient-card h5, .gradient-card h6,
.bg-card h1, .bg-card h2, .bg-card h3, .bg-card h4 {
  color: #140d21 !important;
}

.gradient-card p,
.gradient-card .text-gray-400,
.gradient-card .text-gray-300,
.bg-card p,
.bg-card .text-gray-400 {
  color: #64748b !important;
}

/* Headings que tinham text-white dentro de cartões */
.gradient-card .text-white:not(button):not(.gradient-primary):not([class*="bg-"]):not([style*="background"]):not(.badge),
.bg-card .text-white:not(button):not(.gradient-primary):not([class*="bg-"]):not([style*="background"]):not(.badge),
div[class*="Card"] .text-white:not(button):not(.gradient-primary):not([class*="bg-"]):not([style*="background"]):not(.badge) {
  color: #140d21 !important;
}

/* Botões com Gradiente Instagram Spygram */
.gradient-primary,
button.gradient-primary,
a.gradient-primary {
  background: linear-gradient(100deg, #ff7a00, #ff0069, #7638fa) !important;
  color: #ffffff !important;
  font-family: 'Space Grotesk', sans-serif !important;
  font-weight: 700 !important;
  border: none !important;
  box-shadow: 0 8px 24px -4px rgba(255, 0, 105, 0.35) !important;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.gradient-primary:hover,
button.gradient-primary:hover {
  box-shadow: 0 12px 28px -4px rgba(255, 0, 105, 0.48) !important;
  transform: translateY(-1.5px) !important;
}

.gradient-primary:active,
button.gradient-primary:active {
  transform: translateY(0.5px) !important;
}

/* Garantir texto branco em botões e badges */
.gradient-primary *,
button.gradient-primary * {
  color: #ffffff !important;
}

.gradient-primary p,
.gradient-primary span,
.gradient-primary div,
.gradient-primary h1,
.gradient-primary h2,
.gradient-primary h3,
.gradient-primary h4 {
  color: #ffffff !important;
}

/* Inputs e Formulários */
input[type="text"],
input[type="email"],
input[type="password"],
input[type="tel"],
input[type="number"],
input.border-input,
textarea.border-input,
select.border-input {
  background-color: #ffffff !important;
  color: #140d21 !important;
  border: 1.5px solid rgba(225, 48, 108, 0.22) !important;
  border-radius: 12px !important;
  font-family: 'Sora', sans-serif !important;
  transition: border-color 0.2s, box-shadow 0.2s !important;
}

input::placeholder,
textarea::placeholder {
  color: #94a3b8 !important;
  opacity: 1 !important;
}

input:focus,
textarea:focus,
select:focus {
  border-color: #e1306c !important;
  box-shadow: 0 0 0 3px rgba(225, 48, 108, 0.16) !important;
  outline: none !important;
}

/* Labels de formulário */
label,
.text-gray-300 {
  color: #334155 !important;
}

/* Header Fixo e Navegação */
header.fixed {
  background: rgba(255, 255, 255, 0.88) !important;
  backdrop-filter: blur(16px) !important;
  -webkit-backdrop-filter: blur(16px) !important;
  border-bottom: 1px solid rgba(225, 48, 108, 0.12) !important;
  box-shadow: 0 4px 20px -2px rgba(20, 13, 33, 0.04) !important;
}

header.fixed svg {
  color: #140d21 !important;
}

header.fixed button {
  color: #140d21 !important;
}

/* Menu Lateral / Drawer */
nav[style*="background"],
div[style*="background: rgba(12, 16, 17, 0.98)"] {
  background: rgba(255, 255, 255, 0.98) !important;
  border-left: 1px solid rgba(225, 48, 108, 0.15) !important;
  box-shadow: -8px 0 30px rgba(20, 13, 33, 0.08) !important;
}

nav a,
nav span {
  color: #140d21 !important;
}

/* Footer / Pré-Rodapé */
.pre-rodape {
  background: rgba(255, 255, 255, 0.75) !important;
  backdrop-filter: blur(12px) !important;
  -webkit-backdrop-filter: blur(12px) !important;
  border-top: 1px solid rgba(225, 48, 108, 0.12) !important;
  color: #64748b !important;
}

/* Textos com brilho / Shine text */
.shine-text {
  background: linear-gradient(100deg, #ff7a00, #ff0069, #7638fa) !important;
  -webkit-background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  font-family: 'Space Grotesk', sans-serif !important;
  font-weight: 700 !important;
}

/* Canvas Matrix suave no fundo */
#matrix-canvas {
  opacity: 0.35 !important;
}

/* Diálogos e Modais */
div[role="dialog"],
div[data-state="open"] > div[style*="background"] {
  background: rgba(255, 255, 255, 0.96) !important;
  border: 1px solid rgba(225, 48, 108, 0.18) !important;
  box-shadow: 0 25px 60px -10px rgba(20, 13, 33, 0.15) !important;
  color: #140d21 !important;
}

/* Scrollbars elegantes */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: #fffaf7;
}
::-webkit-scrollbar-thumb {
  background: rgba(225, 48, 108, 0.25);
  border-radius: 9999px;
}
::-webkit-scrollbar-thumb:hover {
  background: rgba(225, 48, 108, 0.5);
}
