/* ========================================
   DP DONATIONS - FRONTEND STYLES
   Estilos para listado de donaciones y cards
   ======================================== */

/* ========== ESTILOS GENERALES ========== */
.dp-donations-list {
  margin: 20px 0;
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: flex-start;
}

.dp-donation-item {
  flex: 1 1 calc(33.333% - 20px);
  max-width: calc(33.333% - 20px);
  margin-bottom: 0;
}

.dp-donation-single {
  max-width: 400px;
  margin: 0 auto;
}

.dp-donation-error,
.dp-donations-empty {
  width: 100%;
  padding: 15px;
  background: #fff3cd;
  border: 1px solid #ffeaa7;
  border-radius: 8px;
  color: #856404;
  text-align: center;
}

/* ========== CARDS TIPO RETO ========== */
.dp-reto-card {
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.dp-reto-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.dp-reto-image {
  width: 100%;
  height: 200px;
  overflow: hidden;
  background: #f5f5f5;
}

.dp-reto-img {
  width: 100%;
  height: 100% !important;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.dp-reto-card:hover .dp-reto-img {
  transform: scale(1.05);
}

.dp-reto-content {
  padding: 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.dp-reto-title {
  font-size: 20px;
  font-weight: 700;
  color: #2c3e50;
  margin: 0 0 12px 0;
  line-height: 1.3;
}

.dp-reto-description {
  font-size: 14px;
  color: #7f8c8d;
  line-height: 1.5;
  margin: 0 0 20px 0;
  flex: 1;
}

/* ========== BARRAS DE PROGRESO ========== */
.dp-reto-progress {
  margin-top: auto;
}

.dp-progress-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
  font-size: 14px;
}

.dp-progress-current {
  font-weight: 700;
  color: #27ae60;
}

.dp-progress-goal {
  color: #7f8c8d;
  font-size: 13px;
}

.dp-progress-bar {
  width: 100%;
  height: 8px;
  background: #ecf0f1;
  border-radius: 4px;
  overflow: hidden;
  position: relative;
}

.dp-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #f39c12 0%, #e67e22 100%);
  border-radius: 4px;
  transition: width 0.8s ease;
  position: relative;
}

/* ========== ESTILOS PARA OTROS TIPOS ========== */
.dp-donation-object {
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 20px;
  height: 100%;
}

.dp-donation-object h3 {
  margin-top: 0;
  color: #333;
  border-bottom: 2px solid #0073aa;
  padding-bottom: 10px;
}

.dp-donation-details p {
  margin: 8px 0;
}

.dp-donation-details strong {
  color: #0073aa;
}

.dp-donation-details ul {
  margin: 5px 0 5px 20px;
}

.dp-donation-object img {
  max-width: 100%;
  height: auto;
  border-radius: 4px;
}

/* ========== RESPONSIVE DESIGN ========== */

/* Tablets */
@media (max-width: 768px) {
  .dp-donation-item {
    flex: 1 1 calc(50% - 20px);
    max-width: calc(50% - 20px);
  }

  .dp-reto-image {
    height: 160px;
  }

  .dp-reto-title {
    font-size: 18px;
  }

  .dp-reto-description {
    font-size: 13px;
  }

  .dp-reto-content {
    padding: 16px;
  }
}

/* Móviles */
@media (max-width: 480px) {
  .dp-donations-list {
    gap: 15px;
  }

  .dp-donation-item {
    flex: 1 1 100%;
    max-width: 100%;
  }

  .dp-reto-card {
    border-radius: 8px;
  }

  .dp-reto-image {
    height: 140px;
  }

  .dp-reto-title {
    font-size: 16px;
    margin-bottom: 8px;
  }

  .dp-reto-description {
    font-size: 12px;
    margin-bottom: 15px;
  }

  .dp-reto-content {
    padding: 12px;
  }

  .dp-progress-info {
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
    margin-bottom: 6px;
  }

  .dp-progress-current {
    font-size: 13px;
  }

  .dp-progress-goal {
    font-size: 11px;
  }

  .dp-progress-bar {
    height: 6px;
  }
}

/* Móviles muy pequeños */
@media (max-width: 360px) {
  .dp-reto-image {
    height: 120px;
  }

  .dp-reto-title {
    font-size: 15px;
  }

  .dp-reto-description {
    font-size: 11px;
  }

  .dp-reto-content {
    padding: 10px;
  }
}