/**
 * Japan Awaits — Image Slider Block Styles
 */

.ja-image-slider-section {
    position: relative;
    width: 100%;
    box-sizing: border-box;
}

.ja-image-slider-container {
    position: relative;
    width: 100%;
    overflow: hidden;
    background-color: #0f172a;
    user-select: none;
    -webkit-user-select: none;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12);
}

.ja-image-slider-track {
    display: flex;
    width: 100%;
    height: 100%;
    transition: transform 0.45s cubic-bezier(0.25, 1, 0.5, 1);
    will-change: transform;
}

.ja-image-slider-slide {
    min-width: 100%;
    width: 100%;
    height: 100%;
    position: relative;
    flex-shrink: 0;
    overflow: hidden;
}

.ja-image-slider-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    transition: transform 0.6s ease;
}

.ja-image-slider-slide:hover .ja-image-slider-img {
    transform: scale(1.02);
}

/* Gradient Overlay at bottom for better caption readability */
.ja-image-slider-overlay {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0) 50%, rgba(0, 0, 0, 0.55) 100%);
}

/* Caption Pill (Bottom-Left) */
.ja-image-slider-caption {
    position: absolute;
    bottom: 20px;
    left: 20px;
    z-index: 5;
    background: rgba(15, 23, 42, 0.75);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    padding: 6px 14px;
    border-radius: 6px;
    color: #ffffff;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    line-height: 1.4;
    max-width: 70%;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

/* Nav Arrows (Left / Right) */
.ja-image-slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(15, 23, 42, 0.5);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    outline: none;
    padding: 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.ja-image-slider-arrow:hover {
    background: rgba(15, 23, 42, 0.85);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-50%) scale(1.08);
}

.ja-image-slider-arrow:active {
    transform: translateY(-50%) scale(0.95);
}

.ja-image-slider-prev {
    left: 16px;
}

.ja-image-slider-next {
    right: 16px;
}

.ja-image-slider-arrow svg {
    width: 18px;
    height: 18px;
    stroke: currentColor;
    stroke-width: 2.5;
    fill: none;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* Dots Pagination (Bottom-Center) */
.ja-image-slider-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    display: flex;
    gap: 8px;
    align-items: center;
    padding: 6px 12px;
    border-radius: 20px;
    background: rgba(0, 0, 0, 0.25);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.ja-image-slider-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.45);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
    padding: 0;
}

.ja-image-slider-dot:hover {
    background: rgba(255, 255, 255, 0.8);
}

.ja-image-slider-dot.is-active {
    width: 24px;
    border-radius: 4px;
    background: #ffffff;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

/* Empty State / Placeholder in Editor */
.ja-image-slider-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    min-height: 260px;
    background: #f1f5f9;
    border: 2px dashed #cbd5e1;
    border-radius: inherit;
    color: #64748b;
    gap: 12px;
    padding: 24px;
    text-align: center;
}

@media (max-width: 640px) {
    .ja-image-slider-arrow {
        width: 34px;
        height: 34px;
    }
    .ja-image-slider-arrow svg {
        width: 16px;
        height: 16px;
    }
    .ja-image-slider-prev { left: 10px; }
    .ja-image-slider-next { right: 10px; }
    .ja-image-slider-caption {
        font-size: 10px;
        padding: 4px 10px;
        bottom: 14px;
        left: 14px;
    }
    .ja-image-slider-dots {
        bottom: 14px;
    }
}
