/* ============================================================
   ZAIR WIDGETS  –  zair-widgets.css  v1.0.4
   ============================================================ */

.zair-card,
.zair-carousel-wrap,
.zair-carousel-card {
    box-sizing: border-box;
    font-family: inherit;
}

/* ══════════════════════════════════════════════════════════
   SHARED – Video Area
══════════════════════════════════════════════════════════ */
.zair-video-area { position: relative; }

.zair-video-wrapper {
    position: relative;
    width: 100%;
    padding-bottom: 133%;
    overflow: hidden;
    background: #0a0a0a;
}

.zair-video-slot {
    position: absolute;
    inset: 0;
    display: none;
    opacity: 0;
    transition: opacity 0.35s ease;
}
.zair-video-slot.active { display: block; opacity: 1; }

.zair-video-slot video,
.zair-video-slot iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border: none;
}

.zair-no-video {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #555;
    font-size: 13px;
    background: repeating-linear-gradient(45deg,#111 0,#111 10px,#161616 10px,#161616 20px);
}

/* ══════════════════════════════════════════════════════════
   PLAY BUTTON  — #FF000A bg, white icon, perfect circle
══════════════════════════════════════════════════════════ */
.zair-play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 9;
    width: 56px;
    height: 56px;
    border-radius: 50%;           /* perfect circle */
    background: #FF000A;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s, transform 0.2s, opacity 0.25s;
    box-shadow: 0 4px 20px rgba(255,0,10,0.45);
    pointer-events: auto;
    padding: 0;
    line-height: 1;
}
.zair-play-btn:hover {
    background: #cc0008;
    transform: translate(-50%,-50%) scale(1.1);
}
/* White triangle play icon */
.zair-play-btn::after {
    content: '';
    display: block;
    width: 0; height: 0;
    border-style: solid;
    border-width: 9px 0 9px 16px;
    border-color: transparent transparent transparent #ffffff;
    margin-left: 4px;
}
.zair-video-slot.playing .zair-play-btn    { opacity: 0; pointer-events: none; }
.zair-video-slot.zair-is-iframe .zair-play-btn { display: none; }

/* Smaller play btn in carousel cards */
.zair-carousel-card .zair-play-btn {
    width: 40px;
    height: 40px;
}
.zair-carousel-card .zair-play-btn::after {
    border-width: 7px 0 7px 12px;
    margin-left: 3px;
}

/* ══════════════════════════════════════════════════════════
   TOGGLE BUTTONS
══════════════════════════════════════════════════════════ */
.zair-toggle-wrap {
    position: absolute;
    z-index: 10;
    display: flex;
    gap: 6px;
}
.zair-btn-pos-top-right    .zair-toggle-wrap { top:12px; right:12px; }
.zair-btn-pos-top-left     .zair-toggle-wrap { top:12px; left:12px; }
.zair-btn-pos-top-center   .zair-toggle-wrap { top:12px; left:50%; transform:translateX(-50%); }
.zair-btn-pos-bottom-right .zair-toggle-wrap { bottom:12px; right:12px; }
.zair-btn-pos-bottom-left  .zair-toggle-wrap { bottom:12px; left:12px; }

.zair-toggle-btn {
    cursor: pointer;
    border: none;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    white-space: nowrap;
    transition: background-color 0.2s, transform 0.15s;
    padding: 6px 14px;
    border-radius: 50px;
    color: #fff;
    background: rgba(0,0,0,0.55);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    line-height: 1;
}
.zair-toggle-btn.active { background: #FF000A; transform: scale(1.05); }
.zair-toggle-btn:hover  { opacity: 0.85; }

/* ══════════════════════════════════════════════════════════
   CLIENT NAME & DESC
══════════════════════════════════════════════════════════ */
.zair-client-name {
    font-size: 15px;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #FF000A;
    margin: 16px 16px 6px;
    line-height: 1.2;
}
.zair-client-desc {
    font-size: 13px;
    line-height: 1.6;
    color: #ccc;
    margin: 0 16px;
}

/* ══════════════════════════════════════════════════════════
   WIDGET 1 – Transformation Card
══════════════════════════════════════════════════════════ */
.zair-card {
    background: #111;
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}
.zair-card .zair-client-name,
.zair-card .zair-client-desc { margin: 0; }

/* ══════════════════════════════════════════════════════════
   WIDGET 2 – Transformation Carousel
══════════════════════════════════════════════════════════ */
.zair-carousel-wrap { width: 100%; }

.zair-carousel-heading {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    padding: 20px 0;
    font-size: 18px;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #fff;
}
.zair-heading-arrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px; height: 36px;
    border: 2px solid #fff;
    border-radius: 50%;
    font-size: 16px;
    opacity: 0.7;
}

