/* Explain: Styles for the cinematic image showcase slider section. */
/* ===== معرض الصور السينمائي: قسم مستقل أسفل بطاقات التصنيفات في الواجهة ===== */

.showcase-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.85rem;
    margin-bottom: 0.9rem;
    color: var(--gold-color);
}

.showcase-divider span {
    display: block;
    height: 1px;
    width: min(8rem, 26vw);
    background: linear-gradient(90deg, transparent, var(--gold-color));
}

.showcase-divider span:last-child {
    background: linear-gradient(90deg, var(--gold-color), transparent);
}

.showcase-divider i {
    font-size: 0.8rem;
    filter: drop-shadow(0 2px 4px rgba(201, 162, 39, 0.45));
}

.showcase-heading {
    margin-bottom: 1.15rem;
    text-align: center;
    font-size: clamp(1.05rem, 3vw, 1.4rem);
    font-weight: 800;
    letter-spacing: 0.01em;
    color: var(--primary-color);
}

.showcase-stage {
    position: relative;
    width: 100%;
    max-width: 900px;
    margin-inline: auto;
    padding: 0.55rem;
    border-radius: var(--radius-soft);
    border: 1px solid var(--gold-color);
    background:
        radial-gradient(circle at 50% 0%, rgba(201, 162, 39, 0.24), transparent 62%),
        linear-gradient(160deg, var(--royal-dark), var(--primary-color));
    box-shadow: var(--shadow-soft);
    overflow: hidden;
}

@media (min-width: 768px) {
    .showcase-stage {
        padding: 0.8rem;
    }
}

.showcase-frame {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    border-radius: calc(var(--radius-soft) - 0.45rem);
    background: rgba(255, 253, 248, 0.04);
}

@media (min-width: 640px) {
    .showcase-frame {
        aspect-ratio: 4 / 3;
    }
}

@media (min-width: 1024px) {
    .showcase-frame {
        aspect-ratio: 5 / 4;
    }
}

.showcase-slide {
    position: absolute;
    inset: 0;
    z-index: 1;
    margin: 0;
    display: flex;
    flex-direction: column;
    opacity: 0;
    pointer-events: none;
    transition: opacity 1000ms ease;
}

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

.showcase-media {
    flex: 1 1 auto;
    min-height: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.3rem 0.3rem 0;
}

.showcase-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transform: scale(1);
}

.showcase-slide.is-active .showcase-img {
    animation: showcase-zoom-in 7000ms cubic-bezier(0.3, 0.1, 0.4, 1) forwards;
}

.showcase-slide[data-index="1"].is-active .showcase-img,
.showcase-slide[data-index="3"].is-active .showcase-img {
    animation-name: showcase-zoom-out;
}

.showcase-stage.is-paused .showcase-img {
    animation-play-state: paused;
}

@keyframes showcase-zoom-in {
    from {
        transform: scale(1);
    }

    to {
        transform: scale(1.07);
    }
}

@keyframes showcase-zoom-out {
    from {
        transform: scale(1.07);
    }

    to {
        transform: scale(1);
    }
}

.showcase-caption {
    flex: 0 0 auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 0.1rem;
    min-height: 5.4rem;
    padding: 0.3rem 1rem 0.75rem;
    text-align: center;
    opacity: 0;
    transform: translateY(14px);
    transition: opacity 700ms ease 220ms, transform 700ms ease 220ms;
}

@media (min-width: 768px) {
    .showcase-caption {
        min-height: 5.9rem;
    }
}

.showcase-slide.is-active .showcase-caption {
    opacity: 1;
    transform: translateY(0);
}

.showcase-kicker {
    font-size: 0.66rem;
    font-weight: 800;
    letter-spacing: 0.16em;
    color: var(--accent-color);
}

.showcase-title {
    font-size: clamp(1rem, 3.2vw, 1.3rem);
    font-weight: 800;
    color: var(--pearl-color);
}

.showcase-text {
    font-size: clamp(0.75rem, 2.4vw, 0.88rem);
    line-height: 1.6;
    color: rgba(255, 253, 248, 0.78);
}

.showcase-sweep {
    position: absolute;
    inset: -10%;
    z-index: 6;
    pointer-events: none;
    opacity: 0;
    transform: translateX(-130%);
    background: linear-gradient(115deg, transparent 38%, rgba(227, 189, 87, 0.4) 50%, transparent 62%);
}

.showcase-stage.is-sweeping .showcase-sweep {
    animation: showcase-sweep 1500ms ease-in-out;
}

@keyframes showcase-sweep {
    0% {
        opacity: 0;
        transform: translateX(-130%);
    }

    20% {
        opacity: 1;
    }

    80% {
        opacity: 1;
    }

    100% {
        opacity: 0;
        transform: translateX(130%);
    }
}

.showcase-dots {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.25rem;
    padding-top: 0.4rem;
}

.showcase-dot {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 2.75rem;
    min-width: 2.75rem;
    border: 0;
    background: transparent;
    cursor: pointer;
}

.showcase-dot span {
    display: block;
    height: 0.34rem;
    width: 1.15rem;
    border-radius: var(--radius-oval);
    background: rgba(255, 253, 248, 0.42);
    transition: background-color 300ms ease, width 300ms ease;
}

.showcase-dot:hover span,
.showcase-dot:focus-visible span {
    background: rgba(255, 253, 248, 0.78);
}

.showcase-dot.is-active span {
    width: 2.2rem;
    background: linear-gradient(90deg, var(--accent-color), var(--gold-color));
}

@media (prefers-reduced-motion: reduce) {
    .showcase-slide,
    .showcase-caption,
    .showcase-dot span {
        transition: none;
    }

    .showcase-slide.is-active .showcase-img {
        animation: none;
    }

    .showcase-stage.is-sweeping .showcase-sweep {
        animation: none;
        opacity: 0;
    }
}

/* على شاشات الحاسوب فقط: يظهر المعرض السينمائي بحجم أصغر وأكثر توازناً مع عرض الشاشة، دون تكبير مبالغ فيه، مع الحفاظ على كامل الصورة ونسبة أبعادها. */
@media (min-width: 1024px) {
    .showcase-section {
        padding-block: clamp(1.8rem, 4vw, 2.6rem);
    }

    .showcase-divider {
        gap: 0.65rem;
        margin-bottom: 0.7rem;
    }

    .showcase-divider span {
        width: min(6rem, 16vw);
    }

    .showcase-divider i {
        font-size: 0.6rem;
    }

    .showcase-heading {
        margin-bottom: 0.85rem;
        font-size: 1.35rem;
    }

    .showcase-stage {
        max-width: 640px;
        padding: 0.6rem;
    }

    .showcase-frame {
        aspect-ratio: 5 / 4;
    }

    .showcase-caption {
        min-height: 5rem;
        padding: 0.25rem 0.9rem 0.6rem;
    }

    .showcase-kicker {
        font-size: 0.7rem;
    }

    .showcase-title {
        font-size: 1.2rem;
    }

    .showcase-text {
        font-size: 0.9rem;
        line-height: 1.6;
    }

    .showcase-dot span {
        height: 0.3rem;
        width: 1rem;
    }

    .showcase-dot.is-active span {
        width: 1.9rem;
    }
}