/* ===================================================
   HERO ADVANCED - LIGHT THEME WITH GRADIENTS
   Enhanced | Responsive | Image Ready
   =================================================== */

.bj-hero {
  background: linear-gradient(135deg, #ffffff 0%, #f0f4ff 50%, #f3e8ff 100%) !important;
  position: relative;
  overflow: hidden;
  padding: 60px 0 80px !important;
  border-bottom: 2px solid rgba(37, 99, 235, 0.1);
}

.bj-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: 
    radial-gradient(circle at 15% 30%, rgba(37, 99, 235, 0.08) 0%, transparent 40%),
    radial-gradient(circle at 85% 60%, rgba(124, 58, 237, 0.08) 0%, transparent 40%),
    radial-gradient(circle at 50% 100%, rgba(37, 99, 235, 0.04) 0%, transparent 50%);
  pointer-events: none;
  z-index: 0;
}

.bj-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: 
    url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%232563eb' fill-opacity='0.02'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  opacity: 0.3;
  z-index: 0;
}

.bj-hero-content {
  position: relative;
  z-index: 2;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

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

/* Hero Stats */
.bj-hero-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 40px;
  padding: 24px;
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(10px);
  border-radius: 16px;
  border: 1px solid rgba(37, 99, 235, 0.1);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.06);
}

.bj-hero-stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-align: center;
}

.bj-hero-stat-number {
  font-size: 28px;
  font-weight: 800;
  background: linear-gradient(135deg, #2563eb 0%, #7c3aed 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.bj-hero-stat-label {
  font-size: 13px;
  color: #64748b;
  font-weight: 600;
}

.bj-hero-stat-icon {
  font-size: 24px;
}

.bj-hero-stat-divider {
  width: 2px;
  height: 60px;
  background: linear-gradient(180deg, rgba(37, 99, 235, 0.2) 0%, transparent 100%);
}

/* Hero Toggle */
.bj-hero-toggle {
  margin-bottom: 48px;
}

.bj-hero-toggle-container {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.bj-hero-toggle-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 24px;
  background: rgba(255, 255, 255, 0.8);
  border: 2px solid rgba(37, 99, 235, 0.2);
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 14px;
  font-weight: 600;
  color: #64748b;
}

.bj-hero-toggle-btn:hover,
.bj-hero-toggle-btn.active {
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.1) 0%, rgba(124, 58, 237, 0.1) 100%);
  border-color: #2563eb;
  color: #2563eb;
  box-shadow: 0 8px 24px rgba(37, 99, 235, 0.15);
}

.bj-hero-toggle-icon {
  font-size: 24px;
}

/* Hero Main Content */
.bj-hero-main {
  margin-bottom: 40px;
}

.bj-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.1) 0%, rgba(124, 58, 237, 0.08) 100%);
  border-radius: 50px;
  border: 1px solid rgba(37, 99, 235, 0.2);
  margin-bottom: 24px;
  font-size: 13px;
  font-weight: 600;
  color: #2563eb;
}

.bj-hero-title {
  font-size: 48px;
  font-weight: 900;
  line-height: 1.2;
  color: #0f172a;
  margin-bottom: 16px;
  letter-spacing: -0.5px;
}

.bj-hero-title-highlight {
  background: linear-gradient(135deg, #2563eb 0%, #7c3aed 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.bj-hero-subtitle {
  font-size: 18px;
  line-height: 1.6;
  color: #64748b;
  max-width: 600px;
  margin-bottom: 32px;
}

/* Hero Search Form */
.bj-hero-search {
  width: 100%;
}

.bj-hero-search-form {
  display: flex;
  gap: 16px;
  align-items: flex-end;
  flex-wrap: wrap;
  background: white;
  padding: 24px;
  border-radius: 16px;
  border: 2px solid rgba(37, 99, 235, 0.15);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.08);
  backdrop-filter: blur(10px);
}

.bj-hero-search-fields {
  display: flex;
  gap: 16px;
  flex: 1;
  min-width: 300px;
  flex-wrap: wrap;
}

.bj-hero-search-field {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
  min-width: 200px;
  padding: 12px 16px;
  background: var(--gray-50);
  border-radius: 10px;
  border: 1px solid var(--gray-200);
  transition: all 0.3s ease;
}

.bj-hero-search-field:focus-within {
  background: white;
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.bj-hero-search-field-icon {
  font-size: 20px;
}

.bj-hero-search-input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  font-size: 14px;
  color: #0f172a;
}

.bj-hero-search-input::placeholder {
  color: #94a3b8;
}

/* Hero View Elements */
.bj-hero-view {
  display: none;
}

.bj-hero-view.active {
  display: block;
}

