/* ============================================
   DENTAL VOICE PRO - ENHANCED DESIGN SYSTEM
   ============================================

   A premium, professional design system featuring:
   - Refined color palettes
   - Sophisticated spacing
   - Smooth animations
   - Professional components
   - Advanced visual effects
============================================ */

/* ============================================
   EXTENDED COLOR PALETTE
============================================ */
:root {
  /* Primary Blacks & Grays */
  --primary-black: #0A0A0A;
  --black-soft: #1A1A1A;
  --black-medium: #262626;

  --gray-50: #FAFAFA;
  --gray-100: #F5F5F5;
  --gray-150: #EEEEEE;
  --gray-200: #E5E5E5;
  --gray-250: #DBDBDB;
  --gray-300: #D4D4D4;
  --gray-350: #CACACA;
  --gray-400: #A3A3A3;
  --gray-450: #8A8A8A;
  --gray-500: #737373;
  --gray-550: #646464;
  --gray-600: #525252;
  --gray-650: #464646;
  --gray-700: #404040;
  --gray-750: #363636;
  --gray-800: #262626;
  --gray-850: #1F1F1F;
  --gray-900: #171717;
  --gray-950: #0D0D0D;

  /* Blues - Professional & Trustworthy */
  --accent-blue: #0066FF;
  --accent-blue-light: #3385FF;
  --accent-blue-lighter: #66A3FF;
  --accent-blue-dark: #0052CC;
  --accent-blue-darker: #003D99;

  /* Secondary Accents */
  --accent-purple: #7C3AED;
  --accent-purple-light: #9F67FF;
  --accent-purple-dark: #6D28D9;

  --accent-cyan: #06B6D4;
  --accent-cyan-light: #22D3EE;
  --accent-cyan-dark: #0891B2;

  --accent-indigo: #6366F1;
  --accent-indigo-light: #818CF8;
  --accent-indigo-dark: #4F46E5;

  /* Status Colors */
  --success-green: #10B981;
  --success-green-light: #34D399;
  --success-green-dark: #059669;

  --warning-amber: #F59E0B;
  --warning-amber-light: #FBBF24;
  --warning-amber-dark: #D97706;

  --error-red: #EF4444;
  --error-red-light: #F87171;
  --error-red-dark: #DC2626;

  --info-blue: #3B82F6;
  --info-blue-light: #60A5FA;
  --info-blue-dark: #2563EB;

  /* Whites */
  --white: #FFFFFF;
  --white-soft: #FEFEFE;
  --white-off: #FCFCFC;
}

/* ============================================
   ENHANCED SPACING SYSTEM
============================================ */
:root {
  --spacing-0: 0;
  --spacing-px: 1px;
  --spacing-0_5: 0.125rem;   /* 2px */
  --spacing-1: 0.25rem;      /* 4px */
  --spacing-1_5: 0.375rem;   /* 6px */
  --spacing-2: 0.5rem;       /* 8px */
  --spacing-2_5: 0.625rem;   /* 10px */
  --spacing-3: 0.75rem;      /* 12px */
  --spacing-3_5: 0.875rem;   /* 14px */
  --spacing-4: 1rem;         /* 16px */
  --spacing-5: 1.25rem;      /* 20px */
  --spacing-6: 1.5rem;       /* 24px */
  --spacing-7: 1.75rem;      /* 28px */
  --spacing-8: 2rem;         /* 32px */
  --spacing-9: 2.25rem;      /* 36px */
  --spacing-10: 2.5rem;      /* 40px */
  --spacing-11: 2.75rem;     /* 44px */
  --spacing-12: 3rem;        /* 48px */
  --spacing-14: 3.5rem;      /* 56px */
  --spacing-16: 4rem;        /* 64px */
  --spacing-20: 5rem;        /* 80px */
  --spacing-24: 6rem;        /* 96px */
  --spacing-28: 7rem;        /* 112px */
  --spacing-32: 8rem;        /* 128px */
  --spacing-36: 9rem;        /* 144px */
  --spacing-40: 10rem;       /* 160px */
  --spacing-48: 12rem;       /* 192px */
  --spacing-56: 14rem;       /* 224px */
  --spacing-64: 16rem;       /* 256px */
  --spacing-72: 18rem;       /* 288px */
  --spacing-80: 20rem;       /* 320px */
  --spacing-96: 24rem;       /* 384px */
}

/* ============================================
   BORDER RADIUS SYSTEM
============================================ */
:root {
  --border-radius-none: 0;
  --border-radius-sm: 0.5rem;    /* 8px */
  --border-radius-md: 0.75rem;   /* 12px */
  --border-radius-lg: 1rem;      /* 16px */
  --border-radius-xl: 1.5rem;    /* 24px */
  --border-radius-2xl: 2rem;     /* 32px */
  --border-radius-3xl: 3rem;     /* 48px */
  --border-radius-full: 9999px;
}

