@tailwind base;
@tailwind components;
@tailwind utilities;

/* Definition of the design system. All colors, gradients, fonts, etc should be defined here. 
All colors MUST be HSL.
*/

@layer base {
  :root {
    /* JVM Mídia Design System - Dark Theme */
    --background: 0 0% 6%;
    --foreground: 0 0% 100%;

    --card: 0 0% 11%;
    --card-foreground: 0 0% 100%;

    --popover: 0 0% 11%;
    --popover-foreground: 0 0% 100%;

    --primary: 13 75% 46%;
    --primary-foreground: 0 0% 100%;

    --secondary: 0 0% 20%;
    --secondary-foreground: 0 0% 93%;

    --muted: 0 0% 15%;
    --muted-foreground: 0 0% 65%;

    --accent: 13 75% 46%;
    --accent-foreground: 0 0% 100%;

    --destructive: 0 84.2% 60.2%;
    --destructive-foreground: 0 0% 100%;

    --border: 0 0% 20%;
    --input: 0 0% 15%;
    --ring: 13 75% 46%;

    --radius: 0.75rem;

    /* JVM Custom Variables */
    --brand-orange: 13 75% 46%;
    --brand-dark: 0 0% 6%;
    --brand-darker: 0 0% 4%;
    --text-light: 0 0% 93%;
    --text-muted: 0 0% 65%;

    /* Gradients */
    --gradient-hero: linear-gradient(135deg, hsl(var(--brand-dark)), hsl(var(--brand-darker)));
    --gradient-orange: linear-gradient(135deg, hsl(var(--brand-orange)), hsl(13 75% 40%));

    /* Shadows */
    --shadow-orange: 0 10px 40px hsl(var(--brand-orange) / 0.3);
    --shadow-card: 0 8px 32px hsl(0 0% 0% / 0.3);

    /* Animations */
    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-bounce: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);

    --sidebar-background: 0 0% 98%;
    --sidebar-foreground: 240 5.3% 26.1%;
    --sidebar-primary: 240 5.9% 10%;
    --sidebar-primary-foreground: 0 0% 98%;
    --sidebar-accent: 240 4.8% 95.9%;
    --sidebar-accent-foreground: 240 5.9% 10%;
    --sidebar-border: 220 13% 91%;
    --sidebar-ring: 217.2 91.2% 59.8%;
  }
}

@layer base {
  * {
    @apply border-border;
  }

  body {
    @apply bg-background text-foreground;
    cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none'%3E%3Cpath d='M3 3l7.07 16.97 2.51-7.39 7.39-2.51L3 3z' fill='%23D13F1C' stroke='%23D13F1C' stroke-width='1'/%3E%3C/svg%3E") 12 12, auto;
  }

  /* Hover states for interactive elements - mantém o mesmo formato */
  button,
  a,
  [role="button"] {
    cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none'%3E%3Cpath d='M3 3l7.07 16.97 2.51-7.39 7.39-2.51L3 3z' fill='%23FF6B35' stroke='%23FF6B35' stroke-width='1'/%3E%3C/svg%3E") 12 12, pointer;
  }
}

@layer utilities {
  @keyframes grid-flow {
    0% {
      background-position: 0 0;
    }

    100% {
      background-position: 50px 50px;
    }
  }

  .bg-grid-pattern {
    background-size: 50px 50px;
    background-image:
      linear-gradient(to right, rgba(209, 63, 28, 0.05) 1px, transparent 1px),
      linear-gradient(to bottom, rgba(209, 63, 28, 0.05) 1px, transparent 1px);
    mask-image: radial-gradient(circle at center, black 40%, transparent 100%);
    animation: grid-flow 20s linear infinite;
  }

  /* Orb Animations */
  @keyframes orb-move-1 {
    0%, 100% { transform: translate(0, 0) scale(1); opacity: 0.3; }
    50% { transform: translate(100px, -100px) scale(1.2); opacity: 0.6; }
  }
  @keyframes orb-move-2 {
    0%, 100% { transform: translate(0, 0) scale(1.2); opacity: 0.4; }
    50% { transform: translate(-120px, 80px) scale(0.9); opacity: 0.2; }
  }
  @keyframes orb-move-3 {
    0%, 100% { transform: translate(0, 0) scale(0.8); opacity: 0.3; }
    50% { transform: translate(80px, 120px) scale(1.1); opacity: 0.5; }
  }
  @keyframes orb-move-4 {
    0%, 100% { transform: translate(0, 0) scale(1.1); opacity: 0.4; }
    50% { transform: translate(-80px, -60px) scale(0.9); opacity: 0.6; }
  }
  @keyframes orb-move-5 {
    0%, 100% { transform: translate(0, 0) scale(0.9); opacity: 0.5; }
    50% { transform: translate(150px, 50px) scale(1.2); opacity: 0.3; }
  }

  .animate-orb-1 { animation: orb-move-1 20s ease-in-out infinite; }
  .animate-orb-2 { animation: orb-move-2 25s ease-in-out infinite reverse; }
  .animate-orb-3 { animation: orb-move-3 22s ease-in-out infinite; }
  .animate-orb-4 { animation: orb-move-4 28s ease-in-out infinite reverse; }
  .animate-orb-5 { animation: orb-move-5 30s ease-in-out infinite; }
}