/* Estilos para Imagens e Placeholders - Profissão Inteligente */

/* Estilos para placeholders de imagens */
.image-placeholder {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(0, 255, 242, 0.3);
  border-radius: 10px;
  height: 180px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 0 20px rgba(0, 255, 242, 0.1);
  transition: all 0.3s ease;
  margin-bottom: 20px;
}

.image-placeholder:hover {
  transform: translateY(-5px);
  box-shadow: 0 0 25px rgba(0, 255, 242, 0.2);
}

.image-placeholder::after {
  content: "Imagem";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: var(--primary-accent);
  font-size: 0.9rem;
  opacity: 0.7;
}

/* Placeholders específicos */
.image-placeholder.full-width {
  width: 100%;
  height: 250px;
  margin: 30px 0;
}

.image-placeholder.tall {
  height: 300px;
}

.image-placeholder.small {
  height: 120px;
}

/* Grid de imagens */
.image-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  margin: 30px 0;
}

.image-grid.four-columns {
  grid-template-columns: repeat(4, 1fr);
}

.image-grid.three-columns {
  grid-template-columns: repeat(3, 1fr);
}

.image-grid.two-columns {
  grid-template-columns: repeat(2, 1fr);
}

/* Legenda de imagem */
.image-caption {
  text-align: center;
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-top: 10px;
  padding: 0 10px;
}

/* Imagem de garantia */
.guarantee-image {
  width: 100%;
  max-width: 200px;
  height: 200px;
  margin: 0 auto 20px;
  background: rgba(0, 255, 136, 0.05);
  border-radius: 50%;
  position: relative;
  overflow: hidden;
  border: 2px solid var(--secondary-accent);
}

.guarantee-image::after {
  content: "Selo de Garantia";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: var(--secondary-accent);
  font-size: 0.9rem;
  opacity: 0.7;
  text-align: center;
}

/* Responsividade */
@media (max-width: 992px) {
  .image-grid.four-columns,
  .image-grid.three-columns {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .image-grid,
  .image-grid.four-columns,
  .image-grid.three-columns,
  .image-grid.two-columns {
    grid-template-columns: 1fr;
  }
  
  .image-placeholder {
    height: 160px;
  }
  
  .image-placeholder.full-width {
    height: 200px;
  }
  
  .guarantee-image {
    max-width: 150px;
    height: 150px;
  }
}

@media (max-width: 480px) {
  .image-placeholder {
    height: 140px;
  }
  
  .image-placeholder.full-width {
    height: 180px;
  }
}


/* Styles for inserted content images */
.content-image {
  width: 100%;
  height: 100%; /* Default height, specific containers will override */
  object-fit: cover;
  border-radius: 10px;
  display: block;
  background-color: #222; /* Loading background */
  transition: transform 0.3s ease;
}

.content-image:hover {
    transform: scale(1.03);
}

/* Adjust containers that held placeholders */
.image-grid > div, /* Target the container div within the grid */
.module-image,
.bonus-image,
.for-who-card > div:first-child, /* Target the image container div */
.gpt-card > div:first-child { /* Target the image container div */
  background: none;
  border: none;
  position: relative; 
  overflow: hidden; /* Keep to respect border-radius */
  min-height: 150px; /* Ensure container has minimum height */
  background-color: #1a1a1a; /* Loading background */
  border-radius: 10px;
}

/* Remove placeholder text pseudo-element */
.image-placeholder::after,
.module-image::after,
.bonus-image::after,
.for-who-card > div:first-child::after,
.gpt-card > div:first-child::after {
  content: none;
}

/* Specific heights for different contexts */
.image-grid.four-columns > div,
.image-grid.three-columns > div,
.image-grid.two-columns > div {
   height: 200px; 
}

.image-grid .small {
    height: 150px;
}

.image-grid .tall {
    height: 400px; /* Adjusted for tall aspect ratio */
}

.image-grid .full-width {
    height: 350px;
}

.module-image,
.bonus-image,
.for-who-card > div:first-child,
.gpt-card > div:first-child {
    height: 200px; /* Standard height for cards */
}

.image-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  background: rgba(0, 0, 0, 0.7);
  color: #fff;
  padding: 5px 10px;
  font-size: 0.8rem;
  text-align: center;
  border-bottom-left-radius: 10px;
  border-bottom-right-radius: 10px;
}