/* ============================================
   SHADOWS & ELEVATION
============================================ */
:root {
  /* Subtle Shadows */
  --shadow-xs: 0 1px 2px 0 rgba(0, 0, 0, 0.03), 0 1px 1px 0 rgba(0, 0, 0, 0.02);
  --shadow-sm: 0 2px 4px 0 rgba(0, 0, 0, 0.05), 0 1px 2px 0 rgba(0, 0, 0, 0.03);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.08), 0 2px 4px -1px rgba(0, 0, 0, 0.04);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.12), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  --shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.20);

  /* Colored Shadows */
  --shadow-blue-sm: 0 4px 14px rgba(0, 102, 255, 0.15);
  --shadow-blue-md: 0 8px 24px rgba(0, 102, 255, 0.25);
  --shadow-blue-lg: 0 12px 40px rgba(0, 102, 255, 0.35);
  --shadow-blue-xl: 0 20px 60px rgba(0, 102, 255, 0.45);

  --shadow-purple-sm: 0 4px 14px rgba(124, 58, 237, 0.15);
  --shadow-purple-md: 0 8px 24px rgba(124, 58, 237, 0.25);
  --shadow-purple-lg: 0 12px 40px rgba(124, 58, 237, 0.35);

  /* Inner Shadows */
  --shadow-inner: inset 0 2px 4px 0 rgba(0, 0, 0, 0.05);
  --shadow-inner-lg: inset 0 4px 8px 0 rgba(0, 0, 0, 0.08);
}

/* ============================================
   TRANSITIONS & ANIMATIONS
============================================ */
:root {
  /* Timing */
  --transition-fast: 0.15s ease;
  --transition-base: 0.3s ease;
  --transition-slow: 0.5s ease;
  --transition-slower: 0.7s ease;

  /* Easing Functions */
  --ease-in: cubic-bezier(0.4, 0, 1, 1);
  --ease-out: cubic-bezier(0, 0, 0.2, 1);
  --ease-in-out: cubic-bezier(0.4, 0, 0.2, 1);
  --ease-smooth: cubic-bezier(0.4, 0, 0.2, 1);
  --ease-bounce: cubic-bezier(0.68, -0.55, 0.265, 1.55);
  --ease-elastic: cubic-bezier(0.68, -0.6, 0.32, 1.6);
}

/* Advanced Keyframe Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-40px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(40px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideInUp {
  from {
    opacity: 0;
    transform: translateY(40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.92);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes scaleInBounce {
  0% {
    opacity: 0;
    transform: scale(0.85);
  }
  60% {
    opacity: 1;
    transform: scale(1.05);
  }
  100% {
    transform: scale(1);
  }
}

@keyframes pulse {
  0%, 100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.7;
    transform: scale(0.98);
  }
}

@keyframes shimmer {
  0% {
    background-position: -1000px 0;
  }
  100% {
    background-position: 1000px 0;
  }
}

@keyframes float {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-12px);
  }
}

@keyframes rotateIn {
  from {
    opacity: 0;
    transform: rotate(-180deg) scale(0.8);
  }
  to {
    opacity: 1;
    transform: rotate(0) scale(1);
  }
}

/* ============================================
   ENHANCED COMPONENT STYLES
============================================ */

/* Premium Card Styles */
.card-premium {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--border-radius-xl);
  padding: var(--spacing-8);
  box-shadow: var(--shadow-lg);
  transition: all var(--transition-base) var(--ease-out);
  position: relative;
  overflow: hidden;
}

.card-premium::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--accent-blue) 0%, var(--accent-purple) 100%);
  opacity: 0;
  transition: opacity var(--transition-base);
}

.card-premium:hover {
  transform: translateY(-8px) scale(1.01);
  box-shadow: var(--shadow-2xl), var(--shadow-blue-md);
  border-color: var(--accent-blue);
}

.card-premium:hover::before {
  opacity: 1;
}

/* Enhanced Feature Cards */
.feature-card-enhanced {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--border-radius-lg);
  padding: var(--spacing-6);
  transition: all var(--transition-base) var(--ease-smooth);
  position: relative;
  overflow: hidden;
}

.feature-card-enhanced::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background: linear-gradient(135deg, rgba(0, 102, 255, 0.03) 0%, transparent 50%);
  opacity: 0;
  transition: opacity var(--transition-base);
  pointer-events: none;
}

.feature-card-enhanced:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-xl), var(--shadow-blue-sm);
  border-color: var(--accent-blue);
}

.feature-card-enhanced:hover::after {
  opacity: 1;
}

/* Enhanced Button Styles */
.btn-enhanced-primary {
  background: linear-gradient(135deg, var(--accent-blue) 0%, var(--accent-blue-dark) 100%);
  color: var(--white);
  border: none;
  border-radius: var(--border-radius-md);
  padding: var(--spacing-4) var(--spacing-8);
  font-weight: 600;
  box-shadow: var(--shadow-md), var(--shadow-blue-sm);
  transition: all var(--transition-base) var(--ease-out);
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.btn-enhanced-primary::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.25), transparent);
  transition: left 0.6s var(--ease-out);
}

