/* WP Signature Video Carousel - Frontend Styles */

.signature-collections {
    position: relative;
    background: transparent !important; /* Force transparent background */
    padding: 60px 0 50px;
    overflow: hidden;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    color: var(--sc-text, #000000);
    
    /* Force full-width viewport breakout on any theme container */
    width: 100vw !important;
    max-width: 100vw !important;
    margin-left: calc(50% - 50vw) !important;
    margin-right: calc(50% - 50vw) !important;
}

.sc-bg-overlay {
    position: absolute;
    inset: 0;
    background: transparent;
    pointer-events: none;
    z-index: 1;
    display: none;
}

/* Header */
.sc-header {
    text-align: center;
    margin-bottom: 30px;
    position: relative;
    z-index: 2;
}

.sc-title {
    font-size: clamp(22px, 4vw, 36px);
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--sc-text, #ffffff);
    margin: 0 0 8px !important;
    line-height: 1.2;
}

.sc-subtitle {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.5);
    letter-spacing: 1px;
    margin: 0 !important;
}

/* Filter Tabs */
.sc-filter-tabs {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 40px;
    padding: 0 20px;
    position: relative;
    z-index: 5;
}

.sc-tab {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: rgba(255, 255, 255, 0.6);
    padding: 8px 22px;
    border-radius: 30px;
    font-size: 13px;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: capitalize;
    outline: none;
}

.sc-tab:hover {
    border-color: var(--sc-accent, #ffffff);
    color: var(--sc-accent, #ffffff);
}

.sc-tab.active {
    background: var(--sc-accent, #ffffff);
    border-color: var(--sc-accent, #ffffff);
    color: #000000;
    font-weight: 600;
}

/* Carousel Wrapper */
.sc-carousel-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px 0;
    min-height: 520px;
    z-index: 3;
}

.sc-nav {
    position: absolute;
    z-index: 10;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: #0e3690;
    border: 1px solid rgba(0,0,0,0.05);
    color: #ffffff;
    font-size: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(14, 54, 144, 0.25);
    outline: none;
    line-height: 1;
}

.sc-nav:hover {
    transform: scale(1.1);
    background: #0a2b75;
    color: #ffffff;
    box-shadow: 0 6px 20px rgba(14, 54, 144, 0.35);
}

.sc-nav:active,
.sc-nav:focus {
    background: #0a2b75 !important;
    color: #ffffff !important;
    outline: none !important;
    box-shadow: 0 4px 15px rgba(14, 54, 144, 0.25) !important;
}

.sc-prev { left: clamp(20px, calc(50% - 600px), 40%) !important; }
.sc-next { right: clamp(20px, calc(50% - 600px), 40%) !important; }

/* Carousel Slider Base */
.sc-carousel {
    position: relative;
    width: 100%;
    height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    perspective: 1000px;
    overflow: visible;
}

/* Cards layout */
.sc-card {
    position: absolute;
    width: 310px;
    height: 450px;
    border-radius: 16px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.55s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    transform-origin: center center;
    will-change: transform, opacity;
}

.sc-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    background: var(--sc-card-bg, #ffffff);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--sc-card-shadow, 0 20px 60px rgba(0,0,0,0.5));
}

.sc-card-media-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
}

.sc-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.sc-card:hover .sc-card-img {
    transform: scale(1.04);
}

.sc-card-placeholder {
    width: 100%;
    height: 100%;
    background: #e8e8e8;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sc-placeholder-svg {
    width: 80px;
    height: 80px;
    fill: #ccc;
}

/* Play Icon Overlay */
.sc-play-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 56px;
    height: 56px;
    background: rgba(0,0,0,0.55);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(4px);
    border: 2px solid rgba(255,255,255,0.5);
    transition: all 0.3s;
    z-index: 5;
    pointer-events: none; /* Let click go through to the card */
}

.sc-play-icon svg {
    width: 24px;
    height: 24px;
    margin-left: 3px;
}

.sc-card:not(.sc-active) .sc-play-icon {
    opacity: 0;
    visibility: hidden;
}

.sc-card.sc-active:hover .sc-play-icon {
    transform: translate(-50%, -50%) scale(1.1);
    background: rgba(0,0,0,0.7);
    border-color: #ffffff;
}

/* Active Video state styles */
.sc-card-video-container {
    position: absolute;
    inset: 0;
    background: #000000;
    z-index: 4;
}

.sc-card-video-container video,
.sc-card-video-container iframe {
    width: 100%;
    height: 100%;
    border: none;
    object-fit: cover;
    display: block;
}

/* Close Video Button */
.sc-video-close-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    z-index: 6;
    width: 32px;
    height: 32px;
    background: rgba(0, 0, 0, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 50%;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    cursor: pointer;
    transition: background 0.2s, transform 0.2s;
}

.sc-video-close-btn:hover {
    background: rgba(0, 0, 0, 0.85);
    transform: scale(1.1);
}

/* Card Label */
.sc-card-label {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 20px 16px;
    background: #ffffff;
    color: #000000;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-align: center;
    z-index: 5;
    transition: opacity 0.3s ease;
    border-top: 1px solid #f0f0f0;
}

/* Hide card elements when video is playing */
.sc-video-playing .sc-card-label,
.sc-video-playing .sc-play-icon {
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none;
}

.sc-card-link {
    position: absolute;
    inset: 0;
    z-index: 5;
}

/* 3D position class selectors configured via JS */
.sc-card[data-pos="0"] {
    transform: translateX(0) scale(1) rotateY(0deg);
    z-index: 5;
    opacity: 1;
}

/* Dots Nav styling */
.sc-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 28px;
    position: relative;
    z-index: 5;
}

.sc-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.2);
    cursor: pointer;
    transition: all 0.3s;
    display: inline-block;
}

.sc-dot.active {
    background: var(--sc-accent, #000000);
    width: 24px;
    border-radius: 4px;
}

/* Hidden elements (when category filtering is active) */
.sc-card.sc-hidden {
    display: none !important;
}

@media (max-width: 768px) {
    .sc-carousel-wrapper {
        min-height: 400px;
    }
    .sc-carousel {
        height: 380px;
    }
    .sc-card {
        width: 230px;
        height: 340px;
    }
    .sc-prev { left: 10px; }
    .sc-next { right: 10px; }
    .sc-title {
        font-size: 24px;
    }
    .sc-card-label {
        padding: 15px 12px;
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .sc-carousel-wrapper {
        min-height: 310px;
        padding: 10px 0;
    }
    .sc-carousel {
        height: 290px;
    }
    .sc-card {
        width: 170px;
        height: 250px;
    }
    .sc-dots {
        margin-top: 15px;
    }
    /* Reposition arrow size slightly smaller for compact mobile viewports */
    .sc-nav {
        width: 36px;
        height: 36px;
        font-size: 14px;
    }
    .sc-prev { left: 6px; }
    .sc-next { right: 6px; }
}
