/* Custom CSS for Swiper Slider */

.swiper-container,
.swiper.swiper-container {
    width: 100%;
    margin: 20px auto;
}

.swiper.swiper-container .swiper-slide {
    min-height: 400px;
    text-align: center;
    font-size: 18px;
    background: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
}

.swiper.swiper-container .swiper-slide-content {
    padding: 20px;
}

.swiper.swiper-container .swiper-pagination-bullet {
    background-color: #0073aa;
}

.swiper.swiper-container .swiper-button-next,
.swiper.swiper-container .swiper-button-prev {
    color: #0073aa;
}

/* Full-width slider */
.slider-fullwidth {
    position: absolute !important;
    width: 100%;
    left: 0 !important;
    right: 0 !important;
    top: 0 !important;
    z-index: -1;
}

/* Placeholder sized to slider height */
.slider-placeholder {
    display: block;
    width: 100%;
}

/* Slide Content Typography */
.swiper-slide-content {
    position: absolute;
    bottom: 50px;
    left: 50px;
    max-width: 800px;
    z-index: 10;
}

/* Headers (h1, h2, h3) - Big Title Style */
.swiper-slide-content h1,
.swiper-slide-content h2,
.swiper-slide-content h3 {
    font-size: 48px;
    font-weight: 700;
    line-height: 1.2;
    margin: 0 0 20px 0;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.swiper-slide-content h1 {
    font-size: 56px;
}

.swiper-slide-content h3 {
    font-size: 40px;
}

/* Paragraphs and other text - Small Text Style */
.swiper-slide-content p,
.swiper-slide-content div:not(.swiper-slide-content) {
    font-size: 18px;
    font-weight: 400;
    line-height: 1.6;
    margin: 0 0 10px 0;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
}

/* Last element no margin */
.swiper-slide-content > *:last-child {
    margin-bottom: 0;
}

/* ════════════════════════════════════════
   슬라이드 애니메이션 시스템
   ════════════════════════════════════════ */

/* Keyframes - 다양한 애니메이션 효과 */
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeDown {
    from {
        opacity: 0;
        transform: translateY(-40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeLeft {
    from {
        opacity: 0;
        transform: translateX(40px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeRight {
    from {
        opacity: 0;
        transform: translateX(-40px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes zoomIn {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes zoomOut {
    from {
        opacity: 0;
        transform: scale(1.2);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Initial state - 모든 요소 숨김 */
.swiper-slide-content,
.swiper-slide .additional-image {
    opacity: 0;
}

/* 기본 애니메이션 (fade-up) */
.swiper-slide.fade-in-ready .swiper-slide-content,
.swiper-slide.fade-in-ready .additional-image {
    animation: fadeUp 0.8s ease-out forwards;
}

/* 애니메이션 효과별 클래스 */
.swiper-slide.fade-in-ready .fade-up {
    animation: fadeUp 0.8s ease-out forwards;
}

.swiper-slide.fade-in-ready .fade-down {
    animation: fadeDown 0.8s ease-out forwards;
}

.swiper-slide.fade-in-ready .fade-left {
    animation: fadeLeft 0.8s ease-out forwards;
}

.swiper-slide.fade-in-ready .fade-right {
    animation: fadeRight 0.8s ease-out forwards;
}

.swiper-slide.fade-in-ready .zoom-in {
    animation: zoomIn 0.8s ease-out forwards;
}

.swiper-slide.fade-in-ready .zoom-out {
    animation: zoomOut 0.8s ease-out forwards;
}

.swiper-slide.fade-in-ready .fade-only {
    animation: fadeIn 0.8s ease-out forwards;
}

/* 딜레이 클래스 - 순차적 애니메이션 */
.delay-0 { animation-delay: 0s !important; }
.delay-100 { animation-delay: 0.1s !important; }
.delay-200 { animation-delay: 0.2s !important; }
.delay-300 { animation-delay: 0.3s !important; }
.delay-400 { animation-delay: 0.4s !important; }
.delay-500 { animation-delay: 0.5s !important; }
.delay-600 { animation-delay: 0.6s !important; }
.delay-700 { animation-delay: 0.7s !important; }
.delay-800 { animation-delay: 0.8s !important; }
.delay-900 { animation-delay: 0.9s !important; }
.delay-1000 { animation-delay: 1s !important; }

/* 속도 클래스 */
.speed-fast { animation-duration: 0.4s !important; }
.speed-normal { animation-duration: 0.8s !important; }
.speed-slow { animation-duration: 1.2s !important; }

/* 기본 이미지별 딜레이 (하위 호환성) */
.swiper-slide.fade-in-ready .additional-image-1 {
    animation-delay: 0.1s;
}

.swiper-slide.fade-in-ready .additional-image-2 {
    animation-delay: 0.2s;
}

.swiper-slide.fade-in-ready .additional-image-3 {
    animation-delay: 0.3s;
}

.swiper-slide.fade-in-ready .swiper-slide-content {
    animation-delay: 0.2s;
}

/* Responsive */
@media (max-width: 768px) {
    .swiper-slide-content {
        bottom: 30px;
        left: 20px;
        right: 20px;
        max-width: 100%;
    }

    .swiper-slide-content h1 {
        font-size: 32px;
    }

    .swiper-slide-content h2 {
        font-size: 28px;
    }

    .swiper-slide-content h3 {
        font-size: 24px;
    }

    .swiper-slide-content p,
    .swiper-slide-content div:not(.swiper-slide-content) {
        font-size: 16px;
    }

    /* Faster animation on mobile */
    @keyframes fadeUp {
        from {
            opacity: 0;
            transform: translateY(30px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }

    .swiper-slide-active .swiper-slide-content,
    .swiper-slide-active .additional-image {
        animation-duration: 0.6s;
    }
}

