/* AIRDROPS */

/* Dans ton fichier CSS */
.deletion-success {
    position: fixed;
    top: 20px;
    right: 20px;
    background: #27ae60;
    color: white;
    padding: 15px 20px;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    z-index: 10000;
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.delete-airdrop:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Styles pour le décompte de suppression */
.deletion-countdown {
    padding: 15px;
    background: linear-gradient(135deg, #ff6b6b, #ee5a24);
    border-radius: 10px;
    text-align: center;
    animation: pulse-deletion 2s infinite;
}

.deletion-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 10px;
    color: white;
    font-weight: 600;
}

.deletion-header i {
    font-size: 1.2em;
}

.deletion-timer {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin: 10px 0;
}

.deletion-timer .time-block {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    padding: 8px 12px;
    min-width: 50px;
}

.deletion-timer .time-block.warning {
    background: rgba(255, 193, 7, 0.3);
    border: 1px solid #ffc107;
}

.deletion-timer .time-block.critical {
    background: rgba(220, 53, 69, 0.3);
    border: 1px solid #dc3545;
    animation: blink-critical 1s infinite;
}

.deletion-timer .time-value {
    font-size: 1.5em;
    font-weight: bold;
    color: white;
}

.deletion-timer .time-label {
    font-size: 0.8em;
    color: rgba(255, 255, 255, 0.9);
    text-transform: uppercase;
}

.deletion-info {
    margin-top: 10px;
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.85em;
}

.deletion-imminent {
    padding: 20px;
    background: #dc3545;
    color: white;
    border-radius: 10px;
    text-align: center;
    font-weight: bold;
    animation: shake 0.5s infinite;
}




/* Animations */
@keyframes pulse-deletion {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.9; }
}

@keyframes blink-critical {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.6; }
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

.airdrop-badge.deletion {
    background: linear-gradient(135deg, #ff6b6b, #ee5a24);
    color: white;
    animation: pulse-deletion 2s infinite;
}

/* Styles existants que vous avez partagés */
.airdrop-publish-container {
  background-color: #f8f9fa;
  border-radius:10px;
  padding:30px;
  margin-bottom: 30px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  transition:all 0.4s ease;
  overflow:hidden;
  background:linear-gradient(135deg, #5e5e5e 0%, #292929 100%);
  margin-top: 5px;
}

.airdrop-publish-container h2 {
  text-align: center;
}
#airdropPublishContainer h2{
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 30px;
}
.form-label {
  display: block;
  margin-top: 15px;
  margin-bottom: 5px;
  font-weight: 600;
}

input[type="text"],
input[type="number"],
input[type="file"],
textarea {
width: 100%;
  padding:10px;
  border:1px solid #ddd3;
  border-radius:6px;
  font-size: 15px;
  background-color: #757575;
  color: white;
}

textarea {
  resize: vertical;
}


.airdrop-cost, .user-balance {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 30px 15px 30px;
  background-color: #00000052;
  border-radius: 8px;
  margin: 10px 0px 5px 0px;
}

.user-airdrops-section {
  border-radius: 15px;
  /* width: 100% retiré : provoquait un débordement/décalage dans account */
  box-sizing: border-box;
  margin-left: 0;
  margin-right: 0;
  padding: 30px;
  background: #ffffff52;
  margin-top: 10px;
}

.airdrops-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

#userTwitterList .empty-list p{
  background: transparent;
}


/* Style amélioré pour l'état collapsed avec les mêmes valeurs que Twitter */
.airdrop-publish-container.collapsed {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  padding: 0; /* Ajout pour correspondre au style Twitter */
  margin: 0; /* Ajout pour correspondre au style Twitter */
  pointer-events: none; /* Empêche les interactions quand masqué */
  border: none; /* Supprime la bordure quand masqué */
}

/* Style pour le bouton de toggle, harmonisé avec Twitter */

.toggle-form-btn {
padding:12px 20px;
background-color: #7b7b7b9e;
  color: #ffffffe0;
  border-radius:5px;
  font-size: 28px;
  font-weight: 400;
  cursor: pointer;
  transition:all 0.1s ease;
  text-transform: uppercase;
  font-family: 'Anton', sans-serif;
  width: 100%;
  margin-top: 5px;
  border:none;
  margin-bottom:17px;
}

