/* Estilos específicos para la página de logros públicos */
body.public-container {
  background: #f8f9fa;
  min-height: 100vh;
  padding: 0;
}

/* Header público */
.public-header {
  background: linear-gradient(135deg, #f39c12, #e67e22);
  color: white;
  padding: 2rem;
  text-align: center;
  position: relative;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.public-header h1 {
  font-size: 2.2rem;
  margin-bottom: 0.5rem;
  font-weight: 600;
}

.public-header p {
  font-size: 1.1rem;
  opacity: 0.9;
}

/* Botón de regreso */
.back-btn {
  position: absolute;
  top: 1rem;
  left: 1rem;
  background: rgba(255, 255, 255, 0.2);
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  text-decoration: none;
  transition: all 0.3s ease;
  font-weight: 500;
  backdrop-filter: blur(10px);
}

.back-btn:hover {
  background: rgba(255, 255, 255, 0.3);
  color: white;
  text-decoration: none;
  transform: translateX(-2px);
}

/* Grid de logros */
.achievements-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
  padding: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

/* Tarjetas de logros */
.achievement-card {
  background: white;
  border-radius: 15px;
  padding: 1.5rem;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  border-left: 5px solid #f39c12;
  transition: all 0.3s ease;
  animation: fadeIn 0.6s ease-out;
}

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

.achievement-card h3 {
  color: #2c3e50;
  margin-bottom: 0.5rem;
  font-size: 1.2rem;
  font-weight: 600;
}

.achievement-card .student-name {
  color: #3498db;
  font-weight: 600;
  margin-bottom: 0.5rem;
  font-size: 1rem;
}

.achievement-card .description {
  color: #7f8c8d;
  line-height: 1.5;
  margin-bottom: 1rem;
  font-size: 0.95rem;
}

.achievement-card .date {
  color: #95a5a6;
  font-size: 0.85rem;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid #ecf0f1;
  font-weight: 500;
}

/* Variaciones de colores para diferentes tipos de logros */
.achievement-card.academic {
  border-left-color: #3498db;
}

.achievement-card.artistic {
  border-left-color: #e74c3c;
}

.achievement-card.sports {
  border-left-color: #27ae60;
}

.achievement-card.social {
  border-left-color: #9b59b6;
}

/* Mensaje cuando no hay logros */
.no-achievements {
  text-align: center;
  padding: 3rem;
  color: #7f8c8d;
}

.no-achievements .icon {
  font-size: 4rem;
  margin-bottom: 1rem;
  opacity: 0.5;
}

.no-achievements h3 {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
  color: #95a5a6;
}

.no-achievements p {
  font-size: 1rem;
}

/* Animaciones escalonadas para las tarjetas */
.achievement-card:nth-child(1) {
  animation-delay: 0.1s;
}
.achievement-card:nth-child(2) {
  animation-delay: 0.2s;
}
.achievement-card:nth-child(3) {
  animation-delay: 0.3s;
}
.achievement-card:nth-child(4) {
  animation-delay: 0.4s;
}
.achievement-card:nth-child(5) {
  animation-delay: 0.5s;
}
.achievement-card:nth-child(6) {
  animation-delay: 0.6s;
}

/* Responsive para logros públicos */
@media (max-width: 768px) {
  .public-header {
    padding: 1.5rem;
  }

  .public-header h1 {
    font-size: 1.8rem;
  }

  .back-btn {
    position: static;
    display: inline-block;
    margin-bottom: 1rem;
  }

  .achievements-grid {
    grid-template-columns: 1fr;
    padding: 1rem;
    gap: 1rem;
  }

  .achievement-card {
    padding: 1.2rem;
  }
}

@media (max-width: 480px) {
  .public-header {
    padding: 1rem;
  }

  .public-header h1 {
    font-size: 1.5rem;
  }

  .achievements-grid {
    padding: 0.5rem;
  }

  .achievement-card {
    padding: 1rem;
  }

  .achievement-card h3 {
    font-size: 1.1rem;
  }
}
