/**
 * Dam & Sire Styles
 * Styles for parent (dam/sire) information display on product pages
 */

/* ============================================
   Dam & Sire Parent Gallery Images
   ============================================ */

/* Parent gallery image container */
.parent-gallery-image {
  position: relative;
}

/* Parent image overlay label */
.parent-image-label {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.75) 0%, rgba(0, 0, 0, 0.5) 60%, transparent 100%);
  color: #fff;
  padding: 30px 15px 15px;
  text-align: left;
  pointer-events: none;
  border-bottom-left-radius: 10px;
  border-bottom-right-radius: 10px;
}

/* "Dam" or "Sire" title */
.parent-image-label__title {
  display: block;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  opacity: 0.85;
  font-weight: 600;
  margin-bottom: 4px;
  font-family: "Figtree", sans-serif;
}

/* Parent name */
.parent-image-label__name {
  display: block;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 2px;
  font-family: "Figtree", sans-serif;
}

/* Parent breed */
.parent-image-label__breed {
  display: block;
  font-size: 14px;
  font-weight: 400;
  opacity: 0.9;
  font-family: "Figtree", sans-serif;
}

/* Responsive adjustments */
@media screen and (max-width: 767px) {
  .parent-image-label {
    padding: 25px 12px 12px;
  }

  .parent-image-label__title {
    font-size: 10px;
    letter-spacing: 1px;
  }

  .parent-image-label__name {
    font-size: 16px;
  }

  .parent-image-label__breed {
    font-size: 13px;
  }
}

/* Thumbnail styling for parent images in gallery navigation */
.woocommerce-product-gallery .flex-control-thumbs li {
  position: relative;
}

.woocommerce-product-gallery .flex-control-thumbs li img[alt="dam_thumbnail"],
.woocommerce-product-gallery .flex-control-thumbs li img[alt="sire_thumbnail"] {
  border: 2px solid #036f6a;
}

/* CSS-only parent thumbnail labels using ::after pseudo-element */
.woocommerce-product-gallery .flex-control-thumbs li:has(img[alt="dam_thumbnail"])::after,
.woocommerce-product-gallery .flex-control-thumbs li:has(img[alt="sire_thumbnail"])::after {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(3, 111, 106, 0.9);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  text-align: center;
  padding: 3px 0;
  letter-spacing: 0.5px;
  font-family: "Figtree", sans-serif;
  pointer-events: none;
  border-bottom-left-radius: 6px;
  border-bottom-right-radius: 6px;
}

.woocommerce-product-gallery .flex-control-thumbs li:has(img[alt="dam_thumbnail"])::after {
  content: "Dam";
}

.woocommerce-product-gallery .flex-control-thumbs li:has(img[alt="sire_thumbnail"])::after {
  content: "Sire";
}

/* Responsive adjustments for thumbnail labels */
@media screen and (max-width: 767px) {
  .woocommerce-product-gallery .flex-control-thumbs li:has(img[alt="dam_thumbnail"])::after,
  .woocommerce-product-gallery .flex-control-thumbs li:has(img[alt="sire_thumbnail"])::after {
    font-size: 8px;
    padding: 2px 0;
  }
}


/* ============================================
   Parent Spotlight Section
   ============================================ */

.parent-spotlight {
  margin: 40px 0;
  padding: 0;
}

.parent-spotlight__title {
  font-size: 28px;
  font-weight: 700;
  color: #231f20;
  margin-bottom: 24px;
  font-family: "Figtree", sans-serif;
}

.parent-spotlight__cards {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}

.parent-spotlight-card {
  position: relative;
  flex: 1;
  min-width: 280px;
  display: flex;
  align-items: center;
  background: #fafafa;
  border-radius: 16px;
  padding: 20px;
  gap: 20px;
}

.parent-spotlight-card__image {
  flex-shrink: 0;
  width: 230px;
  height: 230px;
  aspect-ratio: 1;
  border-radius: 12px;
  overflow: hidden;
}

.parent-spotlight-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.parent-spotlight-card__content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  flex: 1;
}

.parent-spotlight-card__label {
  font-size: 20px;
  font-weight: 700;
  color: #231f20;
  margin: 0 0 4px 0;
  font-family: "Figtree", sans-serif;
}

.parent-spotlight-card__label span {
  font-size: 14px;
  font-weight: 500;
  color: #666;
}

.parent-spotlight-card__breed {
  font-size: 14px;
  font-weight: 400;
  color: #666;
  margin: 0 0 12px 0;
  font-family: "Figtree", sans-serif;
}

.parent-spotlight-card__badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}

.parent-spotlight-badge {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 600;
  font-family: "Figtree", sans-serif;
}

.parent-spotlight-badge--registration {
  background-color: #e8f5e9;
  color: #2e7d32;
}

.parent-spotlight-badge--birthdate {
  background-color: #fff3e0;
  color: #e65100;
}

.parent-spotlight-badge--weight {
  background-color: #e3f2fd;
  color: #1565c0;
}

/* Genetic Tested Card Highlight */
.parent-spotlight-card--genetic-tested {
  background: linear-gradient(135deg, #f0fdf4 0%, #ecfdf5 100%);
  border: 1.5px solid #86efac;
}

/* Genetic Tested Text Indicator */
.parent-spotlight-card__genetic {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: #10B981;
  font-size: 13px;
  font-weight: 600;
  font-family: "Figtree", sans-serif;
  margin-bottom: 10px;
}

.parent-spotlight-card__genetic svg {
  flex-shrink: 0;
}

.parent-spotlight-card__description {
  font-size: 14px;
  font-weight: 400;
  color: #555;
  line-height: 1.5;
  margin: 0;
  font-family: "Figtree", sans-serif;
}

/* Responsive: Tablet (768px) */
@media screen and (max-width: 768px) {
  .parent-spotlight__title {
    font-size: 24px;
    margin-bottom: 20px;
  }

  .parent-spotlight__cards {
    gap: 16px;
  }

  .parent-spotlight-card {
    padding: 16px;
    gap: 16px;
  }

  .parent-spotlight-card__image {
    width: 180px;
    height: 180px;
  }

  .parent-spotlight-card__label {
    font-size: 18px;
  }
}

/* Responsive: Mobile (480px) */
@media screen and (max-width: 480px) {
  .parent-spotlight {
    margin: 30px 0;
  }

  .parent-spotlight__title {
    font-size: 22px;
    margin-bottom: 16px;
  }

  .parent-spotlight-card {
    flex-direction: column;
    text-align: center;
    padding: 20px;
    gap: 16px;
  }

  .parent-spotlight-card__image {
    width: 100%;
    height: auto;
    aspect-ratio: 1;
    margin: 0 auto;
  }

  .parent-spotlight-card__badges {
    justify-content: center;
  }

  .parent-spotlight-card__description {
    text-align: center;
  }

  .parent-spotlight-card__genetic {
    justify-content: center;
  }
}
