/* ===================================
   PASALO EMPLEOS - Design System
   =================================== */

:root {
  /* Color Palette */
  --primary: #E3A72F;
  --primary-light: #f5c05b;
  --primary-dark: #D54B1A;
  --primary-glow: rgba(227, 167, 47, 0.3);

  --accent: #ffffff;
  --accent-dark: #036a6b;
  --accent-glow: rgba(5, 135, 137, 0.25);

  --surface-0: #080604;
  --surface-1: #16100C;
  --surface-2: #251c15;
  --surface-3: #35281e;
  --surface-hover: #453427;

  --text-primary: #ffffff;
  --text-secondary: #F0ECC9;
  --text-muted: #c9c4a7;

  --border: rgba(240, 236, 201, 0.08);
  --border-hover: rgba(240, 236, 201, 0.15);

  --gradient-1: linear-gradient(135deg, #E3A72F, #D54B1A);
  --gradient-2: linear-gradient(135deg, #058789, #E3A72F);
  --gradient-card: linear-gradient(145deg, rgba(37, 28, 21, 0.8), rgba(22, 16, 12, 0.95));

  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 8px 32px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 16px 64px rgba(0, 0, 0, 0.5);
  --shadow-glow: 0 0 40px var(--primary-glow);

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 50px;

  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-fast: 0.15s ease;
  --transition-bounce: 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* ===================================
   Reset & Base
   =================================== */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--surface-0);
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

a {
  color: inherit;
  text-decoration: none;
}

/* ===================================
   Background Particles
   =================================== */
.bg-particles {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.particle {
  position: absolute;
  border-radius: 50%;
  opacity: 0;
  animation: floatParticle 15s infinite ease-in-out;
}

@keyframes floatParticle {
  0%, 100% { opacity: 0; transform: translateY(0) scale(0.5); }
  25% { opacity: 0.6; }
  50% { opacity: 0.3; transform: translateY(-200px) scale(1); }
  75% { opacity: 0.5; }
}

/* ===================================
   Header
   =================================== */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(8, 6, 4, 0.85);
  backdrop-filter: blur(20px) saturate(1.5);
  border-bottom: 1px solid var(--border);
  padding: 16px 0;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.3rem;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
}

.logo:hover { transform: scale(1.03); }

.logo-icon {
  font-size: 1.6rem;
  display: flex;
  align-items: center;
}

.logo-text { letter-spacing: -0.5px; }

.logo-accent {
  background: var(--gradient-1);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stat-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--surface-2);
  padding: 8px 16px;
  border-radius: var(--radius-full);
  border: 1px solid var(--border);
  font-size: 0.85rem;
}

.stat-number {
  font-weight: 700;
  color: var(--accent);
}

.stat-label {
  color: var(--text-secondary);
}

/* ===================================
   Hero
   =================================== */
.hero {
  position: relative;
  z-index: 1;
  padding: 80px 0 48px;
  text-align: center;
}

.hero::before {
  content: '';
  position: absolute;
  top: -100px;
  left: 50%;
  transform: translateX(-50%);
  width: 700px;
  height: 700px;
  background: radial-gradient(circle, var(--primary-glow) 0%, transparent 70%);
  pointer-events: none;
  z-index: -1;
}

.hero-badge {
  display: inline-block;
  padding: 8px 20px;
  background: rgba(227, 167, 47, 0.12);
  border: 1px solid rgba(227, 167, 47, 0.25);
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--primary-light);
  margin-bottom: 24px;
  animation: fadeInUp 0.6s ease;
}

.hero-title {
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -1.5px;
  margin-bottom: 16px;
  animation: fadeInUp 0.6s ease 0.1s both;
}

.gradient-text {
  background: var(--gradient-1);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: 1.1rem;
  color: var(--text-secondary);
  max-width: 520px;
  margin: 0 auto 32px;
  animation: fadeInUp 0.6s ease 0.2s both;
}

/* ===================================
   Search Bar
   =================================== */
.search-bar {
  position: relative;
  max-width: 560px;
  margin: 0 auto;
  animation: fadeInUp 0.6s ease 0.3s both;
}

.search-bar input {
  width: 100%;
  padding: 18px 50px 18px 54px;
  background: var(--surface-2);
  border: 2px solid var(--border);
  border-radius: var(--radius-full);
  color: var(--text-primary);
  font-size: 1rem;
  font-family: inherit;
  outline: none;
  transition: var(--transition);
}

.search-bar input::placeholder {
  color: var(--text-muted);
}

.search-bar input:focus {
  border-color: var(--primary);
  box-shadow: var(--shadow-glow);
  background: var(--surface-3);
}

