/* =============================================================
   MODAL MONUMENT - Styles pour le système de monuments participatifs
   ============================================================= */

/* Informations du monument */
.monument-info {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 20px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.monument-info p {
  margin: 10px 0;
  font-size: 15px;
  line-height: 1.6;
}

.monument-info strong {
  color: rgba(255, 255, 255, 1);
  font-weight: 600;
}

/* Barre de progression */
.monument-progress-bar {
  width: 100%;
  height: 24px;
  background: rgba(0, 0, 0, 0.4);
  border-radius: 12px;
  overflow: hidden;
  margin: 15px 0;
  border: 1px solid rgba(255, 255, 255, 0.15);
  position: relative;
}

.monument-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #4CAF50, #66BB6A);
  border-radius: 12px;
  transition: width 0.5s ease-out;
  box-shadow: 0 0 10px rgba(76, 175, 80, 0.5);
  position: relative;
}

.monument-progress-fill::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.3),
    transparent
  );
  animation: shimmer 2s infinite;
}

@keyframes shimmer {
  0% {
    transform: translateX(-100%);
  }
  100% {
    transform: translateX(100%);
  }
}

/* Zone de contribution */
.monument-contribution-zone {
  background: rgba(76, 175, 80, 0.1);
  border: 2px solid rgba(76, 175, 80, 0.3);
  border-radius: 12px;
  padding: 20px;
  margin-top: 20px;
}

.monument-contribution-zone h3 {
  margin: 0 0 15px 0;
  font-size: 18px;
  color: white;
}

/* Sélection du type de monument */
.monument-type-selection {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 15px 0;
}

.monument-type-option {
  background: rgba(255, 255, 255, 0.08);
  border: 2px solid rgba(255, 255, 255, 0.2);
  border-radius: 10px;
  padding: 15px;
  cursor: pointer;
  transition: all 0.3s;
  display: flex;
  align-items: center;
  gap: 12px;
  position: relative;
}

.monument-type-option:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(100, 150, 255, 0.5);
  transform: translateX(5px);
}

.monument-type-option input[type="radio"] {
  width: 20px;
  height: 20px;
  cursor: pointer;
  accent-color: #667eea;
}

.monument-type-option input[type="radio"]:checked + .monument-type-label {
  color: #667eea;
  font-weight: 600;
}

.monument-type-option:has(input[type="radio"]:checked) {
  background: rgba(100, 150, 255, 0.2);
  border-color: rgba(100, 150, 255, 0.6);
  box-shadow: 0 0 15px rgba(100, 150, 255, 0.3);
}

.monument-type-label {
  flex: 1;
  font-size: 16px;
  color: rgba(255, 255, 255, 0.9);
  transition: all 0.3s;
}

.monument-type-price {
  font-size: 14px;
  color: #FFD700;
  font-weight: 600;
  background: rgba(255, 215, 0, 0.15);
  padding: 4px 12px;
  border-radius: 6px;
}

/* Input de contribution */
.monument-input {
  width: 100%;
  background: rgba(255, 255, 255, 0.95);
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 8px;
  padding: 12px 15px;
  font-size: 16px;
  color: #333;
  margin: 15px 0;
  outline: none;
  transition: all 0.3s;
  box-sizing: border-box;
}

.monument-input:focus {
  background: white;
  border-color: #667eea;
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.2);
}

.monument-input::placeholder {
  color: rgba(0, 0, 0, 0.4);
}

/* Bouton de contribution */
.monument-contribute-btn {
  width: 100%;
  background: linear-gradient(135deg, #667eea, #764ba2);
  color: white;
  border: none;
  border-radius: 10px;
  padding: 15px 25px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
  box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
  margin-top: 10px;
}

.monument-contribute-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(102, 126, 234, 0.6);
}

.monument-contribute-btn:active {
  transform: translateY(0);
}

/* Messages d'état */
.monument-not-eligible {
  background: rgba(244, 67, 54, 0.15);
  border: 2px solid rgba(244, 67, 54, 0.4);
  border-radius: 12px;
  padding: 20px;
  margin-top: 20px;
  text-align: center;
}

.monument-not-eligible p {
  margin: 0;
  font-size: 15px;
}

.monument-not-connected {
  background: rgba(255, 152, 0, 0.15);
  border: 2px solid rgba(255, 152, 0, 0.4);
  border-radius: 12px;
  padding: 20px;
  margin-top: 20px;
  text-align: center;
}

.monument-not-connected p {
  margin: 0;
  font-size: 15px;
}

/* Bouton de fermeture */
.modal-close-btn {
  position: absolute;
  top: 20px;
  right: 25px;
  background: rgba(255, 255, 255, 0.2);
  border: none;
  color: white;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  line-height: 1;
}

.modal-close-btn:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: scale(1.1);
}

/* Monument complété */
.monument-info p[style*="color: #4CAF50"] {
  background: rgba(76, 175, 80, 0.2);
  padding: 10px;
  border-radius: 8px;
  border-left: 4px solid #4CAF50;
  margin: 15px 0;
}

/* Nouveau projet */
.monument-info p[style*="color: #FF9800"] {
  background: rgba(255, 152, 0, 0.2);
  padding: 10px;
  border-radius: 8px;
  border-left: 4px solid #FF9800;
  margin: 15px 0;
}

/* Responsive */
@media (max-width: 768px) {
  .monument-type-selection {
    gap: 10px;
  }

  .monument-type-option {
    padding: 12px;
  }

  .monument-type-label {
    font-size: 14px;
  }

  .monument-type-price {
    font-size: 12px;
    padding: 3px 8px;
  }

  .monument-input {
    font-size: 14px;
    padding: 10px 12px;
  }

  .monument-contribute-btn {
    padding: 12px 20px;
    font-size: 14px;
  }
}
