/* ============================================
   Bot Defense - Liquid Glass Design System
   ============================================ */

/* === FONT IMPORT === */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

/* === CSS VARIABLES === */
:root {
  /* Color System - Blue/Purple Gradient */
  --color-primary-start: #4F46E5;
  --color-primary-end: #7C3AED;
  --color-accent: #06B6D4;
  --color-success: #10B981;
  --color-warning: #F59E0B;
  --color-error: #EF4444;
  
  /* Glass Effect Colors */
  --glass-bg: rgba(255, 255, 255, 0.1);
  --glass-border: rgba(255, 255, 255, 0.2);
  --glass-shadow: rgba(0, 0, 0, 0.1);
  
  /* Dark Mode Glass */
  --glass-bg-dark: rgba(15, 23, 42, 0.8);
  --glass-border-dark: rgba(255, 255, 255, 0.1);
  
  /* Typography */
  --font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  
  /* Spacing */
  --spacing-xs: 0.5rem;
  --spacing-sm: 1rem;
  --spacing-md: 1.5rem;
  --spacing-lg: 2rem;
  --spacing-xl: 3rem;
  
  /* Border Radius - ONLY TWO ALLOWED */
  --radius-2xl: 1rem;
  --radius-full: 9999px;
  
  /* Transitions */
  --transition-smooth: cubic-bezier(0.4, 0.0, 0.2, 1);
  --transition-duration: 300ms;
}

/* === GLOBAL RESET === */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-family);
  line-height: 1.6;
  color: #1e293b;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  min-height: 100vh;
  overflow-x: hidden;
}

/* === GLASS MORPHISM BASE SYSTEM === */
.glass-card {
  background: var(--glass-bg);
  backdrop-filter: blur(20px) saturate(180%) brightness(110%);
  -webkit-backdrop-filter: blur(20px) saturate(180%) brightness(110%);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-2xl);
  box-shadow: 0 8px 32px 0 var(--glass-shadow);
  transition: all var(--transition-duration) var(--transition-smooth);
}

.glass-card:hover {
  box-shadow: 0 12px 48px 0 rgba(0, 0, 0, 0.15);
  transform: translateY(-2px);
}

.glass-nav {
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(20px) saturate(180%) brightness(110%);
  -webkit-backdrop-filter: blur(20px) saturate(180%) brightness(110%);
  border-bottom: 1px solid var(--glass-border);
  box-shadow: 0 4px 24px 0 var(--glass-shadow);
}

.glass-button {
  background: var(--glass-bg);
  backdrop-filter: blur(20px) saturate(180%) brightness(110%);
  -webkit-backdrop-filter: blur(20px) saturate(180%) brightness(110%);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-2xl);
  padding: 0.75rem 1.5rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-duration) var(--transition-smooth);
  position: relative;
  overflow: hidden;
}

.glass-button:hover {
  box-shadow: 0 0 24px rgba(255, 255, 255, 0.4) inset;
  transform: translateY(-2px);
}

.glass-button-primary {
  background: linear-gradient(135deg, var(--color-primary-start), var(--color-primary-end));
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.glass-button-primary:hover {
  box-shadow: 0 0 32px rgba(124, 58, 237, 0.6) inset,
              0 8px 24px rgba(124, 58, 237, 0.4);
}

.glass-input {
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(20px) saturate(180%) brightness(110%);
  -webkit-backdrop-filter: blur(20px) saturate(180%) brightness(110%);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-2xl);
  padding: 0.75rem 1rem;
  font-family: var(--font-family);
  color: #1e293b;
  transition: all var(--transition-duration) var(--transition-smooth);
}

.glass-input:focus {
  outline: none;
  border-color: var(--color-primary-start);
  box-shadow: 0 0 24px rgba(79, 70, 229, 0.3) inset,
              0 0 0 3px rgba(79, 70, 229, 0.1);
}

/* === ANIMATION KEYFRAMES === */
@keyframes glassFloat {
  0%, 100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-10px);
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes shimmer {
  0% {
    background-position: -1000px 0;
  }
  100% {
    background-position: 1000px 0;
  }
}

@keyframes pulse-glow {
  0%, 100% {
    box-shadow: 0 0 20px rgba(79, 70, 229, 0.4);
  }
  50% {
    box-shadow: 0 0 40px rgba(124, 58, 237, 0.6);
  }
}

/* === ANIMATION UTILITY CLASSES === */
.animate-float {
  animation: glassFloat 3s ease-in-out infinite;
}

