/* =========================================================
   FlörtDedektifi - Custom CSS Styles & Modern Neon Effects
   ========================================================= */

@layer utilities {
  .text-glow-pink {
    text-shadow: 0 0 15px rgba(244, 63, 94, 0.6), 0 0 30px rgba(244, 63, 94, 0.3);
  }
  .text-glow-purple {
    text-shadow: 0 0 15px rgba(168, 85, 247, 0.6), 0 0 30px rgba(168, 85, 247, 0.3);
  }
  .text-glow-cyan {
    text-shadow: 0 0 15px rgba(6, 182, 212, 0.6), 0 0 30px rgba(6, 182, 212, 0.3);
  }
  .box-glow-pink {
    box-shadow: 0 0 25px -5px rgba(244, 63, 94, 0.4), 0 0 10px -3px rgba(244, 63, 94, 0.3);
  }
  .box-glow-purple {
    box-shadow: 0 0 25px -5px rgba(168, 85, 247, 0.4), 0 0 10px -3px rgba(168, 85, 247, 0.3);
  }
}

/* Background grid effect */
.bg-cyber-grid {
  background-size: 40px 40px;
  background-image: 
    linear-gradient(to right, rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
}

/* Glassmorphism surfaces */
.glass-panel {
  background: rgba(15, 23, 42, 0.75);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.glass-card {
  background: rgba(30, 41, 59, 0.6);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.glass-card-hover {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.glass-card-hover:hover {
  border-color: rgba(236, 72, 153, 0.3);
  transform: translateY(-2px);
  box-shadow: 0 12px 30px -10px rgba(236, 72, 153, 0.15);
}

/* Custom animated gradient borders */
.animated-gradient-border {
  position: relative;
  background: #0f172a;
  border-radius: 1.25rem;
}
.animated-gradient-border::before {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: 1.35rem;
  background: linear-gradient(45deg, #f43f5e, #8b5cf6, #06b6d4, #f43f5e);
  background-size: 300% 300%;
  animation: borderRotate 6s ease infinite;
  z-index: -1;
  opacity: 0.8;
}

@keyframes borderRotate {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* Radar pulse animation for Loading state */
@keyframes radarSweep {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.radar-sweep {
  animation: radarSweep 2.2s linear infinite;
  transform-origin: center;
}

/* Shimmer animation for loading skeleton & highlights */
@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

.shimmer-bg {
  background: linear-gradient(90deg, rgba(255,255,255,0.03) 0%, rgba(255,255,255,0.1) 50%, rgba(255,255,255,0.03) 100%);
  background-size: 200% 100%;
  animation: shimmer 2s infinite;
}

/* Pulse glow keyframe */
@keyframes pulseGlow {
  0%, 100% {
    opacity: 0.4;
    transform: scale(1);
  }
  50% {
    opacity: 0.8;
    transform: scale(1.05);
  }
}

.animate-pulse-glow {
  animation: pulseGlow 3s ease-in-out infinite;
}

/* Custom scrollbar for chat snippets and modal content */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: #090d16;
}
::-webkit-scrollbar-thumb {
  background: #334155;
  border-radius: 9999px;
}
::-webkit-scrollbar-thumb:hover {
  background: #475569;
}

/* Circular Gauge Animation */
.gauge-circle {
  transition: stroke-dashoffset 1.8s cubic-bezier(0.34, 1.56, 0.64, 1);
  stroke-dasharray: 440;
  stroke-dashoffset: 440;
}

/* Instagram Story Mockup 9:16 Aspect ratio container */
.story-aspect {
  aspect-ratio: 9 / 16;
  max-height: 82vh;
}

/* Prevent unwanted mobile bounce */
html, body {
  overscroll-behavior-y: none;
}
