/**
 * Image Editor Splash Screen Modal - Apple-style Design
 * TIGHT, COMPACT & MEDIA-FOCUSED
 */

/* MODAL CONTAINER & BACKDROP */
.editor-splash-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1000003;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

.editor-splash-modal.active {
  opacity: 1;
  pointer-events: all;
}

.editor-splash-backdrop {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  transition: opacity 0.4s ease;
}

/* MAIN CONTENT CARD - TIGHTER WIDTH FOR SQUARE CONTENT */
.editor-splash-content {
  position: relative;
  background: rgba(30, 30, 30, 0.85);
  backdrop-filter: blur(50px) saturate(180%);
  -webkit-backdrop-filter: blur(50px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 20px; /* Slightly smaller radius for tighter feel */
  width: 480px; /* Narrower width forces square media to fill horizontally */
  max-width: 92vw;
  max-height: 92vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 
    0 40px 80px rgba(0, 0, 0, 0.5),
    0 0 0 1px rgba(255, 255, 255, 0.05) inset;
  transform: scale(0.96) translateY(10px);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.editor-splash-modal.active .editor-splash-content {
  transform: scale(1) translateY(0);
}

/* CLOSE BUTTON */
.editor-splash-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  border: none;
  color: rgba(255, 255, 255, 0.5);
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  z-index: 20;
}

.editor-splash-close:hover {
  background: rgba(255, 255, 255, 0.15);
  color: white;
}

/* CAROUSEL LAYOUT */
.editor-splash-carousel {
  flex: 1;
  position: relative;
  overflow: hidden;
  display: flex;
  min-height: 0;
}

.editor-splash-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  padding: 24px 24px 16px; /* Minimal padding */
  opacity: 0;
  transform: translateX(40px);
  transition: opacity 0.4s ease, transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
  pointer-events: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  visibility: hidden;
  box-sizing: border-box;
}

.editor-splash-slide.active {
  opacity: 1;
  transform: translateX(0);
  pointer-events: all;
  visibility: visible;
  position: relative;
}

/* HEADER TYPOGRAPHY - COMPACT */
.editor-splash-header {
  text-align: center;
  margin-bottom: 16px; /* Reduced spacing */
  flex-shrink: 0;
}

.editor-splash-title {
  font-size: 22px; /* Slightly smaller */
  font-weight: 600;
  color: white;
  margin: 0 0 4px 0;
  letter-spacing: -0.015em;
}

.editor-splash-subtitle {
  font-size: 13px;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.6);
  margin: 0;
  line-height: 1.4;
  max-width: 380px;
  margin-left: auto;
  margin-right: auto;
}

/* MEDIA CONTAINER - 1:1 SQUARE DOMINANCE */
.editor-splash-media {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 16px;
  flex-shrink: 1; 
  position: relative;
  /* Allow it to take as much space as needed */
}

.editor-splash-video,
.editor-splash-gif {
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1; /* Perfect Square */
  object-fit: cover;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 
    0 10px 30px rgba(0, 0, 0, 0.3),
    0 0 0 1px rgba(255, 255, 255, 0.05) inset;
}

/* BODY CONTENT */
.editor-splash-body {
  text-align: center;
  flex-shrink: 0;
  width: 100%;
}

.feature-description {
  font-size: 13px;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.7);
  margin: 0;
  padding: 0 10px;
}

.feature-description strong {
  color: white;
  font-weight: 600;
}

.inline-icon {
  width: 14px;
  height: 14px;
  vertical-align: sub;
  margin: 0 1px;
  opacity: 0.9;
}

/* COMBO VISUALIZATION - COMPACT */
.editor-splash-tools-combo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px; /* Tighter gap */
  margin-bottom: 12px;
  padding: 8px 16px; /* Smaller padding */
  background: rgba(255, 255, 255, 0.04);
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.combo-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.combo-item img {
  width: 20px; /* Smaller icons */
  height: 20px;
  opacity: 0.9;
}

.combo-item span {
  font-size: 10px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.8);
}

.combo-plus,
.combo-equals {
  font-size: 14px;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.3);
}

