/**
 * Gallery Carousel Styles - Dual Image Layout
 */

/* Main container for dual gallery */
.gallery-dual-container {
  position: relative;
  width: 100%;
}

/* Individual image wrapper - no hover effects */
.gallery-item-wrapper {
  position: relative;
  display: block;
  overflow: hidden;
  cursor: default;
}

.gallery-item-wrapper img {
  transition: opacity 0.3s ease-in-out;
  width: 100%;
  height: auto;
  display: block;
}

/* Prompt overlay on top of each image */
.gallery-prompt-overlay {
  position: absolute;
  top: 10px;
  left: 10px;
  right: 10px;
  z-index: 5;
  pointer-events: none;
}

.gallery-prompt-text {
  color: #ffffff;
  font-size: 0.85rem;
  margin: 0;
  padding: 8px 12px;
  background: rgba(0, 0, 0, 0.4);
  border-radius: 6px;
  backdrop-filter: blur(3px);
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
  line-height: 1.4;
  word-wrap: break-word;
}

/* AI Editor button - overlays in center between images */
.gallery-ai-editor-overlay {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 20;
  pointer-events: none;
}

.gallery-ai-editor-button {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  background: transparent;
  padding: 20px 45px;
  border-radius: 10px;
  backdrop-filter: blur(0px);
  transition: all 0.3s ease;
  box-shadow: none;
  pointer-events: all;
  position: relative;
  text-align: center;
}

.gallery-ai-editor-button:hover {
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(8px);
  text-decoration: none;
  transform: scale(1.08);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.5);
}

.gallery-ai-editor-button h4 {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-shadow: none;
  margin: 0;
  font-weight: bold;
  font-size: 1.4rem;
}

.gallery-ai-editor-button .fa-magic {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  transition: transform 0.3s ease;
  display: block;
  margin-bottom: 8px;
}

/* Fireworks animation on hover */
.gallery-ai-editor-button:hover .fa-magic {
  animation: sparkle 0.6s ease-in-out infinite;
}

.gallery-ai-editor-button::before,
.gallery-ai-editor-button::after {
  content: '';
  position: absolute;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  opacity: 0;
  pointer-events: none;
  top: 30%;
  left: 50%;
}

.gallery-ai-editor-button:hover::before {
  animation: firework1 0.8s ease-out infinite;
  background: #667eea;
  box-shadow:
    20px -20px 0 #764ba2,
    -20px -20px 0 #667eea,
    20px 20px 0 #764ba2,
    -20px 20px 0 #667eea,
    0 -30px 0 #764ba2,
    0 30px 0 #667eea,
    30px 0 0 #764ba2,
    -30px 0 0 #667eea;
}

.gallery-ai-editor-button:hover::after {
  animation: firework2 0.8s ease-out 0.2s infinite;
  background: #764ba2;
  box-shadow:
    15px -25px 0 #667eea,
    -15px -25px 0 #764ba2,
    25px 15px 0 #667eea,
    -25px 15px 0 #764ba2,
    10px 25px 0 #667eea,
    -10px 25px 0 #764ba2;
}

@keyframes sparkle {
  0%, 100% { transform: rotate(0deg) scale(1); }
  25% { transform: rotate(-10deg) scale(1.1); }
  50% { transform: rotate(10deg) scale(1.2); }
  75% { transform: rotate(-5deg) scale(1.1); }
}

@keyframes firework1 {
  0% { transform: scale(0); opacity: 1; }
  50% { opacity: 1; }
  100% { transform: scale(1.5); opacity: 0; }
}

@keyframes firework2 {
  0% { transform: scale(0); opacity: 1; }
  50% { opacity: 1; }
  100% { transform: scale(1.3); opacity: 0; }
}

/* Navigation arrows - overlay on left and right of images */
.gallery-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: transparent;
  color: #9e9e9e;
  border: none;
  font-size: 2rem;
  padding: 15px 20px;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  border-radius: 6px;
  z-index: 15;
  backdrop-filter: blur(0px);
  box-shadow: none;
}

.gallery-nav:hover {
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(5px);
  color: white;
  text-decoration: none;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

.gallery-nav-left {
  left: 10px;
}

.gallery-nav-left:hover {
  transform: translateY(-50%) translateX(-3px);
}

.gallery-nav-right {
  right: 10px;
}

.gallery-nav-right:hover {
  transform: translateY(-50%) translateX(3px);
}

.gallery-nav:active {
  transform: translateY(-50%) scale(0.95);
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .gallery-prompt-text {
    font-size: 0.75rem;
    padding: 6px 10px;
  }

  .gallery-ai-editor-button {
    padding: 15px 35px;
  }

  .gallery-ai-editor-button h4 {
    font-size: 1.2rem;
  }

  .gallery-ai-editor-button .fa-magic {
    font-size: 2rem;
  }

  .gallery-nav {
    font-size: 1.6rem;
    padding: 12px 16px;
  }

  .gallery-nav-left {
    left: 5px;
  }

  .gallery-nav-right {
    right: 5px;
  }
}

@media (max-width: 480px) {
  .gallery-prompt-text {
    font-size: 0.65rem;
    padding: 5px 8px;
  }

  .gallery-ai-editor-button {
    padding: 12px 25px;
  }

  .gallery-ai-editor-button h4 {
    font-size: 1rem;
  }

  .gallery-ai-editor-button .fa-magic {
    font-size: 1.5rem;
  }

  .gallery-nav {
    font-size: 1.3rem;
    padding: 10px 12px;
  }

  .gallery-nav-left {
    left: 3px;
  }

  .gallery-nav-right {
    right: 3px;
  }
}

/* Accessibility - focus states */
.gallery-nav:focus {
  outline: 2px solid #667eea;
  outline-offset: 2px;
}

.gallery-ai-editor-button:focus {
  outline: 2px solid #667eea;
  outline-offset: 2px;
}