.toggle-form-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(83, 83, 83, 0.4);
}

/* Animation d'apparition quand le formulaire est affiché */
.airdrop-publish-container:not(.collapsed) {
  animation: form-appear 0.4s ease;
}

@keyframes form-appear {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.content-flex-toggle-drop {
  display: flex;
  justify-content: space-between;
  padding: 30px;
  border-radius: 15px;
  background: rgb(246, 246, 246);
}
.btn-publi-drop{
  margin:auto 20px;
  border-radius:20px;
  border:1px solid #fff;
  box-shadow: rgba(0, 0, 0, 0.24) 0px 1px 3px;
  background:linear-gradient(90deg, #eee, #dfdfdf);
  padding:25px;
}
.btn-publi-drop i{
  font-size: 100px;
  color: #f0b90b;
}
.publi-drop-drop {
  display: flex;
  justify-content: center;
}

.interface-drop {
  margin: auto 20px;
}
.interface-drop h1{
  color: #808080c2;
  font-family: anton;
  font-weight: 100;
  margin-bottom: 30px;
}
.interface-drop p {
  color: gray;
  text-align: justify;
}

.empty-list{
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 10px;
}
.empty-list p{
  background-color: #373737;
  margin: auto;
  padding: 10px;
  width: 100%;
  justify-content: center;
  color:gray;
  border-radius: 10px;
}
.empty-list center{
  width: 100%;
}

/*POPUP BOOST VOTE*/

/* Style pour le popup de boost vote */
.popup-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

.popup-overlay .popup-content {
  background-color: white;
  padding: 25px;
  border-radius: 10px;
  width: 90%;
  max-width: 400px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  position: relative;
  animation: popIn 0.3s ease-out;
}

@keyframes popup-appear {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Style pour les boutons du popup */
.popup-actions {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 50px;
  flex-direction: column;
}

.popup-actions button {
  padding: 10px 20px;
  border-radius: 5px;
  border: none;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.3s ease;
}

.popup-actions button:first-child {
  background-color: #f0b90b;
  color: white;
  justify-content: center;
}

.popup-actions button:first-child:hover {
  background-color: #e0aa00;
}

.popup-actions button:last-child {
  justify-content: center;
    background: #ecf0f1;
  color: gray;
  width: 100%;
  padding: 10px 18px;
  cursor: pointer;
  border-radius: 10px;
}

.popup-actions button:last-child:hover {
  background-color: #e5e5e5;
}

#boostVoteAmount {
  background-color: #fff;
  color: #484848;
}

/* Style pour le message d'airdrop terminé */
.airdrop-ended-message {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 15px 0;
  font-size: 18px;
  font-weight: 600;
  color: #757575;
  background-color: #f5f5f5;
  border-radius: 8px;
  transition: all 0.3s ease;
}

.airdrop-ended-message i {
  margin-right: 10px;
  font-size: 20px;
  color: #e74c3c;
}

/* Styles pour l'éditeur Quill et l'affichage des descriptions */

/* Style pour le conteneur de l'éditeur */
#airdropDescriptionEditor {
  border: 1px solid #ddd;
  border-radius: 8px;
  height:auto;
 background: #ffffffbf;
 margin-top: 5px;
}

/* Adaptation de la toolbar Quill au thème de l'application */
.ql-toolbar.ql-snow {
  border: 1px solid #ddd;
  border-radius: 5px;
  background-color: #f8f9fa;
  padding: 8px;
}

.ql-container.ql-snow {
  border: 1px solid #ddd;
  border-top: none;
  border-radius: 0 0 8px 8px;
}

.flex-airdrop-account{
  margin-bottom:45px;
}

/* Styles pour l'affichage des descriptions dans les cartes */
.air-desc {
  margin: 10px 0;
  overflow: hidden;
  max-height: 200px;
  position: relative;
}
.air-desc p{
  background: white;
}

/* Gradient pour indiquer du contenu masqué par limite de hauteur */
.air-desc::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 40px;
  background: linear-gradient(to bottom, rgba(255,255,255,0), rgba(255,255,255,1));
  pointer-events: none;
  display: none; /* Affiché uniquement quand le contenu est tronqué */
}

