/* ============================================
   TALENT ENGINE — Design System v2.0
   styles.css
   ============================================ */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background-color: #0B132B;
  color: #F1F5F9;
  /* NO padding-bottom — bottom nav removed */
}

h1, h2, h3, h4, h5, h6,
.font-heading {
  font-family: 'Outfit', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  letter-spacing: -0.01em;
}

/* ========================================
   CORE ANIMATIONS
   ======================================== */

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}

.fade-in {
  animation: fadeIn 0.4s ease-out forwards;
}

.animate-fade-in {
  animation: fadeIn 0.4s ease-out forwards;
}

.animate-fade-in-delay-1 { animation-delay: 0.1s; opacity: 0; }
.animate-fade-in-delay-2 { animation-delay: 0.2s; opacity: 0; }
.animate-fade-in-delay-3 { animation-delay: 0.3s; opacity: 0; }

@keyframes aiScoreGlow {
  0%, 100% {
    text-shadow: 0 0 12px rgba(245, 166, 35, 0.4),
                 0 0 24px rgba(245, 166, 35, 0.2);
  }
  50% {
    text-shadow: 0 0 20px rgba(245, 166, 35, 0.7),
                 0 0 40px rgba(245, 166, 35, 0.35);
  }
}

.ai-score-glow {
  animation: aiScoreGlow 3s ease-in-out infinite;
}

@keyframes aiBorderShimmer {
  0%, 100% {
    box-shadow: 0 0 0 1px rgba(245, 166, 35, 0.35),
                inset 0 0 20px rgba(245, 166, 35, 0.03);
  }
  50% {
    box-shadow: 0 0 0 1px rgba(245, 166, 35, 0.6),
                inset 0 0 30px rgba(245, 166, 35, 0.06);
  }
}

.ai-card {
  animation: aiBorderShimmer 4s ease-in-out infinite;
  border: 1px solid rgba(245, 166, 35, 0.35);
}

.ai-card:hover {
  box-shadow: 0 0 0 2px rgba(245, 166, 35, 0.6),
              0 4px 24px rgba(245, 166, 35, 0.15);
  border-color: rgba(245, 166, 35, 0.6);
}

@keyframes aiProcessingPulse {
  0%, 100% { opacity: 0.4; box-shadow: 0 0 4px rgba(245, 166, 35, 0.2); }
  50%      { opacity: 1;   box-shadow: 0 0 16px rgba(245, 166, 35, 0.5); }
}

.ai-processing-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: #F5A623;
  animation: aiProcessingPulse 1.4s ease-in-out infinite;
}

.ai-processing-dot:nth-child(2) { animation-delay: 0.2s; }
.ai-processing-dot:nth-child(3) { animation-delay: 0.4s; }

@keyframes aiSparkle {
  0%, 100% { opacity: 0.6; transform: scale(1); }
  50%      { opacity: 1;   transform: scale(1.3); }
}

.ai-sparkle {
  display: inline-block;
  animation: aiSparkle 2s ease-in-out infinite;
}

.divider-gradient {
  height: 1px;
  background: linear-gradient(90deg,
    transparent 0%,
    rgba(245, 166, 35, 0.4) 30%,
    rgba(245, 166, 35, 0.4) 70%,
    transparent 100%);
}

.hover-lift {
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.hover-lift:hover {
  transform: translateY(-2px);
}

.btn-transition {
  transition: all 0.2s ease;
}

.btn-transition:active {
  transform: scale(0.97);
}

.focus-ring:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(245, 166, 35, 0.35);
}

.focus-ring-gold:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(245, 166, 35, 0.35);
}

/* Scrollbar */
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: #0B132B; }
::-webkit-scrollbar-thumb { background: #1E2A45; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: #2A3A60; }

/* Selection */
::selection {
  background: rgba(245, 166, 35, 0.3);
  color: #FFFFFF;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ========================================
   BUTTONS
   ======================================== */

.btn-standard {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 20px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  border: 1px solid #1E2A45;
  background: #131B2E;
  color: #F1F5F9;
  transition: all 0.2s ease;
}

.btn-standard:hover {
  background: #1A2540;
  border-color: #2A3A60;
}

.btn-standard:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 20px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  background: #F5A623;
  color: #0B132B;
  transition: all 0.2s ease;
}

.btn-primary:hover {
  background: #D4920A;
  box-shadow: 0 2px 12px rgba(245, 166, 35, 0.3);
}

.btn-primary:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.btn-ai {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 20px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  border: 1.5px solid rgba(245, 166, 35, 0.5);
  background: rgba(245, 166, 35, 0.08);
  color: #F5A623;
  transition: all 0.25s ease;
}

.btn-ai:hover {
  background: rgba(245, 166, 35, 0.15);
  border-color: rgba(245, 166, 35, 0.8);
  box-shadow: 0 0 16px rgba(245, 166, 35, 0.25),
              0 4px 20px rgba(245, 166, 35, 0.1);
}

.btn-ai:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 20px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  border: 1px solid transparent;
  background: transparent;
  color: #94A3B8;
  transition: all 0.2s ease;
}

