/**
 * Starglow Before After Showcase - Public Styles
 * Brand Color: #1346AF
 * Font Family: 'Sequel Black Custom', Sans-serif !important
 */

/* Main Wrapper CSS */
.starglow-showcase-wrapper,
.ncats-showcase-wrapper {
    font-family: 'Sequel Black Custom', Sans-serif !important;
    margin: 40px auto;
    max-width: 1240px;
    padding: 0 24px;
    color: #0f172a;
    box-sizing: border-box;
}

.starglow-showcase-wrapper,
.starglow-showcase-wrapper *, 
.starglow-showcase-wrapper *::before, 
.starglow-showcase-wrapper *::after,
.ncats-showcase-wrapper,
.ncats-showcase-wrapper *, 
.ncats-showcase-wrapper *::before, 
.ncats-showcase-wrapper *::after {
    box-sizing: border-box;
    font-family: 'Sequel Black Custom', Sans-serif !important;
}

/* Category Filter Bar (Hidden) */
.starglow-filter-bar,
.ncats-filter-bar,
.starglow-filter-btn,
.ncats-filter-btn {
    display: none !important;
}

/* 3-Card Grid Slider Container */
.starglow-cards-container-wrapper,
.ncats-cards-container-wrapper {
    position: relative;
    width: 100%;
    padding: 0 2px;
}

/* Cards Grid / Slider Track */
.starglow-cards-grid,
.ncats-cards-grid {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    gap: 24px;
    padding: 10px 0 20px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none; /* Firefox */
    transition: opacity 0.3s ease;
}

.starglow-cards-grid::-webkit-scrollbar,
.ncats-cards-grid::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Edge */
}

/* Desktop: 3 Cards per view in grid */
.starglow-card,
.ncats-card {
    flex: 0 0 calc((100% - 48px) / 3);
    max-width: calc((100% - 48px) / 3);
    min-width: 0;
    scroll-snap-align: start;
    background-color: #1346AF;
    border-radius: 18px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 8px 24px rgba(19, 70, 175, 0.18);
    border: 1px solid rgba(19, 70, 175, 0.25);
    transition: transform 0.35s cubic-bezier(0.165, 0.84, 0.44, 1), box-shadow 0.35s cubic-bezier(0.165, 0.84, 0.44, 1);
    opacity: 1;
    transform: translateY(0);
    color: #ffffff;
    font-family: 'Sequel Black Custom', Sans-serif !important;
    box-sizing: border-box;
}

.starglow-card.filtered-out,
.ncats-card.filtered-out {
    display: none !important;
}

.starglow-card.filtering,
.ncats-card.filtering {
    opacity: 0;
    transform: scale(0.95);
}

.starglow-card:hover,
.ncats-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 36px rgba(19, 70, 175, 0.28);
}

/* Before/After Draggable Slider Container */
.starglow-slider-container,
.ncats-slider-container {
    position: relative;
    width: 100%;
    aspect-ratio: 4/4;
    overflow: hidden;
    user-select: none;
    background: #0b2f7d;
}

.starglow-image-pane,
.ncats-image-pane {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.starglow-image-pane img,
.ncats-image-pane img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    pointer-events: none;
}

/* BEFORE / AFTER Labels */
.starglow-pane-label,
.ncats-pane-label {
    position: absolute;
    top: 14px;
    background-color: #1346AF;
    color: #ffffff;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.08em;
    padding: 6px 14px;
    border-radius: 6px;
    z-index: 5;
    pointer-events: none;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.25);
    font-family: 'Sequel Black Custom', Sans-serif !important;
}

.starglow-pane-label-before,
.ncats-pane-label-before {
    left: 14px;
}

.starglow-pane-label-after,
.ncats-pane-label-after {
    right: 14px;
}

/* Draggable Split Divider */
.starglow-slider-divider,
.ncats-slider-divider {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 4px;
    background-color: rgba(255, 255, 255, 0.85);
    cursor: ew-resize;
    transform: translateX(-50%);
    z-index: 8;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.25);
}

.starglow-divider-line,
.ncats-divider-line {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 2px;
    background-color: #ffffff;
    transform: translateX(-50%);
}

