/* ── Frontend Slideshow Widget ── */
#als-slideshow-widget {
    position: relative;
    width: 100%;
    overflow: hidden;
    background: #0a1628;
    border-radius: 8px;
    border: 2px solid #cccccc;
    user-select: none;
}

.als-slideshow-title {
    text-align: center;
    padding: 12px;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 2px;
    color: #ffffff;
    background: #0a1628;
}

#als-slides-container {
    position: relative;
    width: 100%;
    padding-top: 125%; /* 4:5 oranı */
    overflow: hidden;
}

.als-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 0.7s ease;
    pointer-events: none;
}
.als-slide.active {
    opacity: 1;
    pointer-events: auto;
    z-index: 2;
}
.als-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Loader dots */
.als-loader {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: #0a1628;
    z-index: 10;
    transition: opacity 0.4s;
}
.als-loader span {
    width: 10px; height: 10px;
    border-radius: 50%;
    background: #3b82f6;
    animation: als-bounce 1.2s infinite ease-in-out;
}
.als-loader span:nth-child(2) { animation-delay: 0.2s; }
.als-loader span:nth-child(3) { animation-delay: 0.4s; }
@keyframes als-bounce {
    0%, 80%, 100% { transform: scale(0.6); opacity: .4; }
    40%            { transform: scale(1);   opacity: 1;  }
}

/* Controls */
#als-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 8px 12px;
    background: rgba(0,0,0,0.4);
}
#als-prev, #als-next {
    background: none;
    border: none;
    color: #fff;
    font-size: 18px;
    cursor: pointer;
    padding: 4px 10px;
    border-radius: 4px;
    transition: background 0.2s;
    line-height: 1;
}
#als-prev:hover, #als-next:hover { background: rgba(255,255,255,0.15); }

#als-dots { display: flex; gap: 6px; flex-wrap: wrap; justify-content: center; max-width: 200px; }
.als-dot {
    width: 8px; height: 8px;
    border-radius: 50%;
    background: rgba(255,255,255,0.35);
    cursor: pointer;
    transition: background 0.3s, transform 0.3s;
    border: none;
    padding: 0;
}
.als-dot.active {
    background: #3b82f6;
    transform: scale(1.3);
}

/* Image placeholder blur-up effect */
.als-slide img.als-loading {
    filter: blur(8px);
    transition: filter 0.4s;
}
.als-slide img.als-loaded {
    filter: none;
}