.btn-ghost:hover {
  color: #F1F5F9;
  background: rgba(255, 255, 255, 0.05);
}

/* ========================================
   FORM ELEMENTS
   ======================================== */

.input-standard {
  width: 100%;
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 14px;
  background: #0B132B;
  border: 1px solid #1E2A45;
  color: #F1F5F9;
  transition: all 0.2s ease;
}

.input-standard::placeholder {
  color: #64748B;
}

.input-standard:hover {
  border-color: #2A3A60;
}

.input-standard:focus {
  outline: none;
  border-color: #F5A623;
  box-shadow: 0 0 0 3px rgba(245, 166, 35, 0.2);
}

.select-standard {
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 14px;
  background: #0B132B;
  border: 1px solid #1E2A45;
  color: #F1F5F9;
  cursor: pointer;
  transition: all 0.2s ease;
}

.select-standard:focus {
  outline: none;
  border-color: #F5A623;
  box-shadow: 0 0 0 3px rgba(245, 166, 35, 0.2);
}

.checkbox-standard {
  width: 18px;
  height: 18px;
  accent-color: #F5A623;
  cursor: pointer;
}

/* ========================================
   BADGES
   ======================================== */

.badge-standard {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: 9999px;
  font-size: 12px;
  font-weight: 500;
  background: #1E2A45;
  color: #94A3B8;
}

.badge-ai {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 10px;
  border-radius: 9999px;
  font-size: 12px;
  font-weight: 600;
  background: rgba(245, 166, 35, 0.12);
  color: #F5A623;
  border: 1px solid rgba(245, 166, 35, 0.3);
}

.badge-success {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 10px;
  border-radius: 9999px;
  font-size: 12px;
  font-weight: 500;
  background: rgba(16, 185, 129, 0.12);
  color: #10B981;
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.badge-warning {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 10px;
  border-radius: 9999px;
  font-size: 12px;
  font-weight: 500;
  background: rgba(239, 68, 68, 0.12);
  color: #EF4444;
  border: 1px solid rgba(239, 68, 68, 0.3);
}

/* ========================================
   AI SCORE COMPONENTS
   ======================================== */

.ai-score-circle {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  font-weight: 800;
  color: #F5A623;
  background: rgba(245, 166, 35, 0.1);
  border: 2px solid rgba(245, 166, 35, 0.4);
  box-shadow: 0 0 20px rgba(245, 166, 35, 0.2);
  animation: aiBorderShimmer 4s ease-in-out infinite;
}

/* Small variant for cards */
.ai-score-circle-sm {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 800;
  color: #F5A623;
  background: rgba(245, 166, 35, 0.1);
  border: 2px solid rgba(245, 166, 35, 0.4);
  box-shadow: 0 0 16px rgba(245, 166, 35, 0.15);
  animation: aiBorderShimmer 4s ease-in-out infinite;
}

.ai-score-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 9999px;
  font-weight: 700;
  font-size: 16px;
  color: #F5A623;
  background: rgba(245, 166, 35, 0.1);
  border: 1px solid rgba(245, 166, 35, 0.35);
}

.ai-score-pill .score-value {
  font-size: 24px;
  font-weight: 800;
  text-shadow: 0 0 12px rgba(245, 166, 35, 0.4);
}

/* ========================================
   AI INSIGHT BLOCK
   ======================================== */

.ai-insight-block {
  padding: 16px;
  border-radius: 10px;
  background: #131B2E;
  border-left: 4px solid #F5A623;
  position: relative;
}

.ai-insight-block::before {
  content: '✦';
  position: absolute;
  top: -10px;
  left: 12px;
  font-size: 14px;
  color: #F5A623;
  animation: aiSparkle 2s ease-in-out infinite;
}