.air-desc.truncated::after {
  display: block;
}

/* Styles pour les éléments dans les descriptions */
.air-desc a {
  color: #007bff;
  text-decoration: none;
}

.air-desc a:hover {
  text-decoration: underline;
}

.air-desc ul, .air-desc ol {
  padding-left: 20px;
  margin: 10px 0;
}

.air-desc blockquote {
  border-left: 3px solid #ddd;
  margin: 0;
  padding: 10px 20px;
  background-color: #f8f9fa;
  color: #666;
}

.air-desc table {
  border-collapse: collapse;
  width: 100%;
  margin: 10px 0;
}

.air-desc th, .air-desc td {
  border: 1px solid #ddd;
  padding: 8px;
}

.air-desc th {
  background-color: #f8f9fa;
}

/* Pour le mode responsive */
@media (max-width: 768px) {
  .ql-toolbar.ql-snow {
    flex-wrap: wrap;
  }
  
  .ql-toolbar button {
    padding: 3px !important;
  }
  
  #airdropDescriptionEditor {
    min-height: 100px;
  }
}

/* Conteneur global pour la description et son bouton */

  .air-desc-container {
    position: relative;
    transition: max-height 0.3s ease;
    padding: 20px;
    background-color: white;
    border-radius:20px;
    border: 1px dashed #adb5bd;
}

/* Style de base pour la description */
.air-desc {
  overflow: hidden;
  max-height: 200px;
  transition: max-height 0.3s ease;
}

/* Gradient pour indiquer du contenu masqué */
.air-desc-container.truncated .air-desc::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 50px;
  background: linear-gradient(to bottom, rgba(255,255,255,0), rgba(255,255,255,1));
  pointer-events: none;
}




/* ============================================
   PAGINATION CONTROLS - Expand Rankings
   Style NoraDrops - Jaune / Noir / Gris
   Fond clair
   ============================================ */

/* Container principal */
.pagination-controls {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
  padding: 25px 20px;
  margin-top: 15px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0) 0%, rgba(0, 0, 0, 0.02) 100%);
  border-top: 1px solid rgba(0, 0, 0, 0.08);
}

/* Info compteur */
.pagination-info {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #666;
  font-size: 13px;
  font-weight: 400;
}

.pagination-count {
  font-weight: 700;
  color: #1a1a1a;
  font-size: 14px;
}

.pagination-label {
  text-transform: lowercase;
  color: #888;
}

/* Boutons communs */
.view-more-btn,
.view-all-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 28px;
  border: none;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  font-family: inherit;
}

/* Bouton Voir plus - Style principal NoraDrops (Jaune/Noir) */
.view-more-btn {
  background: linear-gradient(135deg, #FFD700 0%, #FFC107 50%, #FFB300 100%);
  color: #1a1a1a;
  min-width: 220px;
  box-shadow: 0 4px 15px rgba(255, 193, 7, 0.3);
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(0, 0, 0, 0.1);
}

.view-more-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
  transition: left 0.5s ease;
}

.view-more-btn:hover::before {
  left: 100%;
}

.view-more-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(255, 193, 7, 0.45);
  background: linear-gradient(135deg, #FFE033 0%, #FFD700 50%, #FFC107 100%);
}

.view-more-btn:active {
  transform: translateY(-1px);
  box-shadow: 0 4px 15px rgba(255, 193, 7, 0.35);
}

.view-more-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.view-more-btn:disabled:hover {
  transform: none;
  box-shadow: none;
}

.view-more-btn:disabled::before {
  display: none;
}

/* Bouton Tout afficher - Style secondaire (Gris/Noir) */
.view-all-btn {
  background: #f5f5f5;
  color: #333;
  border: 1px solid #ddd;
}

