/* =====================================================
   RECIPES FEED (Modelo de Reels para Recetas)
   Estilos para el feed vertical de recetas con comentarios
   ============================================= */

.recipes-container {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 20px;
  max-width: 900px;
  margin: 0 auto;
}

.recipe-card {
  background: white;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
  padding: 0;
  display: flex;
  flex-direction: column;
}

.recipe-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
}

.recipe-image-container {
  position: relative;
  width: 100%;
  height: 300px;
  overflow: hidden;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.recipe-thumbnail {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.recipe-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0,0,0,0.2);
  opacity: 0;
  transition: var(--transition);
}

.recipe-card:hover .recipe-overlay {
  opacity: 1;
}

.recipe-info {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.recipe-header {
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  transition: var(--transition);
}

.recipe-header:hover {
  opacity: 0.7;
}

.recipe-chef-avatar {
  width: 45px;
  height: 45px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--primary-color);
}

.recipe-chef-info {
  flex: 1;
}

.recipe-chef-info h4 {
  margin: 0;
  font-size: 0.95em;
  font-weight: 600;
  color: var(--text-dark);
}

.recipe-chef-info p {
  margin: 0;
  font-size: 0.8em;
  color: #999;
}

.recipe-title {
  margin: 0;
  font-size: 1.3em;
  font-weight: 600;
  color: var(--text-dark);
  cursor: pointer;
  transition: var(--transition);
}

.recipe-title:hover {
  color: var(--primary-color);
}

.recipe-stats {
  display: flex;
  gap: 15px;
  font-size: 0.85em;
  flex-wrap: wrap;
}

.recipe-stat {
  display: flex;
  align-items: center;
  gap: 5px;
  color: #666;
}

.recipe-stat i {
  color: var(--primary-color);
}

.recipe-stat.rating i {
  color: #ffd700;
}

/* Comentarios */
.recipe-comments-section {
  border-top: 1px solid #f0f0f0;
  padding-top: 15px;
  margin-top: 10px;
}

.recipe-comments-list {
  max-height: 200px;
  overflow-y: auto;
  margin-bottom: 10px;
}

.comment-item {
  display: flex;
  gap: 10px;
  margin-bottom: 12px;
  padding: 0 0 10px 0;
  border-bottom: 1px solid #f5f5f5;
}

.comment-item:last-child {
  border-bottom: none;
}

.comment-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
}

.comment-content {
  flex: 1;
}

.comment-content h5 {
  margin: 0 0 4px 0;
  font-size: 0.85em;
  font-weight: 600;
  color: var(--text-dark);
}

.comment-content p {
  margin: 0 0 4px 0;
  font-size: 0.8em;
  color: #555;
  line-height: 1.4;
}

.comment-content small {
  font-size: 0.75em;
  color: #999;
}

.empty-comments {
  text-align: center;
  padding: 20px;
  color: #999;
  font-size: 0.9em;
}

.recipe-comment-input {
  display: flex;
  gap: 10px;
  align-items: center;
}

.comment-input {
  flex: 1;
  padding: 8px 12px;
  border: 1px solid #ddd;
  border-radius: 20px;
  font-size: 0.9em;
  background: #f9f9f9;
  transition: var(--transition);
}

.comment-input:focus {
  outline: none;
  border-color: var(--primary-color);
  background: white;
}

.recipe-comment-input .btn-icon {
  width: 36px;
  height: 36px;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--primary-color);
  color: white;
  cursor: pointer;
  border: none;
  transition: var(--transition);
}

.recipe-comment-input .btn-icon:hover {
  background: var(--primary-dark);
  transform: scale(1.05);
}

.recipe-actions {
  display: flex;
  gap: 10px;
  margin-top: 15px;
}

.recipe-actions .btn {
  flex: 1;
}

@media (max-width: 768px) {
  .recipes-container {
    padding: 10px;
    gap: 15px;
  }

  .recipe-image-container {
    height: 250px;
  }

  .recipe-info {
    padding: 15px;
  }

  .recipe-title {
    font-size: 1.1em;
  }

  .recipe-stats {
    font-size: 0.8em;
    gap: 10px;
  }
}