/* ========================================
   CARD VARIANTS
   ======================================== */

.card-light {
  background: #FFFFFF;
  color: #0B132B;
  border: 1px solid #E5E7EB;
  border-radius: 12px;
  padding: 20px;
}

.card-light p,
.card-light span {
  color: #0B132B;
}

.card-light .text-muted {
  color: #64748B;
}

/* ========================================
   PROGRESS BAR
   ======================================== */

.progress-bar-track {
  width: 100%;
  height: 6px;
  border-radius: 3px;
  background: #0B132B;
  overflow: hidden;
}

.progress-bar-fill {
  height: 100%;
  border-radius: 3px;
  background: linear-gradient(90deg, #F5A623, #F7B84E);
  transition: width 0.6s ease-out;
}

.progress-bar-fill.ai-processing {
  animation: progressShimmer 2s ease-in-out infinite;
  background: linear-gradient(90deg, #F5A623 0%, #F7B84E 50%, #F5A623 100%);
  background-size: 200% 100%;
}

@keyframes progressShimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* ========================================
   TAGS / CHIPS
   ======================================== */

.tag-chip {
  display: inline-flex;
  align-items: center;
  padding: 4px 12px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 500;
  background: rgba(245, 166, 35, 0.12);
  color: #F7B84E;
  border: 1px solid rgba(245, 166, 35, 0.2);
}

/* ========================================
   TOAST / NOTIFICATION
   ======================================== */

.toast {
  padding: 14px 20px;
  border-radius: 10px;
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  animation: fadeIn 0.3s ease-out;
  background: #131B2E;
  border: 1px solid #1E2A45;
}

.toast-ai {
  border-color: rgba(245, 166, 35, 0.5);
  background: rgba(245, 166, 35, 0.06);
}

/* ========================================
   TABLE
   ======================================== */

.table-row {
  transition: background 0.15s ease;
}

.table-row:hover {
  background: rgba(30, 42, 69, 0.5);
}

/* ========================================
   TOOLTIP
   ======================================== */

.tooltip-trigger {
  position: relative;
  cursor: help;
}

.tooltip-trigger:hover .tooltip-content {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.tooltip-content {
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%) translateY(4px);
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 12px;
  white-space: nowrap;
  background: #1A2540;
  color: #F1F5F9;
  border: 1px solid #2A3A60;
  opacity: 0;
  visibility: hidden;
  transition: all 0.2s ease;
  z-index: 100;
}

/* ========================================
   NAVIGATION HEADER
   ======================================== */

.nav-link {
  font-size: 14px;
  font-weight: 500;
  color: #94A3B8;
  text-decoration: none;
  cursor: pointer;
  transition: color 0.2s ease;
}

.nav-link:hover {
  color: #F1F5F9;
}

.nav-link-active {
  color: #F5A623;
  font-weight: 600;
}

/* ========================================
   PROCESSING OVERLAY (app-specific)
   ======================================== */

.processing-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(11, 19, 43, 0.85);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  animation: fadeIn 0.3s ease-out;
}

.processing-card {
  background: #131B2E;
  border: 1px solid rgba(245, 166, 35, 0.35);
  border-radius: 16px;
  padding: 32px;
  max-width: 420px;
  width: 90%;
  animation: aiBorderShimmer 4s ease-in-out infinite;
}

.processing-card .stage-label {
  font-size: 14px;
  font-weight: 600;
  color: #F5A623;
}

.processing-card .stage-complete {
  color: #10B981;
}

.processing-card .stage-pending {
  color: #94A3B8;
}

/* ========================================
   SCORE COLOR TIERS (app-specific)
   ======================================== */

.score-high {
  color: #F5A623;
  font-weight: 800;
}

.score-mid {
  color: #F7B84E;
  font-weight: 700;
}

.score-low {
  color: #94A3B8;
  font-weight: 600;
}

/* ========================================
   RESPONSIVE — Mobile bottom nav fallback
   ======================================== */

@media (max-width: 1023px) {
  /* Hide top nav center links on mobile */
  .nav-desktop-links {
    display: none;
  }

  /* Show mobile bottom nav */
  .nav-mobile-bottom {
    display: flex;
  }
}

@media (min-width: 1024px) {
  /* Show top nav center links on desktop */
  .nav-desktop-links {
    display: flex;
  }

  /* Hide mobile bottom nav on desktop */
  .nav-mobile-bottom {
    display: none;
  }
}
