/* ===================================================
   REUSABLE COMPONENTS STYLING
   =================================================== */

/* Section Header Component */
.bj-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 32px;
  padding: 0 0 16px;
  border-bottom: 2px solid #f0f0f0;
}

.bj-section-icon {
  font-size: 32px;
  flex-shrink: 0;
}

.bj-section-title-group {
  flex: 1;
}

.bj-section-title {
  font-size: 28px;
  font-weight: 700;
  color: #1f2937;
  margin: 0;
  line-height: 1.2;
}

.bj-section-subtitle {
  font-size: 14px;
  color: #6b7280;
  margin: 4px 0 0;
}

.bj-view-all {
  font-size: 13px;
  font-weight: 600;
  color: #2563eb;
  text-decoration: none;
  transition: all 0.2s;
  white-space: nowrap;
  padding: 8px 16px;
  border-radius: 6px;
}

.bj-view-all:hover {
  background: #eff6ff;
  color: #1d4ed8;
}

/* Job Card Component */
.bj-job-card {
  display: block;
  background: white;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 16px;
  text-decoration: none;
  color: inherit;
  transition: all 0.2s;
  cursor: pointer;
}

.bj-job-card:hover {
  border-color: #2563eb;
  box-shadow: 0 4px 16px rgba(37, 99, 235, 0.12);
  transform: translateY(-2px);
}

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

.bj-job-title {
  font-size: 16px;
  font-weight: 700;
  color: #1f2937;
  margin: 0 0 6px;
  line-height: 1.3;
}

.bj-job-company {
  font-size: 13px;
  color: #6b7280;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 6px;
}

.bj-verified-badge {
  display: inline-block;
  background: #dcfce7;
  color: #166534;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 600;
}

.bj-job-salary {
  font-size: 15px;
  font-weight: 700;
  color: #2563eb;
  white-space: nowrap;
}

.bj-job-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  font-size: 12px;
  color: #9ca3af;
}

.bj-job-location {
  display: flex;
  align-items: center;
  gap: 4px;
}

.bj-job-posted {
  font-size: 11px;
  color: #bfdbfe;
}

/* Category Card Component */
.bj-category-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px 16px;
  background: white;
  border: 2px solid #e5e7eb;
  border-radius: 12px;
  text-decoration: none;
  color: inherit;
  transition: all 0.3s;
  text-align: center;
  cursor: pointer;
  min-height: 160px;
  gap: 12px;
}

.bj-category-card:hover {
  border-color: #2563eb;
  box-shadow: 0 8px 24px rgba(37, 99, 235, 0.15);
  transform: translateY(-4px);
  background: #eff6ff;
}

.bj-category-icon {
  font-size: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.bj-category-title {
  font-size: 16px;
  font-weight: 700;
  color: #1f2937;
  margin: 0;
  line-height: 1.3;
}

.bj-category-count {
  font-size: 13px;
  color: #2563eb;
  font-weight: 600;
  margin: 0;
}

/* Color variants for categories */
.bj-category-card.blue { border-color: #dbeafe; background: #f0f9ff; }
.bj-category-card.blue:hover { border-color: #0284c7; background: #e0f2fe; }

.bj-category-card.green { border-color: #dcfce7; background: #f0fdf4; }
.bj-category-card.green:hover { border-color: #15803d; background: #dcfce7; }

.bj-category-card.purple { border-color: #e9d5ff; background: #faf5ff; }
.bj-category-card.purple:hover { border-color: #7c3aed; background: #f3e8ff; }

.bj-category-card.orange { border-color: #fed7aa; background: #fffbeb; }
.bj-category-card.orange:hover { border-color: #ea580c; background: #fef3c7; }

/* Stat Card Component */
.bj-stat-card {
  display: flex;
  align-items: center;
  gap: 16px;
  background: white;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 20px;
  text-decoration: none;
  color: inherit;
  transition: all 0.2s;
}

.bj-stat-card:hover {
  border-color: #2563eb;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.1);
}

.bj-stat-icon {
  font-size: 32px;
  flex-shrink: 0;
}

.bj-stat-content {
  flex: 1;
}

.bj-stat-value {
  font-size: 24px;
  font-weight: 700;
  color: #2563eb;
  line-height: 1.2;
}

.bj-stat-label {
  font-size: 13px;
  color: #6b7280;
  margin-top: 4px;
  font-weight: 500;
}

/* Responsive */
@media (max-width: 768px) {
  .bj-section-header {
    flex-direction: column;
    align-items: flex-start;
    margin-bottom: 24px;
  }

  .bj-section-title {
    font-size: 22px;
  }

  .bj-category-card {
    min-height: 140px;
    padding: 20px 12px;
  }

  .bj-category-icon {
    font-size: 32px;
  }

  .bj-category-title {
    font-size: 14px;
  }

  .bj-job-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .bj-job-salary {
    align-self: flex-start;
  }
}

@media (max-width: 640px) {
  .bj-section-title {
    font-size: 20px;
  }

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

  .bj-stat-card {
    padding: 16px;
  }

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

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

/* ============================================
   Section Spacing & Layout Utilities
   ============================================ */

section {
  position: relative;
}

section + section {
  margin-top: 0;
}

.bj-container {
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 16px;
  padding-right: 16px;
}

/* Responsive container padding */
@media (max-width: 1024px) {
  .bj-container {
    max-width: 960px;
  }
}

@media (max-width: 768px) {
  .bj-container {
    max-width: 600px;
    padding-left: 12px;
    padding-right: 12px;
  }
}

@media (max-width: 640px) {
  .bj-container {
    max-width: 100%;
    padding-left: 12px;
    padding-right: 12px;
  }
}
