/**
 * SYNTO Modal Embed - Styles
 * Versione: 1.2
 * Estratto da functions.php per modularizzazione
 */

#synto-modal-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(37, 99, 235, 0.3);
  z-index: 99999;
  justify-content: center;
  align-items: center;
  backdrop-filter: blur(4px);
}

#synto-modal-overlay.active {
  display: flex;
}

#synto-modal-container {
  position: relative;
  width: 90vw;
  height: 85vh;
  max-width: 1200px;
  max-height: 1000px;
  min-width: 320px;
  min-height: 400px;
  background: #0f0f0f;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: none;
}

#synto-modal-close {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 24px;
  height: 24px;
  border: none;
  background: rgba(0, 0, 0, 0.6);
  color: #fff;
  border-radius: 50%;
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
  z-index: 100000;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}

#synto-modal-close:hover {
  background: rgba(0, 0, 0, 0.8);
}

#synto-modal-iframe {
  width: 100%;
  height: 100%;
  border: none;
  transition: opacity 0.3s ease;
}

/* Loader spinner per modal SYNTO */
#synto-modal-container.loading::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 40px;
  height: 40px;
  margin: -20px 0 0 -20px;
  border: 4px solid rgba(33, 150, 243, 0.2);
  border-top-color: #2196f3;
  border-radius: 50%;
  animation: synto-spin 0.8s linear infinite;
  z-index: 10;
}

#synto-modal-container.loading #synto-modal-iframe {
  opacity: 0;
}

@keyframes synto-spin {
  to { transform: rotate(360deg); }
}

/* Tablet */
@media (max-width: 1024px) {
  #synto-modal-container {
    width: 85vw;
    height: 85vh;
  }
}

/* Mobile */
@media (max-width: 768px) {
  #synto-modal-container {
    width: 100vw;
    height: 100vh;
    max-width: none;
    max-height: none;
    border-radius: 0;
  }

  #synto-modal-close {
    top: 4px;
    right: 4px;
    width: 28px;
    height: 28px;
    font-size: 18px;
  }
}