.animate-fade-in-up {
  animation: fadeInUp 0.6s var(--transition-smooth) forwards;
}

.animate-fade-in {
  animation: fadeIn 0.6s var(--transition-smooth) forwards;
}

.animate-scale-in {
  animation: scaleIn 0.5s var(--transition-smooth) forwards;
}

.animate-pulse-glow {
  animation: pulse-glow 2s ease-in-out infinite;
}

/* Delay utilities for staggered animations */
.delay-100 { animation-delay: 100ms; }
.delay-200 { animation-delay: 200ms; }
.delay-300 { animation-delay: 300ms; }
.delay-400 { animation-delay: 400ms; }
.delay-500 { animation-delay: 500ms; }

/* === GRADIENT UTILITIES === */
.gradient-primary {
  background: linear-gradient(135deg, var(--color-primary-start), var(--color-primary-end));
}

.gradient-text {
  background: linear-gradient(135deg, var(--color-primary-start), var(--color-primary-end));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* === HOVER EFFECTS === */
.hover-glow {
  transition: all var(--transition-duration) var(--transition-smooth);
}

.hover-glow:hover {
  box-shadow: 0 0 24px rgba(255, 255, 255, 0.3) inset,
              0 8px 32px rgba(79, 70, 229, 0.4);
}

.hover-lift {
  transition: transform var(--transition-duration) var(--transition-smooth);
}

.hover-lift:hover {
  transform: translateY(-4px);
}

/* === BORDER RADIUS ENFORCEMENT === */
.rounded-2xl {
  border-radius: var(--radius-2xl) !important;
}

.rounded-full {
  border-radius: var(--radius-full) !important;
}

/* === NAVIGATION STYLES === */
.nav-link {
  color: rgba(255, 255, 255, 0.9);
  text-decoration: none;
  padding: 0.5rem 1rem;
  border-radius: var(--radius-2xl);
  transition: all var(--transition-duration) var(--transition-smooth);
  font-weight: 500;
}

.nav-link:hover {
  background: rgba(255, 255, 255, 0.15);
  color: white;
}

.nav-link.active {
  background: rgba(255, 255, 255, 0.2);
  color: white;
}

/* === HERO SECTION === */
.hero-gradient {
  background: linear-gradient(135deg, 
    rgba(102, 126, 234, 0.9) 0%, 
    rgba(118, 75, 162, 0.9) 100%);
  position: relative;
  overflow: hidden;
}

.hero-gradient::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
  animation: shimmer 20s linear infinite;
}

/* === FEATURE CARDS === */
.feature-icon {
  width: 60px;
  height: 60px;
  border-radius: var(--radius-2xl);
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

/* === STATS SECTION === */
.stat-card {
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(20px) saturate(180%) brightness(110%);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-2xl);
  padding: 2rem;
  text-align: center;
}

.stat-number {
  font-size: 3rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--color-primary-start), var(--color-accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* === FOOTER === */
.footer-glass {
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(20px) saturate(180%) brightness(90%);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.8);
}

.footer-link {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  transition: color var(--transition-duration) var(--transition-smooth);
}

.footer-link:hover {
  color: white;
}

/* === RESPONSIVE UTILITIES === */
@media (max-width: 768px) {
  html {
    font-size: 14px;
  }
  
  .glass-card {
    padding: 1.5rem;
  }
  
  .stat-number {
    font-size: 2rem;
  }
  
  .hero-gradient::before {
    animation: shimmer 30s linear infinite;
  }
}

@media (max-width: 480px) {
  html {
    font-size: 13px;
  }
  
  .glass-button {
    padding: 0.625rem 1.25rem;
  }
  
  .feature-icon {
    width: 50px;
    height: 50px;
    font-size: 1.25rem;
  }
}

/* === ACCESSIBILITY === */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* === LOADING STATE === */
.skeleton {
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0.05) 25%,
    rgba(255, 255, 255, 0.15) 50%,
    rgba(255, 255, 255, 0.05) 75%
  );
  background-size: 200% 100%;
  animation: shimmer 2s infinite;
  border-radius: var(--radius-2xl);
}

/* === UTILITY CLASSES === */
.text-shadow-sm {
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.backdrop-blur-strong {
  backdrop-filter: blur(40px) saturate(180%) brightness(110%);
  -webkit-backdrop-filter: blur(40px) saturate(180%) brightness(110%);
}

.z-10 { z-index: 10; }
.z-20 { z-index: 20; }
.z-30 { z-index: 30; }
.z-40 { z-index: 40; }
.z-50 { z-index: 50; }
