/* SpeakKey Dark Neon Theme - Sleek & Modern */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

/* Root Variables - Muted Neon Color Palette */
:root {
  /* Primary colors based on Android app OLED theme */
  --bg-primary: #000000;           /* Pure black */
  --bg-surface: #0D0D0D;           /* Very dark gray for surfaces */
  --bg-card: #1A1A1A;             /* Slightly lighter for cards */
  --bg-input: #212121;             /* Input backgrounds */
  
  /* Muted neon accent colors */
  --accent-purple: #BB86FC;        /* Primary neon purple */
  --accent-purple-dark: #3700B3;   /* Darker purple variant */
  --accent-teal: #03DAC6;          /* Secondary neon teal */
  --accent-orange: #FF8A50;        /* Warm orange accent */
  --accent-blue: #40C4FF;          /* Cool blue accent */
  
  /* Text colors */
  --text-primary: #FFFFFF;         /* Pure white */
  --text-secondary: #B3FFFFFF;     /* 70% white */
  --text-muted: #666666;           /* Muted gray */
  
  /* Border colors */
  --border-primary: #333333;       /* Subtle borders */
  --border-accent: #BB86FC40;      /* Glowing accent borders */
  --border-focus: #BB86FC;         /* Focus states */
  
  /* Status colors */
  --success: #00E676;              /* Neon green */
  --warning: #FFD740;              /* Neon yellow */
  --error: #FF5252;                /* Neon red */
  --info: #40C4FF;                 /* Neon blue */
}

/* Base styles */
* {
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
}

/* Custom utility classes */
.bg-dark { background-color: var(--bg-primary); }
.bg-surface { background-color: var(--bg-surface); }
.bg-card { background-color: var(--bg-card); }
.bg-input { background-color: var(--bg-input); }

.text-primary { color: var(--text-primary); }
.text-secondary { color: var(--text-secondary); }
.text-muted { color: var(--text-muted); }

.border-dark { border-color: var(--border-primary); }
.border-accent { border-color: var(--border-accent); }
.border-focus { border-color: var(--border-focus); }

/* Enhanced buttons with neon effects */
.btn-neon {
  background: linear-gradient(135deg, var(--accent-purple) 0%, var(--accent-purple-dark) 100%);
  border: 1px solid var(--accent-purple);
  color: var(--text-primary);
  border-radius: 0.5rem;
  padding: 0.75rem 1.5rem;
  font-weight: 500;
  position: relative;
  overflow: hidden;
  box-shadow: 0 0 20px rgba(187, 134, 252, 0.2);
}

.btn-neon:hover {
  transform: translateY(-1px);
  box-shadow: 0 0 30px rgba(187, 134, 252, 0.4);
  border-color: var(--accent-purple);
}

.btn-neon:active {
  transform: translateY(0);
}

.btn-outline-neon {
  background: transparent;
  border: 1px solid var(--accent-purple);
  color: var(--accent-purple);
  border-radius: 0.5rem;
  padding: 0.75rem 1.5rem;
  font-weight: 500;
}

.btn-outline-neon:hover {
  background: var(--accent-purple);
  color: var(--bg-primary);
  box-shadow: 0 0 20px rgba(187, 134, 252, 0.3);
}

