/* ============================================
   SWIPEHIRE — Global Styles
   Swipe-Style Job Marketplace Where Candidates Are in Control
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@400;500;600;700;800;900&family=DM+Sans:wght@400;500;600;700&display=swap');

/* --- CSS VARIABLES --- */
:root {
  --bg-primary: #0a0a19;
  --bg-card: linear-gradient(165deg, #1a1a2e 0%, #16213e 100%);
  --bg-card-hover: linear-gradient(165deg, #1e1e35 0%, #1a2745 100%);
  --text-primary: #f1f5f9;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --text-dim: #475569;
  --accent-indigo: #6366f1;
  --accent-violet: #8b5cf6;
  --accent-pink: #ec4899;
  --accent-green: #10b981;
  --accent-amber: #f59e0b;
  --accent-red: #ef4444;
  --accent-indigo-light: #a5b4fc;
  --accent-green-light: #6ee7b7;
  --border-subtle: rgba(255,255,255,0.06);
  --border-light: rgba(255,255,255,0.1);
  --border-medium: rgba(255,255,255,0.15);
  --glass-bg: rgba(255,255,255,0.05);
  --glass-bg-hover: rgba(255,255,255,0.08);
  --gradient-primary: linear-gradient(135deg, #6366f1, #8b5cf6);
  --gradient-hero: linear-gradient(135deg, #6366f1, #a855f7, #ec4899);
  --shadow-card: 0 20px 60px rgba(0,0,0,0.4), 0 0 0 1px rgba(255,255,255,0.08);
  --shadow-button: 0 8px 32px rgba(99,102,241,0.3);
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 20px;
  --radius-2xl: 24px;
  --font-display: 'Outfit', sans-serif;
  --font-body: 'DM Sans', sans-serif;
  --max-width: 1200px;
}

/* --- RESET --- */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font-family: inherit; }
::selection { background: rgba(99,102,241,0.3); }
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.1); border-radius: 3px; }
input::placeholder, textarea::placeholder { color: var(--text-dim); }

/* --- LAYOUT --- */
.container { max-width: var(--max-width); margin: 0 auto; padding: 0 24px; }
.section { padding: 80px 24px; }
.section--tight { padding: 60px 24px; }

/* --- TYPOGRAPHY --- */
.heading-1 {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(36px, 6vw, 64px);
  color: var(--text-primary);
  line-height: 1.1;
  letter-spacing: -2px;
}
.heading-2 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(28px, 4vw, 36px);
  color: var(--text-primary);
  line-height: 1.2;
}
.heading-3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 20px;
  color: var(--text-primary);
}
.heading-4 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 17px;
  color: var(--text-primary);
}
.text-body { font-size: 16px; color: var(--text-secondary); line-height: 1.7; }
.text-small { font-size: 14px; color: var(--text-secondary); line-height: 1.6; }
.text-xs { font-size: 12px; color: var(--text-muted); }
.text-gradient {
  background: var(--gradient-hero);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* --- NAVIGATION --- */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10, 10, 25, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-subtle);
}
.nav__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  padding: 0 24px;
}
.nav__logo {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
}
.nav__logo-icon {
  width: 36px; height: 36px;
  border-radius: var(--radius-md);
  background: var(--gradient-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
}
.nav__logo-text {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 20px;
  letter-spacing: -0.5px;
}
.nav__logo-text span { color: var(--accent-indigo); }
.nav__links { display: flex; gap: 4px; align-items: center; }
.nav__link {
  background: none;
  border: none;
  border-radius: 8px;
  padding: 7px 14px;
  cursor: pointer;
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--text-secondary);
  transition: all 0.2s;
}
.nav__link:hover { color: var(--accent-indigo-light); background: rgba(99,102,241,0.08); }
.nav__link--active { color: var(--accent-indigo-light); background: rgba(99,102,241,0.15); font-weight: 600; }
.nav__toggle {
  display: flex;
  align-items: center;
  gap: 2px;
  background: var(--glass-bg);
  border-radius: 8px;
  padding: 3px;
  margin-left: 8px;
}
.nav__toggle-btn {
  background: none;
  border: none;
  border-radius: var(--radius-sm);
  padding: 5px 12px;
  cursor: pointer;
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: capitalize;
  transition: all 0.2s;
}
.nav__toggle-btn--active {
  background: var(--gradient-primary);
  color: #fff;
}

