/* ============================================================
   SPL MODAL POPUP STYLES
   ============================================================ */

/* Modal overlay */
.spl-modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  z-index: 9999;
  justify-content: center;
  align-items: center;
  backdrop-filter: blur(3px);
}

/* Modal content container */
.spl-modal-content {
  background: #fff;
  width: 90%;
  max-width: 900px;
  border-radius: 18px;
  padding: 30px;
  position: relative;
  animation: scaleIn 0.25s ease;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  max-height: 90vh;
  overflow-y: auto;
}

@keyframes scaleIn {
  from {
    transform: scale(0.9);
    opacity: 0;
  }

  to {
    transform: scale(1);
    opacity: 1;
  }
}

/* Close button */
.spl-close {
  position: absolute;
  top: 18px;
  right: 22px;
  font-size: 32px;
  cursor: pointer;
  color: #666;
  transition: color 0.2s ease;
  line-height: 1;
  font-weight: 300;
}

.spl-close:hover {
  color: #c62828;
}

/* Modal body layout */
.spl-modal-body {
  display: flex;
  gap: 30px;
  margin-top: 10px;
}

/* Image section */
.spl-image {
  flex-shrink: 0;
}

.spl-image img {
  width: 360px;
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  object-fit: contain;
  background: #f9f9f9;
  padding: 10px;
}

/* Info section */
.spl-info {
  flex: 1;
}

.spl-info h2 {
  font-size: 26px;
  font-weight: 600;
  color: #222;
  margin: 0 0 15px 0;
  font-family: "Sora", sans-serif;
}

.spl-info p {
  font-size: 16px;
  color: #555;
  line-height: 1.6;
  margin-bottom: 20px;
  font-family: "Inter", sans-serif;
}

.spl-info h4 {
  font-size: 18px;
  font-weight: 600;
  color: #c62828;
  margin: 20px 0 10px 0;
  font-family: "Sora", sans-serif;
}

.spl-info ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.spl-info ul li {
  padding: 8px 12px;
  background: #f5f5f5;
  border-left: 3px solid #c62828;
  margin-bottom: 8px;
  font-size: 15px;
  color: #333;
  font-family: "Inter", sans-serif;
  border-radius: 4px;
}

/* Responsive modal */
@media (max-width: 768px) {
  .spl-modal-content {
    width: 95%;
    padding: 20px;
    max-height: 95vh;
  }

  .spl-modal-body {
    flex-direction: column;
    gap: 20px;
  }

  .spl-image img {
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
    display: block;
  }

  .spl-info h2 {
    font-size: 22px;
  }

  .spl-info p {
    font-size: 15px;
  }

  .spl-close {
    font-size: 28px;
    top: 12px;
    right: 16px;
  }
}

/* Make SPL cards clickable but not look like links */
.spl-machine {
  cursor: pointer;
  text-decoration: none;
  color: inherit;
}

.spl-machine:hover {
  text-decoration: none;
}
