/**
 * BSMC Video Carousel — Component Styles
 * Follows the same conventions as members-carousel.css
 */

/* ── Section wrapper ───────────────────────────────────────────────────── */
.bsmc-video-carousel {
    width: 100%;
    background: #0e0e0e;
    border-radius: 20px;
	margin: 20px;
	padding: 36px 40px;
    box-sizing: border-box;
}

/* ── Header ────────────────────────────────────────────────────────────── */
.bsmc-video-carousel__header {
    padding: 0 4px 28px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.bsmc-video-carousel__headline {
    font-family: 'Bebas Neue', sans-serif;
    font-size: clamp(28px, 4vw, 42px);
    line-height: 1;
    color: #edeadf;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin: 0;
}

.bsmc-video-carousel__subheading {
    font-family: 'Proxima Nova', sans-serif;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #C8A96E;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding-bottom: 4px;
    border-bottom: 1.5px solid #C8A96E;
    width: fit-content;
    transition: opacity 0.2s;
}

a.bsmc-video-carousel__subheading:hover {
    opacity: 0.75;
}

/* Subrow: subheading on the left, "view more" link floated right, vertically aligned */
.bsmc-video-carousel__subrow {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

.bsmc-video-carousel__more {
    margin-left: auto;
    font-family: 'Proxima Nova', sans-serif;
    font-size: 13px;
    font-weight: 700;
    color: #C8A96E;
    text-decoration: none;
    transition: opacity 0.2s;
}

.bsmc-video-carousel__more:hover {
    opacity: 0.75;
}

/* ── Outer wrapper (clips overflow) ───────────────────────────────────── */
.bsmc-video-carousel__outer {
    position: relative;
    overflow: hidden;
}

/* ── Track ─────────────────────────────────────────────────────────────── */
.bsmc-video-carousel__track {
    display: flex;
    flex-wrap: nowrap;
    gap: 16px;
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    will-change: transform;
    cursor: grab;
    user-select: none;
    align-items: flex-start;
    min-width: 0;
}

.bsmc-video-carousel__track.is-dragging {
    cursor: grabbing;
    transition: none;
}

/* ── Video card ───────────────────────────────────────────────────────── */
.bsmc-video-card {
    flex: 0 0 calc(25% - 12px); /* 4 visible */
    display: flex;
    flex-direction: column;
    gap: 14px;
    text-decoration: none;
    cursor: pointer;
    min-width: 0;
    overflow: hidden;
}

/* ── Image wrapper ─────────────────────────────────────────────────────── */
.bsmc-video-card__img-wrap {
    position: relative;
    border-radius: 14px;
    overflow: hidden;
    aspect-ratio: 16 / 9;
    background: #1a1a1a;
}

.bsmc-video-card__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    pointer-events: none;
}

.bsmc-video-card:hover .bsmc-video-card__img {
    transform: scale(1.05);
}

/* ── Play icon ─────────────────────────────────────────────────────────── */
.bsmc-video-card__play {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 2;
}

.bsmc-video-card:hover .bsmc-video-card__play {
    opacity: 1;
}

.bsmc-video-card__play svg {
    width: 36px;
    height: 36px;
    color: #edeadf;
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.5));
}

/* ── Duration badge ────────────────────────────────────────────────────── */
.bsmc-video-card__duration {
    position: absolute;
    bottom: 10px;
    right: 10px;
    font-family: 'Proxima Nova', sans-serif;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.06em;
    color: #edeadf;
    background: rgba(0, 0, 0, 0.7);
    padding: 4px 8px;
    border-radius: 4px;
    z-index: 2;
}

/* ── Badge ─────────────────────────────────────────────────────────────── */
.bsmc-video-card__badge {
    position: absolute;
    top: 10px;
    left: 10px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: #edeadf;
    border: none;
    color: #0e0e0e;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 9px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 5px 10px;
    border-radius: 100px;
    max-width: calc(100% - 20px);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    z-index: 2;
}

/* ── Info ──────────────────────────────────────────────────────────────── */
.bsmc-video-card__info {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 0 2px;
    min-width: 0;
    overflow: hidden;
}

.bsmc-video-card__title {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 18px;
    line-height: 1.1;
    color: #edeadf;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    margin: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.bsmc-video-card__subtitle {
    font-family: 'Montserrat', 'Proxima Nova', sans-serif;
    font-size: 12px;
    line-height: 1.4;
    color: rgba(237,234,223,0.6);
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ── Arrow buttons ─────────────────────────────────────────────────────── */
.bsmc-vc-arrow {
    display: none; /* shown via JS once carousel needs it */
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1.5px solid rgba(237,234,223,0.25);
    background: rgba(0,0,0,0.55);
    color: #edeadf;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 3;
    transition: background 0.2s, border-color 0.2s;
    backdrop-filter: blur(4px);
}

.bsmc-vc-arrow.is-visible {
    display: flex;
}

.bsmc-vc-arrow:hover {
    background: #edeadf;
    border-color: #edeadf;
}

.bsmc-vc-arrow:disabled {
    opacity: 0.3;
    cursor: default;
}

.bsmc-vc-arrow svg {
    display: none;
}

.bsmc-vc-arrow--prev::after {
    content: '\2039';
    font-size: 24px;
    line-height: 1;
    color: #edeadf;
    font-family: Arial, sans-serif;
    font-weight: bold;
}

.bsmc-vc-arrow--next::after {
    content: '\203A';
    font-size: 24px;
    line-height: 1;
    color: #edeadf;
    font-family: Arial, sans-serif;
    font-weight: bold;
}

.bsmc-vc-arrow:hover::after {
    color: #1a1208;
}

.bsmc-vc-arrow--prev { left: 8px; }
.bsmc-vc-arrow--next { right: 8px; }

/* ── Dots ──────────────────────────────────────────────────────────────── */
.bsmc-vc-dots {
    display: flex;
    justify-content: center;
    gap: 6px;
    margin-top: 20px;
}

.bsmc-vc-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: rgba(237,234,223,0.2);
    border: none;
    padding: 0;
    cursor: pointer;
    transition: background 0.2s, transform 0.2s;
}

.bsmc-vc-dot.is-active {
    background: #edeadf;
    transform: scale(1.3);
}

/* ── Responsive ────────────────────────────────────────────────────────── */
@media ( max-width: 768px ) {
    .bsmc-video-carousel {
        width: auto;
        margin-left: 8px;
        margin-right: 8px;
    }
}

@media ( max-width: 900px ) {
    .bsmc-video-card {
        flex: 0 0 calc(50% - 8px); /* 2 visible on tablet */
    }
}

@media ( max-width: 600px ) {
    .bsmc-video-carousel {
        padding: 24px 16px;
        border-radius: 16px;
    }

    .bsmc-video-card {
        flex: 0 0 calc(50% - 8px); /* 2 visible on mobile/tablet */
    }

    .bsmc-video-card__img-wrap {
        border-radius: 10px;
    }
}

/* ── Comment count link below carousel card ──────────────────────────── */
.bsmc-video-card__comment-link {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: rgba(237, 234, 223, 0.5);
    text-decoration: none;
    font-family: 'Proxima Nova', sans-serif;
    font-size: 12px;
    margin-top: 6px;
    transition: color 0.2s;
}

.bsmc-video-card__comment-link:hover {
    color: #C8A96E;
}

.bsmc-video-card__comment-link svg {
    flex-shrink: 0;
}
