/**
 * Styles complémentaires pour le partage de bucket list avec Cloudinary
 * À ajouter APRÈS vos styles existants
 */

/* ===== BOUTON PRINCIPAL ===== */
#share-bucket-list {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border: none;
  padding: 12px 24px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 16px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

#share-bucket-list:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(102, 126, 234, 0.6);
}

#share-bucket-list i {
  font-size: 18px;
}

/* ===== MODAL OVERLAY ===== */
.bucket-share-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(5px);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  padding: 20px;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.bucket-share-modal-overlay.active {
  display: flex;
  opacity: 1;
}

/* ===== CONTENU DU MODAL ===== */
.bucket-modal-content {
  background: white;
  border-radius: 20px;
  max-width: 800px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  animation: bucketModalSlideIn 0.4s ease;
}

@keyframes bucketModalSlideIn {
  from {
    transform: translateY(-50px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

/* ===== HEADER DU MODAL ===== */
.bucket-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px;
  border-bottom: 1px solid #e0e0e0;
}

.bucket-modal-header h2 {
  margin: 0;
  font-size: 24px;
  color: #1a1a2e;
}

.close-bucket-modal {
  background: none;
  border: none;
  font-size: 24px;
  color: #999;
  cursor: pointer;
  transition: color 0.3s ease;
  padding: 8px;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.close-bucket-modal:hover {
  color: #333;
  background: #f0f0f0;
}

/* ===== STATISTIQUES ===== */
.bucket-stats {
  display: flex;
  justify-content: space-around;
  padding: 24px;
  background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
}

.stat-item {
  text-align: center;
}

.stat-number {
  display: block;
  font-size: 32px;
  font-weight: bold;
  color: #667eea;
}

.stat-item.completed .stat-number {
  color: #00D66B;
}

.stat-label {
  display: block;
  font-size: 14px;
  color: #666;
  margin-top: 4px;
}

/* ===== ONGLETS DE PRÉVISUALISATION ===== */
.preview-tabs {
  display: flex;
  gap: 8px;
  padding: 16px 24px;
  background: #f8f9fa;
  border-bottom: 1px solid #e0e0e0;
}

.preview-tab {
  flex: 1;
  padding: 12px 16px;
  background: white;
  border: 2px solid #e0e0e0;
  border-radius: 8px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  color: #666;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.preview-tab:hover {
  border-color: #667eea;
  color: #667eea;
}

.preview-tab.active {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-color: #667eea;
  color: white;
}

.preview-tab i {
  font-size: 18px;
}

/* ===== CONTENEUR D'APERÇU ===== */
.preview-image-container {
  position: relative;
  padding: 24px;
  display: flex;
  justify-content: center;
  align-items: center;
  background: #f8f9fa;
}

.bucket-preview-image {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

.preview-dimensions {
  position: absolute;
  top: 32px;
  right: 32px;
  background: rgba(0, 0, 0, 0.7);
  color: white;
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
}

/* ===== ACTIONS DE PARTAGE ===== */
.bucket-share-actions {
  padding: 24px;
}

.bucket-share-actions h3 {
  margin: 0 0 16px 0;
  font-size: 18px;
  color: #1a1a2e;
}

.bucket-share-buttons-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 12px;
  margin-bottom: 20px;
}

.bucket-share-btn {
  padding: 14px 20px;
  border: 2px solid #e0e0e0;
  border-radius: 10px;
  background: white;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-weight: 600;
  font-size: 15px;
}

.bucket-share-btn i {
  font-size: 20px;
}

.bucket-share-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Couleurs spécifiques par réseau */
.bucket-share-btn.instagram {
  color: #E4405F;
  border-color: #E4405F;
}

.bucket-share-btn.instagram:hover {
  background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
  color: white;
  border-color: transparent;
}

.bucket-share-btn.facebook {
  color: #1877F2;
  border-color: #1877F2;
}

.bucket-share-btn.facebook:hover {
  background: #1877F2;
  color: white;
}

.bucket-share-btn.twitter {
  color: #1DA1F2;
  border-color: #1DA1F2;
}

.bucket-share-btn.twitter:hover {
  background: #1DA1F2;
  color: white;
}

.bucket-share-btn.whatsapp {
  color: #25D366;
  border-color: #25D366;
}

.bucket-share-btn.whatsapp:hover {
  background: #25D366;
  color: white;
}

/* ===== BOUTON DE TÉLÉCHARGEMENT ===== */
.btn-download-bucket {
  width: 100%;
  padding: 14px 20px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border: none;
  border-radius: 10px;
  font-weight: 600;
  font-size: 16px;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.btn-download-bucket:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

.btn-download-bucket i {
  font-size: 18px;
}

/* ===== LOADER ===== */
.bucket-share-loader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(5px);
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  z-index: 10000;
}

.loader-spinner {
  width: 60px;
  height: 60px;
  border: 4px solid rgba(255, 255, 255, 0.3);
  border-top-color: white;
  border-radius: 50%;
  animation: bucketSpin 1s linear infinite;
}

@keyframes bucketSpin {
  to { transform: rotate(360deg); }
}

.bucket-share-loader p {
  color: white;
  margin-top: 20px;
  font-size: 18px;
  font-weight: 600;
}

/* ===== TOAST NOTIFICATIONS ===== */
.bucket-toast {
  position: fixed;
  bottom: -100px;
  left: 50%;
  transform: translateX(-50%);
  background: #333;
  color: white;
  padding: 16px 24px;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 600;
  z-index: 10001;
  transition: bottom 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  max-width: 90%;
}

.bucket-toast.show {
  bottom: 30px;
}

.bucket-toast.bucket-toast-success {
  background: #00D66B;
}

.bucket-toast.bucket-toast-error {
  background: #f44336;
}

.bucket-toast.bucket-toast-info {
  background: #2196F3;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .bucket-modal-content {
    max-width: 95%;
    margin: 10px;
  }

  .bucket-modal-header h2 {
    font-size: 20px;
  }

  .bucket-stats {
    flex-direction: column;
    gap: 16px;
  }

  .stat-number {
    font-size: 28px;
  }

  .preview-tabs {
    flex-direction: column;
  }

  .bucket-share-buttons-grid {
    grid-template-columns: 1fr;
  }

  .preview-dimensions {
    font-size: 10px;
    padding: 4px 8px;
  }
}