/* Shoe Viewer Container - Split Screen Layout */
#shoe-viewer-container {
  display: flex;
  flex-direction: row;
  width: 100%;
  min-height: 600px;
  margin: 30px 0;
  gap: 20px;
  align-items: stretch;
}

/* Controls Panel - Left Side */
.shoe-controls-panel {
  flex: 0 0 300px;
  background: rgba(20, 20, 20, 0.95);
  border: 2px solid #444;
  border-radius: 10px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.shoe-controls-panel h3 {
  margin: 0 0 10px 0;
  color: #fff;
  font-size: 24px;
  text-align: center;
  border-bottom: 2px solid #555;
  padding-bottom: 10px;
}

.control-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.control-group label {
  color: #ccc;
  font-size: 14px;
  font-weight: bold;
}

.control-group select,
.control-group input[type="range"] {
  padding: 10px;
  background: #333;
  border: 1px solid #555;
  border-radius: 5px;
  color: #fff;
  font-size: 14px;
  cursor: pointer;
}

.control-group select:hover,
.control-group select:focus {
  border-color: #888;
  outline: none;
}

.control-group input[type="range"] {
  padding: 0;
  height: 6px;
  background: #555;
  -webkit-appearance: none;
  appearance: none;
}

.control-group input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 18px;
  height: 18px;
  background: #888;
  border-radius: 50%;
  cursor: pointer;
}

.control-group input[type="range"]::-moz-range-thumb {
  width: 18px;
  height: 18px;
  background: #888;
  border-radius: 50%;
  cursor: pointer;
  border: none;
}

.control-group button {
  padding: 12px 20px;
  background: #555;
  border: 1px solid #777;
  border-radius: 5px;
  color: #fff;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-top: 5px;
}

.control-group button:hover {
  background: #666;
  border-color: #999;
  transform: translateY(-1px);
}

.control-group button:active {
  transform: translateY(0);
}

#speed-value {
  color: #fff;
  font-size: 14px;
  text-align: center;
  margin-top: 5px;
}

.info-text {
  margin-top: auto;
  padding-top: 20px;
  border-top: 1px solid #555;
}

.info-text p {
  color: #aaa;
  font-size: 12px;
  margin: 5px 0;
}

/* Viewer Wrapper - Right Side */
.shoe-viewer-wrapper {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

#shoe-viewer {
  width: 100%;
  height: 600px;
  min-height: 500px;
  background: #1a1a1a;
  border: 2px solid #444;
  border-radius: 10px;
  overflow: hidden;
  position: relative;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

#shoe-viewer canvas {
  display: block;
  width: 100%;
  height: 100%;
  cursor: grab;
}

#shoe-viewer canvas:active {
  cursor: grabbing;
}

.viewer-loading {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: #fff;
  font-size: 18px;
  z-index: 10;
  font-family: Arial, sans-serif;
}

/* Responsive Design - Mobile Layout */
@media (max-width: 768px) {
  #shoe-viewer-container {
    flex-direction: column;
    min-height: auto;
  }

  .shoe-controls-panel {
    flex: 0 0 auto;
    width: 100%;
    order: 2;
  }

  .shoe-viewer-wrapper {
    flex: 0 0 auto;
    width: 100%;
    order: 1;
  }

  #shoe-viewer {
    height: 400px;
    min-height: 400px;
  }

  /* Horizontal orientation hint for mobile */
  @media (orientation: landscape) {
    #shoe-viewer-container {
      flex-direction: row;
    }

    .shoe-controls-panel {
      flex: 0 0 250px;
      order: 1;
    }

    .shoe-viewer-wrapper {
      flex: 1;
      order: 2;
    }

    #shoe-viewer {
      height: 100%;
      min-height: 300px;
    }
  }
}

/* Dark theme compatibility */
.post #shoe-viewer-container {
  background: transparent;
}

/* Smooth transitions */
#shoe-viewer-container * {
  transition: background-color 0.3s ease, border-color 0.3s ease;
}