.search-icon {
  position: absolute;
  left: 20px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.1rem;
  pointer-events: none;
}

.search-clear {
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  background: var(--surface-3);
  border: none;
  color: var(--text-secondary);
  width: 28px;
  height: 28px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.search-clear:hover {
  background: var(--primary);
  color: white;
}

/* ===================================
   Filters
   =================================== */
.filters-section {
  position: relative;
  z-index: 1;
  padding: 0 0 32px;
}

.filter-chips {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
}

.chip {
  padding: 8px 18px;
  border-radius: var(--radius-full);
  border: 1px solid var(--border);
  background: var(--surface-1);
  color: var(--text-secondary);
  font-size: 0.85rem;
  font-weight: 500;
  font-family: inherit;
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
}

.chip:hover {
  background: var(--surface-3);
  border-color: var(--border-hover);
  color: var(--text-primary);
}

.chip.active {
  background: var(--primary);
  border-color: var(--primary);
  color: white;
  box-shadow: 0 4px 16px var(--primary-glow);
}

/* ===================================
   Main Content
   =================================== */
.main-content {
  position: relative;
  z-index: 1;
  padding: 16px 0 80px;
  min-height: 400px;
}

/* ===================================
   Jobs Grid
   =================================== */
.jobs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}

/* ===================================
   Job Card
   =================================== */
.job-card {
  position: relative;
  background: var(--gradient-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  cursor: pointer;
  transition: var(--transition);
  overflow: hidden;
  animation: fadeInUp 0.5s ease both;
}

.job-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gradient-1);
  opacity: 0;
  transition: var(--transition);
}

.job-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-hover);
  box-shadow: var(--shadow-lg), 0 0 30px rgba(227, 167, 47, 0.1);
}

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

.job-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 16px;
}

.job-card-title {
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.3px;
  color: var(--text-primary);
}

.job-card-time {
  font-size: 0.75rem;
  color: var(--text-muted);
  white-space: nowrap;
  padding: 4px 10px;
  background: var(--surface-3);
  border-radius: var(--radius-full);
  flex-shrink: 0;
}

.job-card-company {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  color: var(--primary-light);
  font-weight: 500;
  margin-bottom: 12px;
}

.job-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 16px;
}

.job-meta-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.82rem;
  color: var(--text-secondary);
}

.job-meta-icon {
  font-size: 0.9rem;
  flex-shrink: 0;
}

.job-card-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 20px;
}

.job-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.job-salary-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  background: rgba(227, 167, 47, 0.1);
  border: 1px solid rgba(227, 167, 47, 0.2);
  border-radius: var(--radius-full);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--accent);
}

.job-apply-hint {
  font-size: 0.8rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 4px;
  transition: var(--transition);
}

.job-card:hover .job-apply-hint {
  color: var(--primary-light);
}

/* ===================================
   Skeleton Loading
   =================================== */
.skeleton-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}

.skeleton-card {
  height: 220px;
  background: var(--surface-2);
  border-radius: var(--radius-lg);
  position: relative;
  overflow: hidden;
}

.skeleton-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.04), transparent);
  animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
  100% { left: 100%; }
}

/* ===================================
   Empty State
   =================================== */
.empty-state {
  text-align: center;
  padding: 80px 20px;
}

.empty-icon {
  font-size: 3rem;
  margin-bottom: 16px;
}

.empty-state h3 {
  font-size: 1.3rem;
  margin-bottom: 8px;
  color: var(--text-primary);
}

.empty-state p {
  color: var(--text-secondary);
}

/* ===================================
   Load More
   =================================== */
.load-more-container {
  text-align: center;
  padding: 48px 0 0;
}

.btn-load-more {
  padding: 14px 32px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  color: var(--text-primary);
  font-size: 0.95rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.btn-load-more:hover {
  background: var(--primary);
  border-color: var(--primary);
  box-shadow: var(--shadow-glow);
  transform: translateY(-2px);
}

.btn-arrow {
  transition: var(--transition);
}

.btn-load-more:hover .btn-arrow {
  transform: translateY(3px);
}

/* ===================================
   Modal
   =================================== */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal {
  background: var(--surface-1);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  max-width: 600px;
  width: 100%;
  max-height: 85vh;
  overflow-y: auto;
  position: relative;
  transform: translateY(20px) scale(0.95);
  transition: var(--transition-bounce);
}

.modal-overlay.active .modal {
  transform: translateY(0) scale(1);
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--surface-3);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  font-size: 1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  z-index: 10;
}

.modal-close:hover {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
}

