/* NextHired - Professional Modern UI & Mobile-First Theme */
:root {
  --bg-main: #f8fafc;
  --bg-card: #ffffff;
  --border-light: #e2e8f0;
  --border-hover: #cbd5e1;
  --brand-blue: #2563eb;
  --brand-indigo: #4f46e5;
  --brand-purple: #7c3aed;
  --brand-gradient: linear-gradient(135deg, #1d4ed8 0%, #4f46e5 50%, #7c3aed 100%);
  --brand-gradient-hover: linear-gradient(135deg, #1e40af 0%, #4338ca 50%, #6d28d9 100%);
  --text-main: #0f172a;
  --text-body: #334155;
  --text-muted: #64748b;
  --text-light: #94a3b8;
  --success: #059669;
  --success-bg: #ecfdf5;
  --amber: #d97706;
  --amber-bg: #fffbeb;
  --rose: #e11d48;
  --rose-bg: #fff1f2;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background-color: var(--bg-main);
  color: var(--text-body);
  line-height: 1.5;
  min-height: 100vh;
  overflow-x: hidden;
}

/* Scrollbar customization */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: #f1f5f9;
}
::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 9999px;
}
::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}

/* Card Styling */
.clean-card {
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: 16px;
  box-shadow: 0 1px 3px 0 rgba(15, 23, 42, 0.04), 0 1px 2px -1px rgba(15, 23, 42, 0.04);
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.clean-card:hover {
  border-color: #93c5fd;
  transform: translateY(-2px);
  box-shadow: 0 12px 24px -6px rgba(37, 99, 235, 0.1), 0 4px 6px -4px rgba(37, 99, 235, 0.04);
}

/* Primary Action Button */
.btn-primary {
  background: var(--brand-gradient);
  color: #ffffff;
  font-weight: 600;
  border-radius: 10px;
  transition: all 0.2s ease;
  box-shadow: 0 2px 8px rgba(79, 70, 229, 0.28);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.btn-primary:hover {
  background: var(--brand-gradient-hover);
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(79, 70, 229, 0.4);
}

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

/* Secondary Button */
.btn-secondary {
  background: #f1f5f9;
  color: #334155;
  font-weight: 600;
  border-radius: 10px;
  transition: all 0.15s ease;
  border: 1px solid var(--border-light);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.btn-secondary:hover {
  background: #e2e8f0;
  color: #0f172a;
}

/* Filter Pill Buttons */
.filter-btn {
  padding: 6px 14px;
  border-radius: 9999px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-muted);
  background: #ffffff;
  border: 1px solid var(--border-light);
  cursor: pointer;
  transition: all 0.15s ease;
  white-space: nowrap;
}

.filter-btn:hover {
  color: var(--text-main);
  background: #f8fafc;
  border-color: #cbd5e1;
}

.filter-btn.active {
  color: #ffffff;
  background: var(--brand-gradient);
  border-color: transparent;
  box-shadow: 0 2px 8px rgba(79, 70, 229, 0.3);
}

/* Company Chips */
.company-badge-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 12px;
  font-size: 0.8rem;
  font-weight: 600;
  background: #ffffff;
  border: 1px solid var(--border-light);
  color: #334155;
  transition: all 0.15s ease;
  white-space: nowrap;
  cursor: pointer;
}

.company-badge-btn:hover {
  border-color: #93c5fd;
  background: #f8fafc;
  color: #1e40af;
  transform: translateY(-1px);
}

.company-badge-btn.active {
  border-color: #3b82f6;
  background: #eff6ff;
  color: #1d4ed8;
  box-shadow: 0 1px 3px rgba(37, 99, 235, 0.15);
}

/* Live Activity Ticker Animation */
.activity-ticker {
  background: #ffffff;
  border-bottom: 1px solid #e2e8f0;
}

.ticker-track {
  display: inline-block;
  white-space: nowrap;
  animation: ticker-slide 42s linear infinite;
}

.ticker-track:hover {
  animation-play-state: paused;
}

@keyframes ticker-slide {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* Modal Overlay */
.modal-overlay {
  background-color: rgba(15, 23, 42, 0.55);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

/* Badges */
.badge-service-mnc {
  background: #f0fdf4;
  color: #166534;
  border: 1px solid #bbf7d0;
}

.badge-product-mnc {
  background: #eff6ff;
  color: #1e40af;
  border: 1px solid #bfdbfe;
}

.badge-ai-unicorn {
  background: #faf5ff;
  color: #6b21a8;
  border: 1px solid #e9d5ff;
}

/* Responsive bottom safe-area for mobile */
@media (max-width: 768px) {
  .mobile-bottom-nav {
    padding-bottom: max(10px, env(safe-area-inset-bottom));
  }
}