.btn-enhanced-primary:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: var(--shadow-xl), var(--shadow-blue-lg);
  background: linear-gradient(135deg, var(--accent-blue-dark) 0%, var(--accent-purple) 100%);
}

.btn-enhanced-primary:hover::before {
  left: 100%;
}

.btn-enhanced-primary:active {
  transform: translateY(-1px) scale(0.99);
}

.btn-enhanced-secondary {
  background: var(--white);
  color: var(--primary-black);
  border: 2px solid var(--gray-300);
  border-radius: var(--border-radius-md);
  padding: var(--spacing-3_5) var(--spacing-7);
  font-weight: 600;
  transition: all var(--transition-base) var(--ease-out);
  cursor: pointer;
}

.btn-enhanced-secondary:hover {
  border-color: var(--primary-black);
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
  background: var(--gray-50);
}

.btn-enhanced-ghost {
  background: transparent;
  color: var(--gray-700);
  border: none;
  padding: var(--spacing-3) var(--spacing-6);
  font-weight: 500;
  transition: all var(--transition-fast) var(--ease-out);
  cursor: pointer;
  border-radius: var(--border-radius-md);
}

.btn-enhanced-ghost:hover {
  background: var(--gray-100);
  color: var(--primary-black);
  transform: translateY(-2px);
}

/* ============================================
   PRICING CARD ENHANCEMENTS
============================================ */
.pricing-card-enhanced {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--border-radius-2xl);
  padding: var(--spacing-10);
  transition: all var(--transition-slow) var(--ease-smooth);
  position: relative;
  overflow: hidden;
}

.pricing-card-enhanced::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 100%;
  background: linear-gradient(135deg, rgba(0, 102, 255, 0.02) 0%, rgba(124, 58, 237, 0.02) 100%);
  opacity: 0;
  transition: opacity var(--transition-base);
}

.pricing-card-enhanced:hover {
  transform: translateY(-12px) scale(1.02);
  box-shadow: var(--shadow-2xl), var(--shadow-blue-lg);
  border-color: var(--accent-blue);
}

.pricing-card-enhanced:hover::before {
  opacity: 1;
}

.pricing-card-featured {
  border-width: 2px;
  border-color: var(--accent-blue);
  box-shadow: var(--shadow-xl), var(--shadow-blue-md);
}

.pricing-card-featured::before {
  opacity: 1;
}

/* ============================================
   SECTION BACKGROUND ENHANCEMENTS
============================================ */
.section-enhanced-light {
  background: linear-gradient(180deg, var(--gray-50) 0%, var(--white) 100%);
  position: relative;
}

.section-enhanced-gradient {
  background: linear-gradient(180deg, var(--white) 0%, var(--gray-50) 50%, var(--white) 100%);
}

.section-enhanced-premium {
  background: linear-gradient(135deg, var(--gray-900) 0%, var(--primary-black) 100%);
  color: var(--white);
  position: relative;
  overflow: hidden;
}

.section-enhanced-premium::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -30%;
  width: 80%;
  height: 80%;
  background: radial-gradient(circle, rgba(0, 102, 255, 0.08) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

/* ============================================
   UTILITY CLASSES
============================================ */
.hover-lift-subtle {
  transition: transform var(--transition-fast) var(--ease-out);
}

.hover-lift-subtle:hover {
  transform: translateY(-2px);
}

.hover-lift {
  transition: transform var(--transition-base) var(--ease-out);
}

.hover-lift:hover {
  transform: translateY(-6px);
}

.hover-scale {
  transition: transform var(--transition-base) var(--ease-smooth);
}

.hover-scale:hover {
  transform: scale(1.05);
}

.hover-glow {
  transition: box-shadow var(--transition-base) var(--ease-out);
}

.hover-glow:hover {
  box-shadow: var(--shadow-blue-lg);
}

/* ============================================
   RESPONSIVE ADJUSTMENTS
============================================ */
@media (max-width: 768px) {
  .card-premium,
  .feature-card-enhanced,
  .pricing-card-enhanced {
    padding: var(--spacing-6);
  }

  .btn-enhanced-primary,
  .btn-enhanced-secondary {
    padding: var(--spacing-3) var(--spacing-6);
  }
}

@media (max-width: 480px) {
  .card-premium,
  .feature-card-enhanced {
    padding: var(--spacing-5);
  }

  .pricing-card-enhanced {
    padding: var(--spacing-7);
  }
}

/* ============================================
   ACCESSIBILITY
============================================ */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

.focus-ring {
  outline: 2px solid var(--accent-blue);
  outline-offset: 2px;
  border-radius: var(--border-radius-sm);
}

button:focus-visible,
a:focus-visible,
input:focus-visible {
  outline: 2px solid var(--accent-blue);
  outline-offset: 2px;
}
