/**
 * Placeholder Styles para Imagens
 * Usado quando as imagens não estão disponíveis
 */

/* Hero Placeholder */
.hero {
  background: linear-gradient(135deg, #6B4C9A 0%, #543B7A 100%);
  position: relative;
  overflow: hidden;
}

.hero::after {
  content: '✨';
  position: absolute;
  font-size: 10rem;
  opacity: 0.1;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

/* Category Image Placeholders */
.category-card {
  position: relative;
  min-height: 250px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.category-img {
  width: 100%;
  height: 150px;
  object-fit: cover;
  border-radius: var(--radius-md);
  margin-bottom: var(--spacing-sm);
}

.category-card:nth-child(1) { background: linear-gradient(135deg, #6B4C9A 0%, #9B72D6 100%); }
.category-card:nth-child(2) { background: linear-gradient(135deg, #D4AF37 0%, #F4D03F 100%); }
.category-card:nth-child(3) { background: linear-gradient(135deg, #4A90A4 0%, #6BCB77 100%); }
.category-card:nth-child(4) { background: linear-gradient(135deg, #E74C3C 0%, #FF6B6B 100%); }
.category-card:nth-child(5) { background: linear-gradient(135deg, #1ABC9C 0%, #3498DB 100%); }
.category-card:nth-child(6) { background: linear-gradient(135deg, #9B59B6 0%, #BE5BD9 100%); }
.category-card:nth-child(7) { background: linear-gradient(135deg, #34495E 0%, #5D6D7E 100%); }

.category-card .category-icon {
  font-size: 4rem;
  margin-bottom: var(--spacing-sm);
  text-shadow: 0 2px 4px rgba(0,0,0,0.2);
  z-index: 1;
}

.category-card .category-title {
  color: white;
  text-shadow: 0 2px 4px rgba(0,0,0,0.2);
  z-index: 1;
}

.category-card p {
  color: rgba(255,255,255,0.9);
  text-shadow: 0 1px 2px rgba(0,0,0,0.2);
  z-index: 1;
}

/* Card Image Placeholders */
.card {
  position: relative;
}

.card-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  background: linear-gradient(135deg, var(--primary-light) 0%, var(--primary) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 3rem;
}

.card:nth-child(1) .card-img { background: linear-gradient(135deg, #6B4C9A 0%, #9B72D6 100%); }
.card:nth-child(2) .card-img { background: linear-gradient(135deg, #D4AF37 0%, #F4D03F 100%); }
.card:nth-child(3) .card-img { background: linear-gradient(135deg, #4A90A4 0%, #6BCB77 100%); }
.card:nth-child(4) .card-img { background: linear-gradient(135deg, #E74C3C 0%, #FF6B6B 100%); }
.card:nth-child(5) .card-img { background: linear-gradient(135deg, #1ABC9C 0%, #3498DB 100%); }

.card-img::before {
  content: '📷';
  font-size: 3rem;
  opacity: 0.5;
}

/* Tool Cards */
.tools-section .card .card-content {
  text-align: center;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .category-card {
    min-height: 200px;
  }
  
  .category-card .category-icon {
    font-size: 3rem;
  }
}

/* Loading state */
.card.loading,
.category-card.loading {
  position: relative;
  overflow: hidden;
}

.card.loading::after,
.category-card.loading::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  animation: loading 1.5s infinite;
}

@keyframes loading {
  0% { left: -100%; }
  100% { left: 100%; }
}

/* Error state for images */
img[src=""],
img:not([src]) {
  display: none;
}

/* Logo icon styling */
.logo-icon {
  font-size: 2rem;
  line-height: 1;
  filter: drop-shadow(0 2px 4px rgba(107, 76, 154, 0.3));
}
