/* ===================================
   BPC Smart Slider - Styles
   =================================== */

.bpc-ss-slider {
    position: relative;
    width: 100%;
    overflow: hidden;
    background: #111;
    font-family: inherit;
    line-height: 1;
    -webkit-user-select: none;
    user-select: none;
}

.bpc-ss-track {
    position: relative;
    width: 100%;
    height: 500px;
}

/* ---- Slides ---- */
/* Animation handled via JS inline transforms; CSS sets base state only */
.bpc-ss-slide {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0;
    pointer-events: none;
    z-index: 1;
    will-change: transform, opacity;
}

.bpc-ss-slide.bpc-ss-active {
    opacity: 1;
    pointer-events: auto;
    z-index: 2;
}

.bpc-ss-transition-fade .bpc-ss-slide {
    transition: opacity 0.7s ease;
}

/* ---- Overlay ---- */
.bpc-ss-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
}

/* ---- Content layer ---- */
.bpc-ss-content {
    position: absolute;
    inset: 0;
    z-index: 3;
    display: flex;
    padding: 24px 32px;
    box-sizing: border-box;
}

.bpc-ss-text-box {
    max-width: 640px;
    word-break: break-word;
    border-radius: 4px;
}

.bpc-ss-title {
    margin: 0 0 0.3em;
    padding: 0;
    line-height: 1.15;
    letter-spacing: -0.01em;
}

.bpc-ss-text {
    margin: 0 0 0.6em;
    padding: 0;
    line-height: 1.5;
}

.bpc-ss-btn {
    display: inline-block;
    margin-top: 8px;
    padding: 10px 24px;
    border-radius: 3px;
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    border: 2px solid rgba(255,255,255,0.6);
    transition: background 0.2s, border-color 0.2s;
}
.bpc-ss-btn:hover {
    border-color: #fff;
    background: rgba(255,255,255,0.3) !important;
}

/* ---- Arrows ---- */
.bpc-ss-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    background: rgba(0,0,0,0.55);
    border: 2px solid rgba(255,255,255,0.4);
    border-radius: 50%;
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s, border-color 0.2s, transform 0.15s;
    padding: 0;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}
.bpc-ss-arrow:hover {
    background: rgba(0,0,0,0.8);
    border-color: rgba(255,255,255,0.8);
    transform: translateY(-50%) scale(1.08);
}
.bpc-ss-arrow svg {
    width: 28px;
    height: 28px;
    stroke: #fff;
    stroke-width: 3;
    fill: none;
    stroke-linecap: round;
    stroke-linejoin: round;
}
.bpc-ss-prev { left: 20px; }
.bpc-ss-next { right: 20px; }

/* ---- Dots ---- */
.bpc-ss-dots {
    position: absolute;
    bottom: 14px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    display: flex;
    gap: 8px;
    align-items: center;
}
.bpc-ss-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255,255,255,0.5);
    border: none;
    cursor: pointer;
    padding: 0;
    transition: background 0.2s, transform 0.2s;
}
.bpc-ss-dot:hover { background: rgba(255,255,255,0.8); }
.bpc-ss-dot-active {
    background: #fff;
    transform: scale(1.3);
}

/* ---- Empty notice ---- */
.bpc-ss-no-slides {
    padding: 24px;
    background: #f5f5f5;
    border: 2px dashed #ccc;
    color: #666;
    text-align: center;
    border-radius: 4px;
}

/* ============================
   Responsive
   ============================ */
@media (max-width: 1024px) {
    .bpc-ss-content { padding: 18px 20px; }
    .bpc-ss-arrow { width: 46px; height: 46px; }
    .bpc-ss-arrow svg { width: 22px; height: 22px; }
}

@media (max-width: 600px) {
    .bpc-ss-content { padding: 12px 14px; }
    .bpc-ss-text-box { max-width: 100%; }
    .bpc-ss-arrow { width: 38px; height: 38px; border-width: 1.5px; }
    .bpc-ss-arrow svg { width: 18px; height: 18px; stroke-width: 2.5; }
    .bpc-ss-prev { left: 8px; }
    .bpc-ss-next { right: 8px; }
    .bpc-ss-dots { bottom: 8px; }
    .bpc-ss-dot { width: 8px; height: 8px; }
}

/* ============================
   Full Width / Wide alignment
   ============================ */
.wp-block-bpc-smart-slider-slider.alignfull,
.wp-block-bpc-smart-slider-slider.alignwide {
    width: 100vw;
    max-width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
}
.wp-block-bpc-smart-slider-slider.alignwide {
    width: calc(100vw - 60px);
    max-width: 1600px;
    margin-left: auto;
    margin-right: auto;
}
.ast-page-builder-template .wp-block-bpc-smart-slider-slider.alignfull,
.ast-full-width-layout .wp-block-bpc-smart-slider-slider.alignfull {
    margin-left: 0;
    margin-right: 0;
    width: 100%;
    max-width: 100%;
}
.alignfull .bpc-ss-slider,
.alignwide .bpc-ss-slider {
    width: 100%;
}

/* ============================
   Gutenberg editor preview
   ============================ */
.wp-block-bpc-smart-slider-slider .bpc-ss-slider {
    border: 1px solid #e0e0e0;
    border-radius: 4px;
}