/* Outer wrapper positions arrows on sides */
.zair-carousel-outer {
    position: relative;
    display: flex;
    align-items: center;
    /* leave room on each side for the arrow buttons */
    padding: 0 28px;
}

/* ── Nav arrows — perfect circles, #FF000A, white arrow ── */
.zair-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 20;
    width: 44px;
    height: 44px;
    border-radius: 50%;           /* PERFECT CIRCLE */
    border: none;
    background: #FF000A;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s, transform 0.2s;
    box-shadow: 0 4px 16px rgba(255,0,10,0.4);
    flex-shrink: 0;
    padding: 0;
    line-height: 1;
}
.zair-nav-btn.zair-prev { left: 0; }
.zair-nav-btn.zair-next { right: 0; }

.zair-nav-btn:hover {
    background: #cc0008;
    transform: translateY(-50%) scale(1.1);
}

/* White left arrow */
.zair-nav-btn.zair-prev::after {
    content: '';
    display: block;
    width: 0; height: 0;
    border-style: solid;
    border-width: 8px 13px 8px 0;
    border-color: transparent #ffffff transparent transparent;
    margin-right: 3px;
}
/* White right arrow */
.zair-nav-btn.zair-next::after {
    content: '';
    display: block;
    width: 0; height: 0;
    border-style: solid;
    border-width: 8px 0 8px 13px;
    border-color: transparent transparent transparent #ffffff;
    margin-left: 3px;
}

/* Viewport */
.zair-carousel-viewport {
    width: 100%;
    overflow: hidden;
}

/* Track */
.zair-carousel-track {
    display: flex;
    gap: 20px;
    will-change: transform;
    transition: transform 0.4s cubic-bezier(0.25,0.46,0.45,0.94);
}
.zair-carousel-track.zair-auto-scrolling { transition: none; }

/* ── Individual carousel card ── */
.zair-carousel-card {
    flex-shrink: 0;
    width: 260px;
    background: #111;
    border-radius: 12px;
    overflow: hidden;
    transition: box-shadow 0.25s;
}
.zair-carousel-card:hover { box-shadow: 0 12px 40px rgba(255,0,10,0.2); }
.zair-carousel-card .zair-video-wrapper { border-radius: 0; }
.zair-carousel-card .zair-card-text { padding: 12px 14px 14px; }
.zair-carousel-card .zair-client-name,
.zair-carousel-card .zair-client-desc  { margin: 0; }
.zair-carousel-card .zair-client-name  { margin-bottom: 4px; font-size: 13px; }
.zair-carousel-card .zair-client-desc  { font-size: 11px; color: #aaa; line-height: 1.5; }

/* ══════════════════════════════════════════════════════════
   MOBILE  — snap scroll, one card at a time
══════════════════════════════════════════════════════════ */
@media (max-width: 767px) {

    .zair-carousel-outer {
        padding: 0 20px;
    }

    /* On mobile, use native CSS snap scroll instead of JS transform */
    .zair-carousel-viewport {
        overflow-x: auto;
        overflow-y: hidden;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;          /* Firefox */
    }
    .zair-carousel-viewport::-webkit-scrollbar { display: none; } /* Chrome/Safari */

    /* Track: don't use transform on mobile, let native scroll do it */
    .zair-carousel-track {
        transform: none !important;     /* override JS transform on mobile */
        transition: none !important;
        gap: 12px;
    }

    /* Each card snaps into place */
    .zair-carousel-card {
        width: 85vw;                    /* almost full width so before/after is visible */
        scroll-snap-align: center;
        scroll-snap-stop: always;       /* never skip a card */
    }

    /* Clone cards are hidden on mobile (not needed for snap scroll) */
    .zair-carousel-card.zair-clone { display: none; }

    .zair-nav-btn { width: 36px; height: 36px; }

    .zair-client-name  { font-size: 13px; }
    .zair-client-desc  { font-size: 12px; }
    .zair-carousel-heading { font-size: 14px; }

    /* Play button slightly smaller on mobile */
    .zair-play-btn { width: 46px; height: 46px; }
}
