/* LumoEmbroidery – Frontend Styles */

.lumo-embroidery-wrapper {
  position: relative;
  width: 100%;
  overflow: hidden;
  background: #f5f0e8;
  border-radius: 4px;
  cursor: crosshair;
  user-select: none;
}

.lumo-canvas {
  display: block;
  width: 100% !important;
  height: 100% !important;
}

/* ── Overlay UI ── */
.lumo-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  padding: 20px;
  pointer-events: none;
}

/* ── Start Button ── */
.lumo-start-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 28px;
  background: rgba(255, 255, 255, 0.92);
  border: 2px solid rgba(0,0,0,0.12);
  border-radius: 40px;
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 15px;
  font-weight: 600;
  color: #2c1810;
  cursor: pointer;
  pointer-events: all;
  letter-spacing: 0.04em;
  box-shadow:
    0 4px 20px rgba(0,0,0,0.12),
    0 0 0 0 rgba(232, 168, 124, 0);
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    background 0.2s ease;
  opacity: 0;
  transition: opacity 0.5s ease, transform 0.2s ease, box-shadow 0.3s ease;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.lumo-start-btn:hover {
  transform: translateY(-2px) scale(1.03);
  box-shadow:
    0 8px 30px rgba(0,0,0,0.18),
    0 0 0 4px rgba(232, 168, 124, 0.25);
  background: rgba(255, 255, 255, 0.98);
}

.lumo-start-btn:active {
  transform: translateY(0) scale(0.98);
}

.lumo-needle-icon {
  font-size: 18px;
  animation: lumo-spin 3s linear infinite;
  display: inline-block;
}

@keyframes lumo-spin {
  0%   { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* ── Progress Bar ── */
.lumo-progress {
  width: 80%;
  max-width: 300px;
  height: 3px;
  background: rgba(0,0,0,0.1);
  border-radius: 2px;
  margin-top: 16px;
  overflow: hidden;
}

.lumo-progress-bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #e8a87c, #c0392b);
  border-radius: 2px;
  transition: width 0.1s linear;
}

/* ── Sound Toggle ── */
.lumo-sound-toggle {
  position: absolute;
  top: 12px;
  right: 12px;
  font-size: 18px;
  cursor: pointer;
  opacity: 0.5;
  transition: opacity 0.2s;
  pointer-events: all;
  z-index: 10;
  user-select: none;
}

.lumo-sound-toggle:hover {
  opacity: 1;
}

/* ── Elementor Editor Preview ── */
.lumo-preview-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  text-align: center;
  color: #666;
  font-family: Georgia, serif;
  gap: 8px;
}

.lumo-preview-icon {
  font-size: 48px;
  animation: lumo-bounce 2s ease-in-out infinite;
}

@keyframes lumo-bounce {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-8px); }
}

/* ── Responsive ── */
@media (max-width: 768px) {
  .lumo-start-btn {
    font-size: 13px;
    padding: 10px 20px;
  }

  .lumo-progress {
    width: 90%;
  }
}