.combo-result {
  padding: 4px 10px;
  background: rgba(255, 112, 67, 0.15);
  border: 1px solid rgba(255, 112, 67, 0.3);
  border-radius: 8px;
}

.combo-result span {
  font-size: 11px;
  font-weight: 600;
  color: #FF8A65;
}

/* GRID LAYOUT FOR SLIDE 3 */
.cta-features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 16px;
}

.cta-feature {
  text-align: center;
  padding: 12px 8px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  transition: all 0.2s ease;
}

.cta-feature:hover {
  background: rgba(255, 255, 255, 0.06);
  transform: translateY(-2px);
}

.cta-feature img {
  width: 24px;
  height: 24px;
  margin-bottom: 8px;
  opacity: 0.9;
}

.cta-feature h4 {
  font-size: 12px;
  font-weight: 600;
  color: white;
  margin: 0 0 2px 0;
}

.cta-feature p {
  font-size: 10px;
  color: rgba(255, 255, 255, 0.5);
  margin: 0;
  line-height: 1.2;
}

.cta-message {
  font-size: 14px;
  color: white;
  font-weight: 500;
  margin-top: 16px !important; /* Override inline style */
}

/* DOTS NAVIGATION */
.editor-splash-dots {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding-bottom: 16px;
  flex-shrink: 0;
}

.dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  border: none;
  cursor: pointer;
  padding: 0;
  transition: all 0.3s ease;
}

.dot:hover {
  background: rgba(255, 255, 255, 0.4);
}

.dot.active {
  background: white;
  transform: scale(1.2);
}

/* FOOTER AREA - COMPACT */
.editor-splash-footer {
  padding: 12px 24px 20px; /* Tighter */
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  flex-shrink: 0;
  background: rgba(0, 0, 0, 0.1);
}

/* CHECKBOX */
.editor-splash-checkbox-wrapper {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 6px;
  transition: background 0.2s ease;
}

.editor-splash-checkbox-wrapper:hover {
  background: rgba(255, 255, 255, 0.05);
}

.editor-splash-checkbox {
  width: 14px;
  height: 14px;
  border-radius: 4px;
  border: 1.5px solid rgba(255, 255, 255, 0.3);
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.editor-splash-checkbox.checked {
  background: #FF7043;
  border-color: #FF7043;
}

.editor-splash-checkbox-icon {
  color: white;
  font-size: 9px;
  opacity: 0;
  transform: scale(0.5);
  transition: all 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.editor-splash-checkbox.checked .editor-splash-checkbox-icon {
  opacity: 1;
  transform: scale(1);
}

.editor-splash-checkbox-label {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.6);
  font-weight: 400;
  user-select: none;
}

/* NAVIGATION BUTTONS */
.editor-splash-nav-btn {
  padding: 8px 16px;
  background: rgba(255, 255, 255, 0.08);
  border: none;
  border-radius: 16px;
  color: white;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  min-width: 70px;
  text-align: center;
}

.editor-splash-nav-btn:hover {
  background: rgba(255, 255, 255, 0.12);
}

.editor-splash-nav-btn.prev {
  color: rgba(255, 255, 255, 0.6);
  background: transparent;
}

.editor-splash-nav-btn.prev:hover {
  color: white;
  background: rgba(255, 255, 255, 0.05);
}

.editor-splash-nav-btn.cta-style {
  background: white;
  color: black;
  font-weight: 600;
  box-shadow: 0 2px 10px rgba(255, 255, 255, 0.1);
}

.editor-splash-nav-btn.cta-style:hover {
  background: rgba(255, 255, 255, 0.9);
  transform: translateY(-1px);
  box-shadow: 0 4px 15px rgba(255, 255, 255, 0.15);
}

/* RESPONSIVE */
@media (max-width: 500px) {
  .editor-splash-content {
    width: 94%;
    max-height: 96vh;
  }

  .editor-splash-slide {
    padding: 20px 16px;
  }

  .editor-splash-title {
    font-size: 20px;
  }
  
  .editor-splash-tools-combo {
    transform: scale(0.9);
  }
}
