/**
 * InstaGrid Prompt - Estilos adicionales
 * Estos estilos complementan el style.css principal
 */

/* Estilos adicionales para grid de prompts si se usa index.php de instagrid */
.prompts-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  padding: 2rem 0;
}

.prompt-card {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  aspect-ratio: 3 / 4;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.prompt-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.2);
}

.card-link {
  display: block;
  position: relative;
  width: 100%;
  height: 100%;
  text-decoration: none;
}

.card-bg-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.card-link:hover .card-bg-image {
  transform: scale(1.08);
}

.card-bg-placeholder {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.card-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.2) 0%,
    rgba(0, 0, 0, 0.1) 40%,
    rgba(0, 0, 0, 0.6) 70%,
    rgba(0, 0, 0, 0.85) 100%
  );
  z-index: 1;
}

.card-header {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  padding: 1rem 1.25rem;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  z-index: 2;
}

.card-badge {
  display: inline-block;
  padding: 0.5rem 1rem;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(12px);
  border-radius: 8px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: white;
  max-width: 70%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.card-likes {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.5rem 0.75rem;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(12px);
  border-radius: 20px;
  font-size: 0.875rem;
  font-weight: 600;
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.card-likes svg {
  width: 14px;
  height: 14px;
  stroke: white;
}

.card-overlay-content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 1.5rem 1.25rem;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.card-description {
  font-size: 0.9rem;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.95);
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  font-weight: 400;
}

.card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.card-copy-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.625rem 1rem;
  background: rgba(255, 255, 255, 0.95);
  color: #1a1a1a;
  border: none;
  border-radius: 20px;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  backdrop-filter: blur(10px);
}

.card-copy-btn:hover {
  background: white;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.card-copy-btn svg {
  width: 14px;
  height: 14px;
  stroke: currentColor;
}

.card-author {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.85);
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.no-posts {
  text-align: center;
  padding: 4rem 2rem;
}

.no-posts h2 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: var(--text-primary);
}

.no-posts p {
  color: var(--text-secondary);
}

@media (max-width: 1200px) {
  .prompts-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
  }
}

@media (max-width: 1024px) {
  .prompts-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }
}

@media (max-width: 768px) {
  .prompts-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }
  
  .prompt-card {
    aspect-ratio: 3 / 4;
  }
  
  .card-badge {
    font-size: 0.7rem;
    padding: 0.4rem 0.8rem;
  }
  
  .card-description {
    font-size: 0.85rem;
    -webkit-line-clamp: 2;
  }
  
  .card-copy-btn {
    font-size: 0.8rem;
    padding: 0.5rem 0.875rem;
  }
  
  .card-author {
    font-size: 0.75rem;
  }
}

@media (max-width: 480px) {
  .prompts-grid {
    gap: 1rem;
  }
  
  .card-header {
    padding: 0.875rem 1rem;
  }
  
  .card-overlay-content {
    padding: 1.25rem 1rem;
  }
  
  .card-footer {
    flex-direction: column;
    align-items: stretch;
    gap: 0.5rem;
  }
  
  .card-copy-btn {
    width: 100%;
    justify-content: center;
  }
  
  .card-author {
    text-align: center;
  }
}

