/* ===================================================
   IMAGES & MEDIA - PLACEHOLDER READY
   Responsive | Optimized | Professional
   =================================================== */

/* ===================================================
   HERO SECTION IMAGES
   =================================================== */

.bj-hero-image {
  position: relative;
  width: 100%;
  max-width: 500px;
  margin: 0 auto;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.1);
}

.bj-hero-image img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.bj-hero-image:hover img {
  transform: scale(1.05);
}

/* Placeholder gradient while loading */
.bj-hero-image::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.1) 0%, rgba(124, 58, 237, 0.1) 100%);
  z-index: -1;
}

/* ===================================================
   JOB CARD IMAGES
   =================================================== */

.bj-card-image {
  width: 100%;
  height: 240px;
  overflow: hidden;
  border-radius: 12px 12px 0 0;
  background: linear-gradient(135deg, #f0f4ff 0%, #f3e8ff 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}

.bj-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.card:hover .bj-card-image img {
  transform: scale(1.08);
}

/* Placeholder for missing images */
.bj-card-image.placeholder {
  background: linear-gradient(135deg, #e0e7ff 0%, #f3e8ff 100%);
  font-size: 48px;
  color: rgba(37, 99, 235, 0.2);
}

/* ===================================================
   COMPANY LOGO SECTION
   =================================================== */

.bj-company-logo {
  width: 100%;
  max-width: 200px;
  height: 150px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: white;
  border: 2px solid #e5e7eb;
  border-radius: 12px;
  padding: 16px;
  transition: all 0.3s ease;
}

.bj-company-logo:hover {
  border-color: #2563eb;
  box-shadow: 0 8px 24px rgba(37, 99, 235, 0.15);
}

.bj-company-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: brightness(0.9);
  transition: filter 0.3s ease;
}

.bj-company-logo:hover img {
  filter: brightness(1);
}

/* ===================================================
   PROFILE IMAGES / AVATARS
   =================================================== */

.bj-avatar {
  width: 100%;
  aspect-ratio: 1;
  border-radius: 50%;
  overflow: hidden;
  background: linear-gradient(135deg, #e0e7ff 0%, #f3e8ff 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 3px solid white;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.bj-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.bj-avatar.placeholder {
  font-size: 48px;
  color: rgba(37, 99, 235, 0.2);
}

/* ===================================================
   TESTIMONIAL IMAGES
   =================================================== */

.bj-testimonial-image {
  width: 80px;
  height: 80px;
  border-radius: 12px;
  overflow: hidden;
  background: linear-gradient(135deg, #e0e7ff 0%, #f3e8ff 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 16px;
  flex-shrink: 0;
}

.bj-testimonial-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ===================================================
   FEATURE / SECTION IMAGES
   =================================================== */

.bj-feature-image {
  width: 100%;
  max-width: 400px;
  height: 300px;
  overflow: hidden;
  border-radius: 16px;
  background: linear-gradient(135deg, #e0e7ff 0%, #f3e8ff 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
}

.bj-feature-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ===================================================
   BACKGROUND IMAGES
   =================================================== */

.bj-section-with-bg {
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  position: relative;
}

.bj-section-with-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.8);
  z-index: 0;
}

.bj-section-with-bg > * {
  position: relative;
  z-index: 1;
}

/* ===================================================
   IMAGE LOADING STATES
   =================================================== */

.bj-image-loading {
  background: linear-gradient(90deg, #f0f4ff 25%, #e0e7ff 50%, #f0f4ff 75%);
  background-size: 200% 100%;
  animation: loading 1.5s infinite;
}

@keyframes loading {
  0% {
    background-position: 200% 0;
  }
  100% {
    background-position: -200% 0;
  }
}

/* ===================================================
   RESPONSIVE IMAGE SIZING
   =================================================== */

@media (max-width: 768px) {
  .bj-hero-image {
    max-width: 100%;
  }

  .bj-card-image {
    height: 200px;
  }

  .bj-feature-image {
    max-width: 100%;
    height: 250px;
  }

  .bj-company-logo {
    max-width: 150px;
    height: 120px;
  }

  .bj-avatar {
    width: 60px;
    height: 60px;
  }

  .bj-testimonial-image {
    width: 70px;
    height: 70px;
    margin-right: 12px;
  }
}

@media (max-width: 480px) {
  .bj-card-image {
    height: 180px;
  }

  .bj-feature-image {
    height: 200px;
  }

  .bj-company-logo {
    max-width: 120px;
    height: 100px;
  }

  .bj-avatar {
    width: 50px;
    height: 50px;
  }

  .bj-testimonial-image {
    width: 60px;
    height: 60px;
    margin-right: 10px;
  }
}

/* ===================================================
   PICTURE ELEMENT SUPPORT (RESPONSIVE IMAGES)
   =================================================== */

picture {
  display: block;
}

picture img {
  display: block;
  width: 100%;
  height: auto;
}

/* ===================================================
   LAZY LOADING
   =================================================== */

img[loading="lazy"] {
  opacity: 0.8;
  transition: opacity 0.3s ease;
}

img[loading="lazy"].loaded {
  opacity: 1;
}

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

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Ensure alt text is visible in high contrast mode */
@media (prefers-contrast: high) {
  .bj-card-image,
  .bj-avatar,
  .bj-feature-image {
    border: 2px solid #0f172a;
  }
}

/* Print styles for images */
@media print {
  .bj-image-loading {
    background: none;
  }

  img {
    max-width: 100%;
    page-break-inside: avoid;
  }
}
