/* Stili per il banner dei cookie e il modal dell'informativa */

/* Banner dei cookie */
.cookie-banner {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 350px;
  background-color: rgba(0, 0, 0, 0.9);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  border: 1px solid rgba(108, 99, 255, 0.7);
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4), 0 0 15px rgba(108, 99, 255, 0.2);
  z-index: 9999;
  padding: 22px;
  transform: translateY(100%);
  opacity: 0;
  transition: transform 0.5s ease, opacity 0.5s ease;
  color: #ffffff;
  font-family: 'Poppins', sans-serif;
}

/* Versione mobile - cookie banner centrato */
@media (max-width: 768px) {
  .cookie-banner {
    left: 50%;
    right: auto;
    transform: translateX(-50%) translateY(100%);
    width: 90%;
    max-width: 350px;
  }
  
  .cookie-banner.show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
  }
}

.cookie-banner.show {
  transform: translateY(0);
  opacity: 1;
}

/* Assicuriamo che le regole desktop non sovrascrivano quelle mobile */
@media (min-width: 769px) {
  .cookie-banner.show {
    transform: translateY(0);
    opacity: 1;
  }
}

.cookie-content p {
  margin: 0 0 18px 0;
  font-size: 14px;
  line-height: 1.6;
  letter-spacing: 0.2px;
}

.cookie-buttons {
  display: flex;
  justify-content: space-between;
}

.cookie-button {
  padding: 10px 18px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
  font-size: 14px;
  transition: all 0.3s ease;
  font-family: 'Poppins', sans-serif;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  font-size: 13px;
}

.cookie-button.accept {
  background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
  color: #ffffff;
  box-shadow: 0 4px 10px rgba(108, 99, 255, 0.3);
}

.cookie-button.info {
  background-color: transparent;
  border: 1px solid rgba(255, 255, 255, 0.6);
  color: #ffffff;
  box-shadow: 0 4px 10px rgba(255, 255, 255, 0.1);
}

.cookie-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 5px 12px rgba(0, 0, 0, 0.3);
}

.cookie-button:active {
  transform: translateY(1px);
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

/* Modal per l'informativa sui cookie */
.cookie-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  z-index: 10000;
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}

.cookie-modal.show {
  opacity: 1;
  visibility: visible;
}

.cookie-modal-content {
  width: 80%;
  max-width: 700px;
  max-height: 80vh;
  background-color: rgba(0, 0, 0, 0.9);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(108, 99, 255, 0.5);
  border-radius: 10px;
  padding: 30px;
  position: relative;
  overflow-y: auto;
  color: #ffffff;
  font-family: 'Poppins', sans-serif;
}

.cookie-close {
  position: absolute;
  top: 15px;
  right: 15px;
  font-size: 24px;
  cursor: pointer;
  color: #ffffff;
  transition: color 0.3s ease;
}

.cookie-close:hover {
  color: var(--primary-color);
}

.cookie-policy-text {
  margin: 20px 0;
}

.cookie-policy-text h3 {
  margin: 15px 0 10px 0;
  color: var(--primary-color);
  font-size: 18px;
}

.cookie-policy-text p {
  margin: 0 0 15px 0;
  font-size: 14px;
  line-height: 1.6;
}

.cookie-modal-buttons {
  display: flex;
  justify-content: center;
  margin-top: 20px;
}

/* Responsive */
@media (max-width: 768px) {
  .cookie-banner {
    width: calc(100% - 40px);
    bottom: 10px;
    right: 10px;
    left: 10px;
  }
  
  .cookie-modal-content {
    width: 90%;
    padding: 20px;
  }
}