.view-all-btn:hover {
  background: #1a1a1a;
  color: #fff;
  border-color: #1a1a1a;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

.view-all-btn:active {
  background: #333;
}

/* Icônes des boutons */
.view-more-btn i,
.view-all-btn i {
  font-size: 12px;
  transition: transform 0.3s ease;
}

.view-more-btn:hover i {
  transform: translateY(2px);
}

.view-all-btn:hover i {
  transform: scale(1.1);
}

/* Animation loading */
.view-more-btn.loading {
  pointer-events: none;
}

.view-more-btn.loading i {
  animation: bounceArrow 0.6s ease-in-out infinite;
}

@keyframes bounceArrow {
  0%, 100% { 
    transform: translateY(0); 
  }
  50% { 
    transform: translateY(4px); 
  }
}

/* État caché */
.pagination-controls.hidden {
  display: none;
}

/* ============================================
   ANIMATION NOUVEAUX ÉLÉMENTS
   ============================================ */

.ranking-item.newly-added {
  animation: fadeInUp 0.4s cubic-bezier(0.4, 0, 0.2, 1) forwards;
  opacity: 0;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(25px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

@media (max-width: 768px) {
  .pagination-controls {
    padding: 20px 15px;
    gap: 12px;
  }
  
  .view-more-btn,
  .view-all-btn {
    width: 100%;
    max-width: 300px;
    padding: 12px 20px;
    font-size: 13px;
  }
  
  .view-more-btn {
    min-width: unset;
  }
  
  .pagination-info {
    font-size: 12px;
  }
  
  .pagination-count {
    font-size: 13px;
  }
}

@media (max-width: 480px) {
  .pagination-controls {
    padding: 15px 10px;
  }
  
  .view-more-btn,
  .view-all-btn {
    padding: 11px 16px;
    font-size: 12px;
    border-radius: 10px;
  }
}






/* Mode expanded - Cacher les colonnes non actives */
.home-rankings.expanded-airdrops #twitterColumn {
    display: none !important;
}

.home-rankings.expanded-twitter #airdropsColumn {
    display: none !important;
}

/* S'assurer que la colonne active prend toute la largeur */
.home-rankings.expanded-airdrops #airdropsColumn,
.home-rankings.expanded-twitter #twitterColumn {
    width: 100% !important;
    max-width: 100% !important;
    flex: 0 0 100% !important;
}
/* Transitions fluides pour les colonnes */
#airdropsColumn,
#twitterColumn {
    transition: opacity 0.3s ease;
}

.home-rankings.expanded-airdrops #twitterColumn,
.home-rankings.expanded-twitter #airdropsColumn {
    opacity: 0;
    display: none !important;
    transition: none; /* Pas de transition sur display */
}

.home-rankings.expanded-airdrops #airdropsColumn,
.home-rankings.expanded-twitter #twitterColumn {
    opacity: 1;
}




/* État développé */
.air-desc-container.expanded .air-desc {
  max-height:100%; /* Valeur suffisamment grande */
}

.air-desc-container.expanded .air-desc::after {
  display: none; /* Masquer le dégradé quand développé */
}
.expanded-airdrops .airdrop-rank-card {
  margin:0px;
}
.expanded-twitter .twitter-rank-card {
  margin:0px;
}

.expanded-twitter .item-title h3{
  font-size: 16px;
}
.expanded-twitter .item-title i {
  font-size: 18px;
}
.expanded-twitter .flex-name-item {
  margin-bottom: 0px;
}


/* Bouton d'expansion */
.expand-desc-btn {
  display: none; /* Caché par défaut, affiché en JS si nécessaire */
  position: absolute;
  bottom: -15px;
  left: 50%;
  transform: translateX(-50%);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: white;
  border:1px solid #f1ba0bb2;
  box-shadow: 0 0px 10px rgba(67, 67, 67, 0.29);
  cursor: pointer;
  z-index: 2;
  
  /* Centrer l'icône */
  align-items: center;
  justify-content: center;
  
  /* Animation */
  transition: transform 0.2s ease, background-color 0.2s ease;
}

.expand-desc-btn:hover {
  background-color: #f8f9fa;
  transform: translateX(-50%) scale(1.1);
}

.expand-desc-btn i {
  color: #666;
  font-size: 14px;
}

/* Ajouter de la marge en bas quand tronqué pour faire de la place au bouton */
.air-desc-container.truncated {
  margin-bottom: 60px;
}

/* Animation transition */
.air-desc-container.expanded .expand-desc-btn {
  bottom: -50px;
}