/*
 * This is a manifest file that'll be compiled into application.css.
 *
 * With Propshaft, assets are served efficiently without preprocessing steps. You can still include
 * application-wide styles in this file, but keep in mind that CSS precedence will follow the standard
 * cascading order, meaning styles declared later in the document or manifest will override earlier ones,
 * depending on specificity.
 *
 * Consider organizing styles into separate files for maintainability.
 */

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-4px); }
  50% { transform: translateX(4px); }
  75% { transform: translateX(-4px); }
}

.animate-shake {
  animation: shake 0.3s ease-in-out;
}

/* AI 이미지 생성 모달 (dialog) */
dialog.ai-modal::backdrop {
  background: rgba(0, 0, 0, 0.5);
}
dialog.ai-modal {
  background: transparent;
  border: none;
  padding: 0;
  max-width: 28rem;
  width: calc(100% - 2rem);
}

/* 스크롤 애니메이션 */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-10px); }
}

.js-ready .animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.js-ready .animate-on-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}

.animate-on-scroll.delay-100 { transition-delay: 0.1s; }
.animate-on-scroll.delay-200 { transition-delay: 0.2s; }
.animate-on-scroll.delay-300 { transition-delay: 0.3s; }
.animate-on-scroll.delay-400 { transition-delay: 0.4s; }

.animate-float {
  animation: float 3s ease-in-out infinite;
}

/* Floating CTA 바 */
.floating-cta {
  transform: translateY(100%);
  transition: transform 0.3s ease-out;
}
.floating-cta.visible {
  transform: translateY(0);
}

/* 메시 그라디언트 배경 */
.mesh-gradient {
  background:
    radial-gradient(ellipse at 20% 50%, rgba(120, 80, 255, 0.3) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 20%, rgba(100, 60, 255, 0.2) 0%, transparent 50%),
    radial-gradient(ellipse at 40% 80%, rgba(140, 100, 255, 0.25) 0%, transparent 50%),
    linear-gradient(135deg, #5b21b6 0%, #4338ca 50%, #3730a3 100%);
}

/* 그라디언트 텍스트 */
.gradient-text {
  background: linear-gradient(135deg, #c4b5fd 0%, #e9d5ff 50%, #f5d0fe 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* 글로우 효과 */
.glow-purple {
  box-shadow: 0 0 30px rgba(139, 92, 246, 0.3), 0 0 60px rgba(139, 92, 246, 0.1);
}