.modal-content {
  padding: 32px 20px;
}

.modal-badge {
  display: inline-block;
  padding: 6px 14px;
  background: rgba(227, 167, 47, 0.12);
  border: 1px solid rgba(227, 167, 47, 0.2);
  border-radius: var(--radius-full);
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--primary-light);
  margin-bottom: 16px;
}

.modal-title {
  font-size: 1.6rem;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.5px;
  margin-bottom: 20px;
}

.modal-image {
  width: 45%;
  min-width: 240px;
  height: auto;
  border-radius: var(--radius-md);
  margin: 0 auto 24px auto;
  display: block;
}

.modal-details {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 28px;
}

.modal-detail-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: var(--surface-2);
  border-radius: var(--radius-md);
  font-size: 0.92rem;
}

.modal-detail-icon {
  font-size: 1.2rem;
  flex-shrink: 0;
}

.modal-detail-label {
  color: var(--text-muted);
  font-size: 0.8rem;
  margin-right: 8px;
}

.modal-detail-value {
  color: var(--text-primary);
  font-weight: 500;
}

.modal-description {
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 32px;
  padding: 16px;
  background: var(--surface-2);
  border-radius: var(--radius-md);
  border-left: 3px solid var(--primary);
}

.modal-cta {
  display: block;
  width: 100%;
  padding: 18px;
  background: var(--gradient-1);
  border: none;
  border-radius: var(--radius-md);
  color: white;
  font-size: 1.05rem;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  text-align: center;
  transition: var(--transition);
  letter-spacing: 0.3px;
}

.modal-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px var(--primary-glow);
}

.modal-cta-sub {
  display: block;
  text-align: center;
  margin-top: 12px;
  font-size: 0.78rem;
  color: var(--text-muted);
}

/* ===================================
   Footer
   =================================== */
.footer {
  position: relative;
  z-index: 1;
  border-top: 1px solid var(--border);
  padding: 48px 0;
  background: var(--surface-1);
}

.footer-inner {
  text-align: center;
}

.footer-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.footer-text {
  color: var(--text-muted);
  font-size: 0.85rem;
  margin-bottom: 20px;
}

.footer-links {
  display: flex;
  gap: 24px;
  justify-content: center;
}

.footer-links a {
  color: var(--text-secondary);
  font-size: 0.85rem;
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: 6px;
}

.footer-links a:hover {
  color: var(--primary-light);
}

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

/* Stagger animation for cards */
.job-card:nth-child(1) { animation-delay: 0s; }
.job-card:nth-child(2) { animation-delay: 0.05s; }
.job-card:nth-child(3) { animation-delay: 0.1s; }
.job-card:nth-child(4) { animation-delay: 0.15s; }
.job-card:nth-child(5) { animation-delay: 0.2s; }
.job-card:nth-child(6) { animation-delay: 0.25s; }
.job-card:nth-child(7) { animation-delay: 0.3s; }
.job-card:nth-child(8) { animation-delay: 0.35s; }
.job-card:nth-child(9) { animation-delay: 0.4s; }

/* ===================================
   Responsive
   =================================== */
@media (max-width: 768px) {
  .hero {
    padding: 48px 0 32px;
  }
  .hero::before {
   width: 350px;
  height: 350px;

}

  .hero-title {
    font-size: 2rem;
  }

  .hero-subtitle {
    font-size: 0.95rem;
  }

  .jobs-grid {
    grid-template-columns: 1fr;
  }

  .skeleton-grid {
    grid-template-columns: 1fr;
  }

  .job-card {
    padding: 20px;
  }

  .modal {
    max-height: 90vh;
    border-radius: var(--radius-lg);
  }

  .modal-content {
    padding: 32px 20px;
  }

  .modal-title {
    font-size: 1.3rem;
  }

  .filter-chips {
    justify-content: flex-start;
    overflow-x: auto;
    flex-wrap: nowrap;
    padding-bottom: 8px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .filter-chips::-webkit-scrollbar {
    display: none;
  }

  .stat-pill {
    display: none;
  }

  .header-stats {
    display: none;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 16px;
  }

  .hero-title {
    font-size: 1.7rem;
  }

  .search-bar input {
    padding: 14px 44px 14px 48px;
    font-size: 0.9rem;
  }
}

/* ===================================
   Scrollbar
   =================================== */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--surface-0);
}

::-webkit-scrollbar-thumb {
  background: var(--surface-3);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--primary-dark);
}

/* Modal image */
.modal-image {
  width: 60%;
  border-radius: var(--radius-md);
  margin-bottom: 24px;
  border: 1px solid var(--border);
}