.starglow-divider-handle,
.ncats-divider-handle {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 36px;
    height: 36px;
    background-color: #ffffff;
    border-radius: 50%;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #1346AF;
    transition: transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.starglow-slider-divider:hover .starglow-divider-handle,
.starglow-slider-divider:active .starglow-divider-handle,
.ncats-slider-divider:hover .ncats-divider-handle,
.ncats-slider-divider:active .ncats-divider-handle {
    transform: translate(-50%, -50%) scale(1.15);
}

/* Card Body Content (Only Paragraph) */
.starglow-card-body,
.ncats-card-body {
    padding: 20px 24px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    flex-grow: 1;
    background-color: #1346AF;
    color: #ffffff;
    font-family: 'Sequel Black Custom', Sans-serif !important;
}

.starglow-card-description,
.ncats-card-description {
    font-size: 15px;
    line-height: 1.65;
    color: #ffffff;
    margin: 0;
    font-family: 'Sequel Black Custom', Sans-serif !important;
}

.starglow-card-description p,
.ncats-card-description p {
    margin: 0;
    color: #ffffff;
    font-family: 'Sequel Black Custom', Sans-serif !important;
    font-size: 12px;
    line-height: 1.65;
}

/* Removed Card Elements */
.starglow-card-category,
.ncats-card-category,
.starglow-card-location,
.ncats-card-location {
    display: none !important;
}

/* Navigation Slider Arrows */
.starglow-carousel-arrow,
.ncats-carousel-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    top: 40%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background-color: #1346AF;
    color: #ffffff;
    border: 2px solid rgba(255, 255, 255, 0.4);
    cursor: pointer;
    z-index: 20;
    box-shadow: 0 4px 16px rgba(19, 70, 175, 0.4);
    opacity: 0.95;
    transition: opacity 0.2s, background-color 0.2s, transform 0.2s;
}

.starglow-carousel-arrow:hover,
.ncats-carousel-arrow:hover {
    opacity: 1;
    background-color: #0b2f7d;
    transform: translateY(-50%) scale(1.08);
}

.starglow-carousel-arrow:active,
.ncats-carousel-arrow:active {
    transform: translateY(-50%) scale(0.95);
}

.starglow-carousel-arrow-prev,
.ncats-carousel-arrow-prev {
    left: -20px;
}

.starglow-carousel-arrow-next,
.ncats-carousel-arrow-next {
    right: -20px;
}

.starglow-carousel-arrow.disabled,
.ncats-carousel-arrow.disabled {
    opacity: 0 !important;
    pointer-events: none;
}

/* Pagination Dots */
.starglow-carousel-dots,
.ncats-carousel-dots {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 20px;
    width: 100%;
}

.starglow-dot,
.ncats-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: rgba(19, 70, 175, 0.25);
    border: none;
    cursor: pointer;
    padding: 0;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.starglow-dot.active,
.ncats-dot.active {
    width: 24px;
    border-radius: 100px;
    background-color: #1346AF;
}

/* No Projects Notice */
.starglow-no-projects,
.ncats-no-projects {
    font-family: 'Sequel Black Custom', Sans-serif !important;
    text-align: center;
    color: #1346AF;
    font-size: 16px;
    padding: 30px;
}

/* Responsive Breakpoints */
@media (max-width: 1024px) {
    .starglow-cards-grid,
    .ncats-cards-grid {
        gap: 20px;
    }

    /* Tablet: 2 cards visible */
    .starglow-card,
    .ncats-card {
        flex: 0 0 calc((100% - 20px) / 2);
        max-width: calc((100% - 20px) / 2);
    }

    .starglow-carousel-arrow-prev,
    .ncats-carousel-arrow-prev {
        left: -12px;
    }

    .starglow-carousel-arrow-next,
    .ncats-carousel-arrow-next {
        right: -12px;
    }
}

@media (max-width: 640px) {
    .starglow-showcase-wrapper,
    .ncats-showcase-wrapper {
        padding: 0 16px;
    }

    .starglow-cards-grid,
    .ncats-cards-grid {
        gap: 16px;
        padding: 5px 0 15px;
    }

    /* Mobile: 1 card visible */
    .starglow-card,
    .ncats-card {
        flex: 0 0 100%;
        max-width: 100%;
        scroll-snap-align: center;
    }

    .starglow-carousel-arrow-prev,
    .ncats-carousel-arrow-prev {
        left: -6px;
    }

    .starglow-carousel-arrow-next,
    .ncats-carousel-arrow-next {
        right: -6px;
    }
}