/* Mobile nav */
.nav__mobile-btn {
  display: none;
  background: none;
  border: none;
  color: var(--text-secondary);
  cursor: pointer;
  padding: 8px;
}
.nav__mobile-menu {
  display: none;
  position: fixed;
  top: 64px; left: 0; right: 0; bottom: 0;
  background: rgba(10,10,25,0.98);
  backdrop-filter: blur(20px);
  padding: 24px;
  z-index: 99;
  flex-direction: column;
  gap: 8px;
}
.nav__mobile-menu.open { display: flex; }
.nav__mobile-menu .nav__link {
  display: block;
  padding: 14px 16px;
  font-size: 16px;
  border-radius: var(--radius-md);
}

@media (max-width: 768px) {
  .nav__links { display: none; }
  .nav__mobile-btn { display: block; }
}

/* --- BUTTONS --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: none;
  border-radius: 12px;
  padding: 14px 28px;
  cursor: pointer;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 15px;
  transition: all 0.3s ease;
  text-decoration: none;
}
.btn--primary {
  background: var(--gradient-primary);
  color: #fff;
  box-shadow: var(--shadow-button);
}
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 12px 40px rgba(99,102,241,0.4); }
.btn--secondary {
  background: var(--glass-bg);
  border: 1px solid var(--border-medium);
  color: var(--text-primary);
}
.btn--secondary:hover { background: var(--glass-bg-hover); }
.btn--green {
  background: linear-gradient(135deg, #10b981, #059669);
  color: #fff;
}
.btn--outline-green {
  background: rgba(16,185,129,0.1);
  border: 1px solid rgba(16,185,129,0.3);
  color: var(--accent-green);
}
.btn--large { padding: 16px 32px; font-size: 16px; }
.btn--small { padding: 8px 16px; font-size: 13px; border-radius: 8px; }
.btn--full { width: 100%; justify-content: center; }
.btn--round {
  width: 64px; height: 64px; border-radius: 50%;
  padding: 0; justify-content: center;
}

/* --- CARDS --- */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 24px;
  transition: all 0.3s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: 0 12px 40px rgba(0,0,0,0.3); }
.card--featured { border-color: rgba(245, 158, 11, 0.3); }
.card--flat { background: rgba(255,255,255,0.03); }
.card--flat:hover { transform: none; box-shadow: none; }
.card--glass {
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 24px;
}

/* --- BADGES --- */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: 20px;
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 500;
}
.badge--indigo { background: rgba(99,102,241,0.15); border: 1px solid rgba(99,102,241,0.25); color: var(--accent-indigo-light); }
.badge--green { background: rgba(16,185,129,0.1); border: 1px solid rgba(16,185,129,0.2); color: var(--accent-green-light); }
.badge--amber { background: linear-gradient(135deg, #f59e0b, #d97706); color: #fff; border-radius: var(--radius-sm); font-weight: 600; letter-spacing: 0.5px; text-transform: uppercase; }
.badge--ghost {
  padding: 6px 12px;
  border-radius: 8px;
  background: var(--glass-bg);
  border: 1px solid rgba(255,255,255,0.08);
  color: var(--text-secondary);
  font-size: 13px;
}

/* --- TAGS --- */
.tag-row { display: flex; gap: 8px; flex-wrap: wrap; }
.tag {
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 12px;
}

/* --- AVATAR --- */
.avatar {
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-lg);
  font-family: var(--font-display);
  font-weight: 700;
}
.avatar--sm { width: 40px; height: 40px; font-size: 13px; border-radius: var(--radius-md); }
.avatar--md { width: 48px; height: 48px; font-size: 16px; border-radius: 12px; }
.avatar--lg { width: 64px; height: 64px; font-size: 22px; }
.avatar--indigo {
  background: linear-gradient(135deg, rgba(99,102,241,0.2), rgba(139,92,246,0.1));
  color: var(--accent-indigo-light);
  border: 1px solid rgba(99,102,241,0.2);
}

/* --- FORM ELEMENTS --- */
.form-group { margin-bottom: 16px; }
.form-label {
  display: block;
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 6px;
}
.form-input {
  width: 100%;
  padding: 12px 16px;
  border-radius: var(--radius-md);
  background: var(--glass-bg);
  border: 1px solid var(--border-light);
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--text-primary);
  outline: none;
  transition: border-color 0.2s;
}
.form-input:focus { border-color: rgba(99,102,241,0.4); }
.form-textarea { resize: vertical; min-height: 100px; }

