/* AR Floor Frontend Styles */

.ar-floor-button-container {
  margin: 20px 0;
  position: relative;
}

.ar-floor-button {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border: none;
  border-radius: 6px;
  font-family: inherit;
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  text-decoration: none;
  overflow: hidden;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.ar-floor-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(102, 126, 234, 0.4);
}

.ar-floor-button:active {
  transform: translateY(0);
}

.ar-floor-icon svg {
  width: 20px;
  height: 20px;
  transition: transform 0.3s ease;
}

.ar-floor-button:hover .ar-floor-icon svg {
  transform: rotateY(180deg);
}

.ar-floor-pulse {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100%;
  height: 100%;
  border-radius: inherit;
  background: rgba(255, 255, 255, 0.3);
  transform: translate(-50%, -50%) scale(0);
  animation: arFloorPulse 2s infinite;
}

@keyframes arFloorPulse {
  0% {
    transform: translate(-50%, -50%) scale(0);
    opacity: 1;
  }
  70% {
    transform: translate(-50%, -50%) scale(1);
    opacity: 0;
  }
  100% {
    transform: translate(-50%, -50%) scale(1);
    opacity: 0;
  }
}

.ar-floor-compatibility-note {
  margin-top: 8px;
  text-align: center;
}

.ar-floor-compatibility-note small {
  color: #666;
  font-size: 12px;
}

/* Button Styles */
.ar-floor-style-minimal .ar-floor-button {
  background: white;
  color: #333;
  border: 2px solid #e1e5e9;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.ar-floor-style-minimal .ar-floor-button:hover {
  border-color: #667eea;
  color: #667eea;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.ar-floor-style-professional .ar-floor-button {
  background: #2c3e50;
  color: white;
  border-radius: 3px;
  box-shadow: 0 2px 8px rgba(44, 62, 80, 0.3);
}

.ar-floor-style-professional .ar-floor-button:hover {
  background: #34495e;
  box-shadow: 0 4px 12px rgba(44, 62, 80, 0.4);
}

/* Modal Styles */
.ar-floor-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ar-floor-modal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(4px);
}

.ar-floor-modal-content {
  position: relative;
  background: white;
  border-radius: 12px;
  width: 90%;
  max-width: 600px;
  max-height: 90vh;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.ar-floor-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  border-bottom: 1px solid #e1e5e9;
}

.ar-floor-modal-header h3 {
  margin: 0;
  font-size: 20px;
  font-weight: 600;
  color: #2c3e50;
}

.ar-floor-close {
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: #666;
  padding: 0;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all 0.2s ease;
}

.ar-floor-close:hover {
  background: #f5f5f5;
  color: #333;
}

.ar-floor-modal-body {
  padding: 24px;
}

.ar-floor-instructions {
  margin-bottom: 20px;
  padding: 16px;
  background: #f8f9fa;
  border-radius: 8px;
  border-left: 4px solid #667eea;
}

.ar-floor-instructions p {
  margin: 0;
  color: #555;
  line-height: 1.5;
}

.ar-floor-viewer-container {
  margin: 20px 0;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.ar-floor-ar-launch {
  position: absolute;
  bottom: 20px;
  right: 20px;
  background: #667eea;
  color: white;
  border: none;
  padding: 12px 20px;
  border-radius: 25px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.ar-floor-ar-launch:hover {
  background: #5a6fd8;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(102, 126, 234, 0.4);
}

.ar-floor-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  color: #666;
}

.ar-floor-spinner {
  width: 40px;
  height: 40px;
  border: 3px solid #f3f3f3;
  border-top: 3px solid #667eea;
  border-radius: 50%;
  animation: arFloorSpin 1s linear infinite;
  margin-bottom: 12px;
}

@keyframes arFloorSpin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.ar-floor-controls {
  margin: 20px 0;
  padding: 16px;
  background: #f8f9fa;
  border-radius: 8px;
}

.ar-floor-scale-controls label {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 500;
  color: #555;
}

.ar-floor-slider {
  flex: 1;
  height: 6px;
  border-radius: 3px;
  outline: none;
  background: #ddd;
  -webkit-appearance: none;
}

.ar-floor-slider::-webkit-slider-thumb {
  appearance: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #667eea;
  cursor: pointer;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.ar-floor-slider::-moz-range-thumb {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #667eea;
  cursor: pointer;
  border: none;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

#ar-floor-scale-value {
  min-width: 45px;
  text-align: center;
  font-weight: 600;
  color: #667eea;
}

.ar-floor-modal-footer {
  padding: 16px 24px;
  border-top: 1px solid #e1e5e9;
  display: flex;
  justify-content: flex-end;
  gap: 12px;
}

.ar-floor-btn {
  padding: 10px 20px;
  border: none;
  border-radius: 6px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}

.ar-floor-btn-secondary {
  background: #f5f5f5;
  color: #666;
}

.ar-floor-btn-secondary:hover {
  background: #e9e9e9;
  color: #333;
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .ar-floor-modal-content {
    width: 95%;
    margin: 20px;
  }
  
  .ar-floor-modal-header,
  .ar-floor-modal-body,
  .ar-floor-modal-footer {
    padding: 16px;
  }
  
  .ar-floor-button {
    width: 100%;
    justify-content: center;
  }
}