/*
 * filament-carousel — public component styles.
 *
 * Self-contained plain CSS so the <x-filament-carousel::carousel> Blade
 * component looks correct on ANY host site WITHOUT relying on the host's
 * Tailwind build to compile package utility classes. Loaded by the component
 * via @once after swiper.css so these rules win on equal specificity.
 */

/* ── Navigation arrows ──────────────────────────────────────────────────── */
.fc-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 20;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 2.75rem;
    width: 2.75rem;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 9999px;
    cursor: pointer;
    color: #fff;
    background: rgba(15, 23, 42, 0.55);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
    transition: background-color 0.2s ease, opacity 0.25s ease, transform 0.15s ease;
}

.fc-arrow:hover {
    background: rgba(15, 23, 42, 0.8);
}

.fc-arrow:active {
    transform: translateY(-50%) scale(0.94);
}

.fc-arrow:focus-visible {
    outline: 2px solid #fff;
    outline-offset: 2px;
}

.fc-arrow svg {
    height: 1.25rem;
    width: 1.25rem;
}

.fc-arrow-prev {
    inset-inline-start: 0.75rem;
}

.fc-arrow-next {
    inset-inline-end: 0.75rem;
}

/* Mirror the chevron in RTL layouts. */
[dir="rtl"] .fc-arrow svg {
    transform: scaleX(-1);
}

/* Kill Swiper's default ::after glyph; our inline SVG is the only icon. */
.fc-arrow::after {
    content: none !important;
}

/* navigation-on-hover: arrows fade in only when the carousel is hovered
   or contains keyboard focus. */
.swiper.fc-nav-hover .fc-arrow {
    opacity: 0;
}
.swiper.fc-nav-hover:hover .fc-arrow,
.swiper.fc-nav-hover:focus-within .fc-arrow {
    opacity: 1;
}

/* ── Pagination bullets ─────────────────────────────────────────────────── */
.swiper-pagination-bullet {
    background: rgba(255, 255, 255, 0.6);
    opacity: 1;
    transition: width 0.2s ease, background-color 0.2s ease;
}

.swiper-pagination-bullet-active {
    background: #fff;
    width: 1.5rem;
    border-radius: 9999px;
}

@media (prefers-reduced-motion: reduce) {
    .fc-arrow {
        transition: none;
    }
}