/* --- PROGRESS BAR --- */
.progress { display: flex; gap: 4px; margin-bottom: 40px; }
.progress__step {
  flex: 1;
  height: 4px;
  border-radius: 2px;
  background: rgba(255,255,255,0.08);
  transition: all 0.4s ease;
}
.progress__step--active {
  background: var(--gradient-primary);
}

/* --- GRID LAYOUTS --- */
.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; }
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
.grid-4-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 24px; }

/* --- STAT BLOCK --- */
.stat { text-align: center; padding: 24px; }
.stat__value {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 40px;
  line-height: 1;
}
.stat__label {
  font-size: 14px;
  color: var(--text-muted);
  margin-top: 8px;
}

/* --- ICON CONTAINERS --- */
.icon-box {
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
}
.icon-box--sm { width: 36px; height: 36px; }
.icon-box--md { width: 48px; height: 48px; }
.icon-box--lg { width: 64px; height: 64px; }
.icon-box--xl { width: 80px; height: 80px; border-radius: 20px; }

/* --- SWIPE CARD --- */
.swipe-area {
  position: relative;
  width: 100%;
  max-width: 420px;
  height: 520px;
  display: flex;
  justify-content: center;
  margin: 0 auto;
}
.swipe-actions {
  display: flex;
  gap: 20px;
  justify-content: center;
  margin-top: 28px;
}
.swipe-btn {
  width: 64px; height: 64px;
  border-radius: 50%;
  border: 2px solid;
  background: transparent;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}
.swipe-btn:hover { transform: scale(1.1); }
.swipe-btn--pass { border-color: rgba(239,68,68,0.3); color: var(--accent-red); background: rgba(239,68,68,0.1); }
.swipe-btn--like { border-color: rgba(16,185,129,0.3); color: var(--accent-green); background: rgba(16,185,129,0.1); }
.swipe-btn--super { border-color: rgba(245,158,11,0.3); color: var(--accent-amber); background: rgba(245,158,11,0.1); }

/* --- MATCH OVERLAY --- */
.match-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.85);
  backdrop-filter: blur(12px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 300;
  animation: fadeIn 0.3s ease;
}
.match-overlay__title {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 42px;
}

/* --- MODAL --- */
.modal-backdrop {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.7);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 200;
  padding: 24px;
}
.modal {
  background: linear-gradient(165deg, #1a1a2e, #16213e);
  border-radius: var(--radius-2xl);
  padding: 36px;
  max-width: 600px;
  width: 100%;
  max-height: 80vh;
  overflow: auto;
  border: 1px solid rgba(255,255,255,0.08);
}

/* --- HERO BACKGROUNDS --- */
.hero-bg {
  position: relative;
  overflow: hidden;
}
.hero-bg::before {
  content: '';
  position: absolute;
  top: 10%; left: 10%;
  width: 300px; height: 300px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(99,102,241,0.08), transparent);
  filter: blur(60px);
}
.hero-bg::after {
  content: '';
  position: absolute;
  bottom: 20%; right: 15%;
  width: 200px; height: 200px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(236,72,153,0.06), transparent);
  filter: blur(40px);
}

