/* Shared styles for AI create pages */

/* Form container padding across AI pages */
.ai-form-container {
  padding-right: 15px;
}

@media (max-width: 991px) {
  .ai-form-container {
    padding-right: 0;
    margin-bottom: 30px;
  }
}

/* Result container */
.result-container {
  min-height: 400px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  border: 1px solid #dee2e6;
  border-radius: 8px;
  padding: 20px;
  background-color: #f8f9fa;
  width: 100%;
  overflow: hidden;
}

/* Steps block */
.step-card {
  padding: 20px;
  border-radius: 8px;
  background-color: #f8f9fa;
  border: 1px solid #dee2e6;
  height: 100%;
}

.step-number {
  display: inline-block;
  width: 40px;
  height: 40px;
  line-height: 40px;
  border-radius: 50%;
  background-color: #007bff;
  color: #fff;
  font-weight: bold;
  margin-bottom: 15px;
}

/* Resolution options */
.resolution-option {
  border: 1px solid #eee;
  border-radius: 8px;
  padding: 15px;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
  height: 100%;
}

.resolution-option:hover {
  border-color: #007bff;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.resolution-option input[type="radio"] {
  display: none;
}

.resolution-option label {
  font-weight: 600;
  font-size: 1.2rem;
  display: block;
  margin-bottom: 5px;
  cursor: pointer;
}

.resolution-option p {
  font-size: 0.85rem;
  color: #666;
  margin: 0;
}

.resolution-dimensions {
  height: auto;
  min-height: 0;
  margin: 0;
}

.resolution-option input[type="radio"]:checked + label {
  color: #007bff;
}

.resolution-option input[type="radio"]:checked ~ p {
  color: #007bff;
}

/* Image preview helpers */
.max-height-300 {
  max-height: 300px;
  object-fit: contain;
}

/* Comparison view (split) */
.comparison-container {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.split-view-container {
  width: 100%;
  margin: auto;
  position: relative;
}

.split-view-wrapper {
  position: relative;
  overflow: hidden;
  width: 100%;
  margin: 0 auto;
}

#split-view-image-before {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

#split-view-image-after {
  max-width: 100%;
  display: block;
  width: auto;
  height: auto;
  margin: 0 auto;
  object-fit: contain;
}

.split-item-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  clip-path: polygon(50% 0, 100% 0, 100% 100%, 50% 100%);
  z-index: 10;
}

.split-view-slider {
  position: absolute;
  top: 0;
  left: 50%;
  width: 2px;
  height: 100%;
  background: rgba(255, 255, 255, 0.8);
  cursor: ew-resize;
  z-index: 10;
}

.split-view-handle {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 32px;
  height: 32px;
  background: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 5px rgba(0, 0, 0, 0.3);
  cursor: ew-resize;
}

.split-view-handle i {
  font-size: 18px;
  color: #666;
}

.split-view-labels {
  position: absolute;
  top: 20px;
  width: 100%;
  display: flex;
  justify-content: space-between;
  padding: 0 20px;
  z-index: 5;
}

.split-view-labels span {
  background: rgba(0, 0, 0, 0.5);
  padding: 5px 10px;
  border-radius: 4px;
  color: #fff;
  font-weight: bold;
  font-size: 12px;
}

.split-view-wrapper > .split-view-labels .original-label {
  margin-right: auto;
}

.split-item-wrapper.restored .split-view-labels .restored-label {
  margin-left: auto;
}

.demo-watermark {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 4rem;
  font-weight: bold;
  color: rgba(255, 255, 255, 0.7);
  text-shadow: 0 0 5px rgba(0, 0, 0, 0.5);
  pointer-events: none;
  z-index: 10;
  letter-spacing: 5px;
  user-select: none;
}

/* AI landing feature slider and feature card effects */
.ai-style-slider {
  position: relative;
  overflow: hidden;
  width: 100%;
  height: 100%;
}

.style-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  opacity: 0;
  transition: opacity 0.8s ease-in-out;
}

.style-slide.active {
  opacity: 1;
  z-index: 1;
}

.ai-feature-link {
  display: block;
  text-decoration: none;
  color: inherit;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.ai-feature-link:hover {
  transform: translateY(-5px);
  text-decoration: none;
  color: inherit;
}

.ai-feature-link:hover .feature-image {
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.ai-feature-link:hover h3 {
  color: #8e4af0;
}

