/**
 * Lamp Configurator - Styles
 */

/* Button */
.lamp-configurator-wrapper {
  margin: 15px 0;
}

.lamp-customize-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 14px 28px;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 700;
  color: #ffffff;
  cursor: pointer;
  transition: opacity 0.2s ease, transform 0.2s ease;
  justify-content: center;
}

.lamp-customize-btn:hover {
  opacity: 0.9;
  transform: translateY(-1px);
}

.lamp-customize-btn:active {
  transform: translateY(0);
}

.lamp-btn-icon {
  font-size: 20px;
}

/* Modal */
.lamp-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 999999;
}

.lamp-modal--open {
  display: block;
}

.lamp-modal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.85);
  animation: lampFadeIn 0.3s ease;
}

.lamp-modal-content {
  position: relative;
  width: 100%;
  height: 100%;
  animation: lampSlideUp 0.4s ease;
}

.lamp-modal-close {
  position: absolute;
  top: 12px;
  right: 16px;
  z-index: 1000000;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(8px);
  color: #ffffff;
  border: none;
  border-radius: 50%;
  width: 44px;
  height: 44px;
  font-size: 24px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease;
}

.lamp-modal-close:hover {
  background: rgba(255, 255, 255, 0.3);
}

.lamp-modal-iframe {
  width: 100%;
  height: 100%;
  border: none;
}

/* Animations */
@keyframes lampFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

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

/* Responsive */
@media (min-width: 768px) {
  .lamp-modal-content {
    width: 90%;
    max-width: 900px;
    height: 90%;
    margin: 5vh auto;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.5);
  }

  .lamp-modal-close {
    top: 16px;
    right: 20px;
  }
}
