/* Sadržaj iz src/index.css */
@tailwind base;
@tailwind components;
@tailwind utilities;

/* Kinoptix Media Design System - Dark mode sa plavim akcentima */

@layer base {
  :root {
    --background: 218 4% 23%; /* #3a3a3a */
    --foreground: 210 40% 98%;

    --card: 218 4% 25%;
    --card-foreground: 210 40% 98%;

    --popover: 218 4% 23%;
    --popover-foreground: 210 40% 98%;

    --primary: 216 55% 47%; /* #3f67b1 */
    --primary-foreground: 210 40% 98%;

    --secondary: 218 4% 30%;
    --secondary-foreground: 210 40% 98%;

    --muted: 218 4% 30%;
    --muted-foreground: 215 20.2% 65.1%;

    --accent: 216 55% 47%;
    --accent-foreground: 210 40% 98%;

    --destructive: 0 84.2% 60.2%;
    --destructive-foreground: 210 40% 98%;

    --border: 218 4% 35%;
    --input: 218 4% 35%;
    --ring: 216 55% 47%;

    --radius: 1rem;

    --sidebar-background: 218 4% 23%;
    --sidebar-foreground: 210 40% 98%;
    --sidebar-primary: 216 55% 47%;
    --sidebar-primary-foreground: 210 40% 98%;
    --sidebar-accent: 218 4% 30%;
    --sidebar-accent-foreground: 210 40% 98%;
    --sidebar-border: 218 4% 35%;
    --sidebar-ring: 216 55% 47%;
  }
}

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

  body {
    @apply bg-background text-foreground;
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
  }

  html {
    scroll-behavior: smooth;
  }
}

@layer components {
  /* Custom CSS */
  
  /* Neumorphism effects */
  .neumorphism {
    background: linear-gradient(145deg, #404040, #343434);
    box-shadow: 8px 8px 16px #2a2a2a, -8px -8px 16px #4a4a4a;
  }
  
  .neumorphism-inset {
    background: linear-gradient(145deg, #343434, #404040);
    box-shadow: inset 8px 8px 16px #2a2a2a, inset -8px -8px 16px #4a4a4a;
  }
  
  .neumorphism-hover:hover {
    box-shadow: 12px 12px 20px #252525, -12px -12px 20px #4f4f4f;
    transform: translateY(-2px);
  }
  
  .gradient-text {
    background: linear-gradient(135deg, #3f67b1, #5a7ec7);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
  }
  
  .hero-gradient {
    background: radial-gradient(ellipse at center, rgba(63, 103, 177, 0.15) 0%, rgba(58, 58, 58, 0.8) 70%);
  }
  
  /* Animation */
  @keyframes logo-spin {
    from {
      transform: rotate(0deg);
    }
    to {
      transform: rotate(360deg);
    }
  }
  
  @media (prefers-reduced-motion: no-preference) {
    a:nth-of-type(2) .logo {
      animation: logo-spin infinite 20s linear;
    }
  }
  
  /* Float animation */
  @keyframes float {
    0% {
      transform: translateY(0px);
    }
    50% {
      transform: translateY(-10px);
    }
    100% {
      transform: translateY(0px);
    }
  }
  
  .animate-float {
    animation: float 6s ease-in-out infinite;
  }
  
  .animate-fade-in {
    animation: fadeIn 1s ease-in-out;
  }
  
  @keyframes fadeIn {
    from {
      opacity: 0;
      transform: translateY(20px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
}

/* Sadržaj iz src/App.css */
#root {
  max-width: 1280px;
  margin: 0 auto;
  padding: 2rem;
  text-align: center;
}

.logo {
  height: 6em;
  padding: 1.5em;
  will-change: filter;
  transition: filter 300ms;
}
.logo:hover {
  filter: drop-shadow(0 0 2em #646cffaa);
}
.logo.react:hover {
  filter: drop-shadow(0 0 2em #61dafbaa);
}

@keyframes logo-spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

@media (prefers-reduced-motion: no-preference) {
  a:nth-of-type(2) .logo {
    animation: logo-spin infinite 20s linear;
  }
}

.card {
  padding: 2em;
}

.read-the-docs {
  color: #888;
}


/* Responsive styles */
@media (max-width: 768px) {
  .neumorphism {
    box-shadow: 3px 3px 6px rgba(0, 0, 0, 0.25),
                -2px -2px 5px rgba(255, 255, 255, 0.1);
  }

  .neumorphism-inset {
    box-shadow: inset 2px 2px 5px rgba(0, 0, 0, 0.25),
                inset -2px -2px 4px rgba(255, 255, 255, 0.1);
  }

  .animate-float {
    animation-duration: 3s;
  }
}

/* Fix for mobile text overflow */
.text-muted-foreground {
  overflow-wrap: break-word;
  word-wrap: break-word;
  hyphens: auto;
}