/**
 * Estilos personalizados para os shortcodes de conquistas
 */

/* Container principal */
.elune-achievements-container,
.elune-earned-achievements-container {
  margin-bottom: 40px;
}

/* Títulos de seção */
.elune-achievements-title,
.elune-earned-achievements-title {
  font-size: 24px;
  font-weight: 600;
  color: #333;
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 2px solid #f0f0f0;
}

/* Grid de conquistas */
.elune-achievements-grid,
.elune-earned-achievements-grid {
  display: grid;
  gap: 20px;
  margin-bottom: 30px;
}

/* Cards de conquista */
.elune-achievement-card {
  background-color: white;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  display: flex;
  flex-direction: column;
}

.elune-achievement-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.12);
}

/* Imagem da conquista */
.elune-achievement-image {
  position: relative;
  height: 160px;
  overflow: hidden;
  background-color: #f5f5f5;
  display: flex;
  align-items: center;
  justify-content: center;
}

.elune-achievement-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.elune-achievement-card:hover .elune-achievement-image img {
  transform: scale(1.05);
}

/* Badge de conquista obtida */
.elune-achievement-earned-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 30px;
  height: 30px;
  background-color: #34a853;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
  border: 2px solid white;
}

.elune-achievement-earned-badge svg {
  width: 16px;
  height: 16px;
}

/* Conteúdo da conquista */
.elune-achievement-content {
  padding: 16px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.elune-achievement-title {
  font-size: 16px;
  font-weight: 600;
  color: #333;
  margin: 0 0 8px 0;
  line-height: 1.3;
}

.elune-achievement-excerpt {
  font-size: 14px;
  color: #666;
  margin: 0 0 12px 0;
  line-height: 1.4;
  flex-grow: 1;
}

.elune-achievement-date {
  font-size: 13px;
  color: #666;
  margin-bottom: 8px;
  font-style: italic;
}

.elune-achievement-points {
  display: flex;
  align-items: center;
  font-size: 14px;
  color: #4285f4;
  font-weight: 500;
  margin-top: auto;
}

.elune-achievement-points svg {
  margin-right: 6px;
  color: #4285f4;
}

/* Estilo para conquistas bloqueadas */
.elune-achievement-locked {
  opacity: 0.7;
}

.elune-achievement-locked .elune-achievement-image::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Elemento sem imagem */
.elune-achievement-no-image {
  background-color: #f0f6ff;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  border-radius: 12px;
}

.elune-achievement-no-image:after {
  content: "";
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='40' viewBox='0 0 24 24' fill='none' stroke='%234285f4' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M8.21 13.89L7 23l5-3 5 3-1.21-9.12'%3E%3C/path%3E%3Cpath d='M15 7a5 5 0 0 0-5-5 5 5 0 0 0-5 5v1h10V7z'%3E%3C/path%3E%3Cpath d='M19 5h-1v3h1a2 2 0 0 0 0-4z'%3E%3C/path%3E%3Cpath d='M5 5h1v3H5a2 2 0 0 1 0-4z'%3E%3C/path%3E%3Cpath d='M12 12a3 3 0 1 0 0-6 3 3 0 0 0 0 6z'%3E%3C/path%3E%3C/svg%3E");
  width: 40px;
  height: 40px;
  background-repeat: no-repeat;
  background-position: center;
}

/* Mensagem de nenhuma conquista */
.elune-no-achievements {
  text-align: center;
  padding: 40px 20px;
  background-color: #f9f9f9;
  border-radius: 12px;
  margin-bottom: 30px;
}

.elune-no-achievements-icon {
  margin: 0 auto 20px;
  width: 60px;
  height: 60px;
  background-color: rgba(141, 0, 255, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.elune-no-achievements-icon svg {
  color: #8d00ff;
}

.elune-no-achievements h3 {
  font-size: 18px;
  font-weight: 600;
  color: #333;
  margin: 0 0 10px 0;
}

.elune-no-achievements p {
  font-size: 14px;
  color: #666;
  margin: 0 0 20px 0;
  line-height: 1.5;
}

/* Paginação */
.elune-achievements-pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 20px;
  margin-bottom: 30px;
}

.elune-pagination-numbers {
  display: flex;
  align-items: center;
  margin: 0 10px;
}

.elune-pagination-number {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  margin: 0 3px;
  font-size: 14px;
  color: #666;
  text-decoration: none;
  transition: all 0.2s ease;
}

.elune-pagination-number:hover {
  background-color: rgba(141, 0, 255, 0.1);
  color: #8d00ff;
}

.elune-pagination-number.active {
  background-color: #8d00ff;
  color: white;
}

.elune-pagination-btn {
  padding: 8px 16px;
  border-radius: 6px;
  font-size: 14px;
  color: #666;
  text-decoration: none;
  transition: all 0.2s ease;
  background-color: #f0f0f0;
}

.elune-pagination-btn:hover {
  background-color: rgba(141, 0, 255, 0.1);
  color: #8d00ff;
}

.elune-pagination-btn.disabled {
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none;
}

/* Responsividade */
@media (max-width: 768px) {
  .elune-achievements-grid,
  .elune-earned-achievements-grid {
    grid-template-columns: 1fr !important;
  }

  .elune-achievement-image {
    height: 140px;
  }

  .elune-achievements-pagination {
    flex-wrap: wrap;
  }
}
