/**
 * Challenge Showcase Widget CSS
 * Widget-specific styles only - common styles are in bugloos-design-system.css
 * 
 * Dependencies: bugloos-design-system.css must be loaded first
 */

/* ===== WIDGET-SPECIFIC STYLES ONLY ===== */

/* Main section container */
.challenge-showcase {
  position: relative;
  padding: var(--spacing-20) 0;
  background-color: var(--bugloos-white);
  overflow: hidden;
}

/* Background parallax element */
.challenge-showcase__bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(99, 195, 209, 0.03) 0%, rgba(124, 110, 176, 0.03) 100%);
  z-index: -1;
}

/* Container wrapper */
.challenge-showcase__container {
  max-width: var(--container-7xl);
  margin: 0 auto;
  padding: 0 var(--spacing-4);
}

/* Section header */
.challenge-showcase__header {
  text-align: center;
  margin-bottom: var(--spacing-16);
}

.challenge-showcase__title {
  font-family: var(--font-family-primary);
  font-size: var(--text-3xl);
  font-weight: var(--font-weight-bold);
  color: var(--bugloos-dark);
  margin: 0;
  line-height: var(--leading-tight);
}

/* Main content grid */
.challenge-showcase__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--spacing-12);
  align-items: center;
}

/* Content column */
.challenge-showcase__content {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-8);
}

/* Description paragraphs */
.challenge-showcase__description p,
.challenge-showcase__context p {
  font-family: var(--font-family-primary);
  font-size: var(--text-lg);
  line-height: var(--leading-relaxed);
  color: var(--bugloos-gray-700);
  margin: 0;
}

/* Challenge points list */
.challenge-showcase__points {
  margin: 0;
}

.challenge-showcase__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: var(--spacing-4);
}

.challenge-showcase__point {
  display: flex;
  align-items: flex-start;
  gap: var(--spacing-4);
}

.challenge-showcase__bullet {
  display: block;
  width: 12px;
  height: 12px;
  background-color: var(--bugloos-primary);
  border-radius: 50%;
  margin-top: 8px;
  flex-shrink: 0;
}

.challenge-showcase__text {
  font-family: var(--font-family-primary);
  font-size: var(--text-lg);
  line-height: var(--leading-relaxed);
  color: var(--bugloos-gray-700);
}

/* Image container */
.challenge-showcase__media {
  justify-self: center;
  width: 100%;
  max-width: 600px;
}

.challenge-showcase__image-container {
  background-color: var(--bugloos-gray-700);
  border-radius: var(--radius-xl);
  height: 320px;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.challenge-showcase__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  border-radius: var(--radius-xl);
  transition: transform var(--transition-normal);
}

.challenge-showcase__image:hover {
  transform: scale(1.02);
}

/* Responsive design */
@media (min-width: 768px) {
  .challenge-showcase__container {
    padding: 0 var(--spacing-6);
  }
  
  .challenge-showcase__grid {
    gap: var(--spacing-16);
  }
  
  .challenge-showcase__image-container {
    height: 400px;
  }
}

@media (min-width: 1024px) {
  .challenge-showcase {
    padding: var(--spacing-24) 0;
  }
  
  .challenge-showcase__container {
    padding: 0 var(--spacing-8);
  }
  
  .challenge-showcase__grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-20);
  }
  
  .challenge-showcase__title {
    font-size: var(--text-4xl);
  }
  
  .challenge-showcase__image-container {
    height: 320px;
  }
}

@media (min-width: 1280px) {
  .challenge-showcase__grid {
    gap: var(--spacing-24);
  }
}

/* Focus and accessibility states */
.challenge-showcase__image:focus {
  outline: 2px solid var(--bugloos-primary);
  outline-offset: 2px;
}

/* Reduced motion preferences */
@media (prefers-reduced-motion: reduce) {
  .challenge-showcase__image {
    transition: none;
  }
  
  .challenge-showcase__image:hover {
    transform: none;
  }
}
