/**
 * Fotober R&D Intelligence Hub - Global Styles
 * Improved Color Palette with Better Contrast
 */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

/* ============================================
   COLOR PALETTE - IMPROVED CONTRAST
   ============================================ */

:root {
  /* Primary Orange Shades - More vibrant */
  --orange-900: #C2410C;  /* Very dark orange */
  --orange-800: #EA580C;  /* Dark orange */
  --orange-700: #F97316;  /* Medium-dark orange */
  --orange-600: #FB923C;  /* Medium orange */
  --orange-500: #FDBA74;  /* Medium-light orange */
  --orange-400: #FED7AA;  /* Light orange */
  --orange-300: #FFEDD5;  /* Very light orange */
  --orange-200: #FFF7ED;  /* Ultra light orange */
  
  /* Coral/Salmon Accents */
  --coral-600: #FF6B35;   /* Vibrant coral */
  --coral-500: #FF8C61;   /* Medium coral */
  --coral-400: #FFB094;   /* Light coral */
  
  /* Background Gradients - Better visibility */
  --bg-gradient: linear-gradient(135deg, #FFF7ED 0%, #FFEDD5 50%, #FED7AA 100%);
  --card-gradient: linear-gradient(135deg, #FFFFFF 0%, #FFF7ED 100%);
  
  /* Primary Gradient - More vibrant */
  --gradient-orange: linear-gradient(135deg, #EA580C 0%, #F97316 25%, #FB923C 50%, #FDBA74 100%);
  --gradient-orange-reverse: linear-gradient(135deg, #FDBA74 0%, #FB923C 50%, #F97316 75%, #EA580C 100%);
  
  /* Shadows */
  --shadow-orange: 0 10px 40px rgba(234, 88, 12, 0.15);
  --shadow-orange-hover: 0 20px 50px rgba(234, 88, 12, 0.25);
}

/* ============================================
   BASE STYLES
   ============================================ */

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--bg-gradient);
  background-attachment: fixed;
  color: #1F2937;
}

/* ============================================
   GRADIENT UTILITIES
   ============================================ */

.gradient-orange {
  background: var(--gradient-orange);
}

.gradient-orange-reverse {
  background: var(--gradient-orange-reverse);
}

.gradient-text-orange {
  background: linear-gradient(135deg, #EA580C, #F97316);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: transparent;
}

/* ============================================
   CARD STYLES
   ============================================ */

.card-white {
  background: white;
  border-radius: 1rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.card-hover {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.card-hover:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-orange-hover);
}

.card-gradient {
  background: var(--card-gradient);
  border: 1px solid var(--orange-300);
}

/* ============================================
   BUTTON STYLES
   ============================================ */

.btn-orange {
  background: var(--gradient-orange);
  color: white;
  font-weight: 600;
  padding: 0.75rem 1.5rem;
  border-radius: 0.5rem;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
}

.btn-orange:hover {
  opacity: 0.9;
  transform: translateY(-2px);
  box-shadow: var(--shadow-orange);
}

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

.btn-outline-orange {
  border: 2px solid var(--orange-600);
  color: var(--orange-700);
  background: transparent;
  font-weight: 600;
  padding: 0.75rem 1.5rem;
  border-radius: 0.5rem;
  transition: all 0.3s ease;
  cursor: pointer;
}

.btn-outline-orange:hover {
  background: var(--orange-200);
  border-color: var(--orange-700);
}

/* ============================================
   BADGE STYLES
   ============================================ */

.badge {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 600;
}

.badge-orange {
  background: var(--orange-200);
  color: var(--orange-800);
}

.badge-success {
  background: #D1FAE5;
  color: #065F46;
}

.badge-warning {
  background: #FEF3C7;
  color: #92400E;
}

.badge-danger {
  background: #FEE2E2;
  color: #991B1B;
}

/* ============================================
   STAT CARDS
   ============================================ */

.stat-card {
  background: white;
  border-radius: 1rem;
  padding: 1.5rem;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.06);
  border-left: 4px solid var(--orange-600);
  transition: all 0.3s ease;
}

.stat-card:hover {
  box-shadow: var(--shadow-orange);
  transform: translateY(-3px);
}

.stat-value {
  font-size: 2rem;
  font-weight: 700;
  color: var(--orange-700);
  line-height: 1;
}

.stat-label {
  font-size: 0.875rem;
  color: #6B7280;
  margin-top: 0.25rem;
}

/* ============================================
   NAVIGATION
   ============================================ */

.nav-link {
  padding: 0.5rem 1rem;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 0.5rem;
  transition: all 0.2s ease;
  backdrop-filter: blur(10px);
}

.nav-link:hover {
  background: rgba(255, 255, 255, 0.25);
  transform: translateY(-1px);
}

/* ============================================
   FORM ELEMENTS
   ============================================ */

.input-orange {
  border: 2px solid var(--orange-300);
  border-radius: 0.5rem;
  padding: 0.75rem 1rem;
  transition: all 0.2s ease;
}

.input-orange:focus {
  outline: none;
  border-color: var(--orange-600);
  box-shadow: 0 0 0 3px rgba(251, 146, 60, 0.1);
}

.textarea-orange {
  border: 2px solid var(--orange-300);
  border-radius: 0.5rem;
  padding: 1rem;
  resize: vertical;
  min-height: 120px;
  transition: all 0.2s ease;
}

.textarea-orange:focus {
  outline: none;
  border-color: var(--orange-600);
  box-shadow: 0 0 0 3px rgba(251, 146, 60, 0.1);
}

.select-orange {
  border: 2px solid var(--orange-300);
  border-radius: 0.5rem;
  padding: 0.75rem 1rem;
  transition: all 0.2s ease;
  background: white;
}

.select-orange:focus {
  outline: none;
  border-color: var(--orange-600);
  box-shadow: 0 0 0 3px rgba(251, 146, 60, 0.1);
}

/* ============================================
   PROVIDER CARDS (AI Tools)
   ============================================ */

.provider-card {
  transition: all 0.3s ease;
  cursor: pointer;
}

.provider-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.provider-card.active {
  border-color: var(--orange-600) !important;
  background: var(--orange-200) !important;
}

/* ============================================
   LOADING STATES
   ============================================ */

.spinner {
  animation: spin 1s linear infinite;
}

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

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

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

/* ============================================
   SECTION TITLES
   ============================================ */

.section-title {
  font-size: 2rem;
  font-weight: 700;
  background: linear-gradient(135deg, #EA580C, #F97316);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ============================================
   FOOTER
   ============================================ */

.footer-gradient {
  background: linear-gradient(135deg, #EA580C 0%, #F97316 50%, #FB923C 100%);
}

/* ============================================
   SCROLLBAR
   ============================================ */

::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

::-webkit-scrollbar-track {
  background: var(--orange-200);
}

::-webkit-scrollbar-thumb {
  background: var(--orange-500);
  border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--orange-600);
}

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 768px) {
  .stat-value {
    font-size: 1.5rem;
  }
  
  .section-title {
    font-size: 1.5rem;
  }
}