/* --- UPLOAD DROPZONE --- */
.dropzone {
  border: 2px dashed var(--border-medium);
  border-radius: var(--radius-xl);
  padding: 60px 40px;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
  background: rgba(255,255,255,0.02);
}
.dropzone:hover, .dropzone--dragover {
  border-color: var(--accent-indigo);
  background: rgba(99,102,241,0.05);
}
.dropzone--uploaded {
  border-color: var(--accent-green);
  background: rgba(16,185,129,0.05);
}

/* --- TESTIMONIAL --- */
.stars { display: flex; gap: 2px; color: var(--accent-amber); margin-bottom: 12px; }

/* --- ACTIVITY FEED --- */
.activity-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 16px;
  border-radius: var(--radius-md);
  background: rgba(255,255,255,0.02);
}
.activity-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

/* --- FOOTER --- */
.footer {
  border-top: 1px solid var(--border-subtle);
  padding: 60px 24px 40px;
  margin-top: 60px;
}
.footer__grid {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.5fr repeat(4, 1fr);
  gap: 40px;
  margin-bottom: 40px;
}
.footer__section-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 14px;
  color: var(--text-primary);
  margin-bottom: 16px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}
.footer__link {
  display: block;
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 10px;
  cursor: pointer;
  transition: color 0.2s;
}
.footer__link:hover { color: var(--accent-indigo-light); }
.footer__bottom {
  max-width: var(--max-width);
  margin: 0 auto;
  border-top: 1px solid var(--border-subtle);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

@media (max-width: 768px) {
  .footer__grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
  .footer__grid { grid-template-columns: 1fr; }
}

/* --- ANIMATIONS --- */
@keyframes fadeIn {
  from { opacity: 0; transform: scale(0.95); }
  to { opacity: 1; transform: scale(1); }
}
@keyframes slideUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes slideIn {
  from { opacity: 0; transform: translateX(-20px); }
  to { opacity: 1; transform: translateX(0); }
}
.animate-fade { animation: fadeIn 0.5s ease forwards; }
.animate-slide { animation: slideUp 0.6s ease forwards; }
.animate-delay-1 { animation-delay: 0.1s; opacity: 0; }
.animate-delay-2 { animation-delay: 0.2s; opacity: 0; }
.animate-delay-3 { animation-delay: 0.3s; opacity: 0; }
.animate-delay-4 { animation-delay: 0.4s; opacity: 0; }

/* --- UTILITY --- */
.text-center { text-align: center; }
.flex { display: flex; }
.flex-col { flex-direction: column; }
.flex-center { align-items: center; justify-content: center; }
.flex-between { justify-content: space-between; }
.flex-wrap { flex-wrap: wrap; }
.gap-8 { gap: 8px; }
.gap-10 { gap: 10px; }
.gap-12 { gap: 12px; }
.gap-14 { gap: 14px; }
.gap-16 { gap: 16px; }
.gap-20 { gap: 20px; }
.gap-24 { gap: 24px; }
.mb-8 { margin-bottom: 8px; }
.mb-12 { margin-bottom: 12px; }
.mb-16 { margin-bottom: 16px; }
.mb-20 { margin-bottom: 20px; }
.mb-24 { margin-bottom: 24px; }
.mb-32 { margin-bottom: 32px; }
.mb-40 { margin-bottom: 40px; }
.mb-48 { margin-bottom: 48px; }
.mx-auto { margin-left: auto; margin-right: auto; }
.w-full { width: 100%; }
.max-w-500 { max-width: 500px; }
.max-w-560 { max-width: 560px; }
.max-w-700 { max-width: 700px; }
.max-w-800 { max-width: 800px; }
.max-w-900 { max-width: 900px; }
.max-w-1000 { max-width: 1000px; }
.max-w-1100 { max-width: 1100px; }
.relative { position: relative; }
.z-1 { z-index: 1; }
.hidden { display: none; }