/* Hero Image Section (for background images) */
.bj-hero-image {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  opacity: 0.1;
  pointer-events: none;
  max-width: 400px;
  z-index: 1;
}

/* Gradient text for Better Jobs branding */
.bj-gradient-highlight {
  font-weight: 900;
  color: transparent;
  background: linear-gradient(90deg, #2563eb, #7c3aed, #06b6d4);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Popular tag improvements */
.bj-hero-popular-tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-right: 8px;
  margin-bottom: 8px;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid rgba(37, 99, 235, 0.2);
  background: linear-gradient(120deg, rgba(37, 99, 235, 0.12), rgba(124, 58, 237,0.08));
  color: #1e293b;
  font-weight: 700;
  font-size: 12px;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.bj-hero-popular-tag:hover {
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 8px 20px rgba(37, 99, 235, 0.2);
}

/* Skeleton loading styles */
.bj-hero-skeleton {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #ffffff 0%, #f8fbff 60%, #f5f7ff 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  padding: 40px 20px;
  animation: fadeInSkeleton 0.3s ease forwards;
}

.bj-skeleton-main {
  width: min(1100px, 95%);
  max-width: 1200px;
  display: grid;
  gap: 16px;
}

.bj-skeleton-title,
.bj-skeleton-subtitle,
.bj-skeleton-search,
.bj-skeleton-card {
  border-radius: 12px;
  background: linear-gradient(-90deg, #f0f4ff 0%, #e4ecff 48%, #f0f4ff 100%);
  background-size: 400% 400%;
  animation: skeletonPulse 1.6s ease-in-out infinite;
}

.bj-skeleton-title {
  width: 50%;
  height: 40px;
}

.bj-skeleton-subtitle {
  width: 70%;
  height: 18px;
}

.bj-skeleton-search {
  width: 100%;
  height: 64px;
}

.bj-skeleton-stat-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.bj-skeleton-card {
  height: 80px;
}

@keyframes skeletonPulse {
  0% {
    background-position: 0% 0%;
  }
  50% {
    background-position: 100% 0%;
  }
  100% {
    background-position: 0% 0%;
  }
}

@keyframes fadeInSkeleton {
  from { opacity: 0; }
  to { opacity: 1; }
}

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

@media (max-width: 1024px) {
  .bj-hero-title {
    font-size: 40px;
  }

  .bj-hero-subtitle {
    font-size: 16px;
  }

  .bj-hero-stats {
    gap: 16px;
    padding: 20px;
  }

  .bj-hero-stat-number {
    font-size: 24px;
  }
}

@media (max-width: 768px) {
  .bj-hero {
    padding: 40px 0 60px !important;
  }

  .bj-hero-stats {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    padding: 16px;
    margin-bottom: 32px;
  }

  .bj-hero-stat-divider {
    display: none;
  }

  .bj-hero-stat-number {
    font-size: 20px;
  }

  .bj-hero-stat-label {
    font-size: 12px;
  }

  .bj-hero-toggle-container {
    gap: 12px;
  }

  .bj-hero-title {
    font-size: 32px;
  }

  .bj-hero-subtitle {
    font-size: 16px;
    margin-bottom: 24px;
  }

  .bj-hero-search-form {
    padding: 16px;
    gap: 12px;
    flex-direction: column;
  }

  .bj-hero-search-fields {
    flex-direction: column;
    width: 100%;
  }

  .bj-hero-search-field {
    width: 100%;
  }
}

@media (max-width: 480px) {
  .bj-hero {
    padding: 32px 0 48px !important;
  }

  .bj-hero-stats {
    grid-template-columns: 1fr;
    padding: 12px;
    margin-bottom: 24px;
  }

  .bj-hero-badge {
    margin-bottom: 16px;
  }

  .bj-hero-title {
    font-size: 24px;
    margin-bottom: 12px;
  }

  .bj-hero-subtitle {
    font-size: 14px;
    margin-bottom: 20px;
  }

  .bj-hero-toggle-btn {
    padding: 12px 16px;
    font-size: 13px;
  }

  .bj-hero-toggle-icon {
    font-size: 20px;
  }

  .bj-hero-search-form {
    padding: 12px;
  }

  .bj-hero-search-field {
    padding: 10px 12px;
  }

  .bj-hero-search-input {
    font-size: 13px;
  }
}

/* ===================================================
   ACCESSIBILITY
   =================================================== */

@media (prefers-reduced-motion: reduce) {
  .bj-hero-toggle-btn,
  .bj-hero-search-field {
    transition: none;
  }
}

@media (prefers-contrast: high) {
  .bj-hero {
    border-bottom: 3px solid #2563eb;
  }

  .bj-hero-search-form,
  .bj-hero-stats {
    border: 2px solid #2563eb;
  }
}