/* Card styles with subtle glow */
.card-dark {
  background: var(--bg-card);
  border: 1px solid var(--border-primary);
  border-radius: 0.75rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.card-dark:hover {
  border-color: var(--border-accent);
  box-shadow: 0 8px 30px rgba(187, 134, 252, 0.1);
}

/* Input styles */
.input-dark {
  background: var(--bg-input);
  border: 1px solid var(--border-primary);
  color: var(--text-primary);
  border-radius: 0.5rem;
  padding: 0.75rem 1rem;
}

.input-dark:focus {
  outline: none;
  border-color: var(--border-focus);
  box-shadow: 0 0 0 3px rgba(187, 134, 252, 0.1);
}

.input-dark::placeholder {
  color: var(--text-muted);
}

/* Navigation styles */
.nav-dark {
  background: rgba(13, 13, 13, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-primary);
}

.nav-link-dark {
  color: var(--text-secondary);
  padding: 0.5rem 1rem;
  border-radius: 0.375rem;
  position: relative;
}

.nav-link-dark:hover {
  color: var(--text-primary);
  background: rgba(187, 134, 252, 0.1);
}

.nav-link-dark.active {
  color: var(--accent-purple);
  background: rgba(187, 134, 252, 0.1);
}

/* Hero section with gradient */
.hero-dark {
  background: linear-gradient(135deg, var(--bg-primary) 0%, #1a1a1a 100%);
  position: relative;
  overflow: hidden;
}

.hero-dark::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    radial-gradient(circle at 20% 50%, rgba(187, 134, 252, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(3, 218, 198, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 40% 80%, rgba(255, 138, 80, 0.1) 0%, transparent 50%);
  pointer-events: none;
}

/* Social login buttons */
.social-btn {
  background: var(--bg-card);
  border: 1px solid var(--border-primary);
  color: var(--text-secondary);
  border-radius: 0.5rem;
  padding: 0.75rem 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.social-btn:hover {
  border-color: var(--border-accent);
  color: var(--text-primary);
  background: rgba(187, 134, 252, 0.05);
}

/* Feature icons with glow */
.feature-icon {
  background: linear-gradient(135deg, var(--accent-purple) 0%, var(--accent-teal) 100%);
  width: 4rem;
  height: 4rem;
  border-radius: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 20px rgba(187, 134, 252, 0.2);
}

/* Status indicators */
.status-success { color: var(--success); }
.status-warning { color: var(--warning); }
.status-error { color: var(--error); }
.status-info { color: var(--info); }

/* Dividers with glow */
.divider-glow {
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, var(--accent-purple) 50%, transparent 100%);
}

/* Loading states */
.loading-pulse {
  animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

/* Glow animation for special elements */
.glow-animation {
  animation: glow 2s ease-in-out infinite alternate;
}

@keyframes glow {
  from {
    box-shadow: 0 0 20px rgba(187, 134, 252, 0.2);
  }
  to {
    box-shadow: 0 0 30px rgba(187, 134, 252, 0.4);
  }
}

/* Footer dark theme */
.footer-dark {
  background: var(--bg-surface);
  border-top: 1px solid var(--border-primary);
}

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--bg-surface);
}

::-webkit-scrollbar-thumb {
  background: var(--border-primary);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--accent-purple);
}

/* Toast notifications */
.toast-dark {
  background: var(--bg-card);
  border: 1px solid var(--border-primary);
  color: var(--text-primary);
  border-radius: 0.5rem;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.toast-success { border-color: var(--success); }
.toast-warning { border-color: var(--warning); }
.toast-error { border-color: var(--error); }
.toast-info { border-color: var(--info); }

/* Form sections */
.form-section {
  background: var(--bg-card);
  border: 1px solid var(--border-primary);
  border-radius: 0.75rem;
  padding: 2rem;
}

/* Step indicators */
.step-dark {
  background: linear-gradient(135deg, var(--accent-purple) 0%, var(--accent-teal) 100%);
  color: var(--text-primary);
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  box-shadow: 0 0 20px rgba(187, 134, 252, 0.3);
}

/* Hero image enhancements */
.hero-logo {
  filter: drop-shadow(0 0 40px rgba(187, 134, 252, 0.3));
  animation: float 6s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(-10px) rotate(1deg); }
}

/* Floating elements animation */
.floating-dot {
  animation: float-dot 4s ease-in-out infinite;
}

@keyframes float-dot {
  0%, 100% { 
    transform: translateY(0px) scale(1); 
    opacity: 0.4; 
  }
  50% { 
    transform: translateY(-15px) scale(1.3); 
    opacity: 1; 
  }
}

/* Define the pulse animation */
@keyframes pulse {
  0%, 100% {
    opacity: 0.6;
    transform: scale(1);
  }
  50% {
    opacity: 1;
    transform: scale(1.2);
  }
}

/* Enhanced pulse animation with different timing */
.pulse-delayed-1 {
  animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
  animation-delay: 1s;
}

.pulse-delayed-2 {
  animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
  animation-delay: 2s;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .hero-dark::before {
    background: 
      radial-gradient(circle at 50% 20%, rgba(187, 134, 252, 0.1) 0%, transparent 70%);
  }
  
  .hero-logo {
    animation: none; /* Disable animations on mobile for performance */
  }
}

/* Print styles override */
@media print {
  body {
    background: white !important;
    color: black !important;
  }
}