/* ══════════════════════════════════════════
   Case Carousel v1.0.1 — Frontend CSS
══════════════════════════════════════════ */

/* ── Custom Cursors ── */
.cs-cursor {
    position: fixed;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: 999999;
    transform: translate(-50%, -50%);
    display: none;
    will-change: left, top;
}

[id^="cs-cursor-mehr"] span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    background: #1a1a1a;
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    border-radius: 100px;
    padding: 11px 24px;
    white-space: nowrap;
    user-select: none;
    font-family: system-ui, -apple-system, sans-serif;
}

[id^="cs-cursor-mehr"] span::after {
    content: '\2192';
    font-size: 13px;
}

[id^="cs-cursor-arrow"] span {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 54px;
    height: 54px;
    border-radius: 50%;
    background: #1a1a1a;
}

[id^="cs-cursor-arrow"] span svg {
    width: 20px;
    height: 20px;
    stroke: #fff;
    fill: none;
    stroke-width: 2.2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* ── Wrapper ── */
.cs-wrap {
    position: relative;
    width: 100%;
}

/* ── Slider area ── */
.cs-slider-area {
    position: relative;
    width: 100%;
    overflow: hidden;
    padding: 24px 0 32px;
}

.cs-slider-area.cs-cursor-hide {
    cursor: none;
}

.cs-slider-area.cs-fade-edges {
    -webkit-mask-image: linear-gradient(
        to right,
        transparent 0%,
        black var(--cs-fade-w, 8%),
        black calc(100% - var(--cs-fade-w, 8%)),
        transparent 100%
    );
    mask-image: linear-gradient(
        to right,
        transparent 0%,
        black var(--cs-fade-w, 8%),
        black calc(100% - var(--cs-fade-w, 8%)),
        transparent 100%
    );
}

/* ── Track ── */
.cs-track {
    display: flex;
    align-items: stretch;
    will-change: transform;
}

/* ── Slide ── */
.cs-slide {
    flex-shrink: 0;
    background: #fff;
    border-radius: 20px;
    border: 1px solid rgba(0, 0, 0, 0.07);
    overflow: hidden;
    cursor: none;
    position: relative;
    min-height: 320px;
}

/* Accent bar */
.cs-slide::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #146ef5, #817ae9);
    border-radius: 20px 20px 0 0;
    opacity: 0;
    z-index: 2;
    pointer-events: none;
}

.cs-slide.cs-no-accent::before {
    display: none;
}

.cs-slide.is-active::before {
    opacity: 1;
}

/* ── Shortcode area ── */
.cs-shortcode-area {
    width: 100%;
    height: 100%;
    min-height: inherit;
    display: flex;
    flex-direction: column;
}

.cs-shortcode-area > * {
    width: 100%;
}

/* ── Controls ── */
.cs-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-top: 28px;
    flex-wrap: wrap;
}

.cs-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1.5px solid rgba(0, 0, 0, 0.14);
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.22s ease, border-color 0.22s ease;
    flex-shrink: 0;
    padding: 0;
    outline: none;
    -webkit-appearance: none;
    appearance: none;
}

.cs-btn:hover {
    background: #1a1a1a;
    border-color: #1a1a1a;
}

.cs-btn svg {
    width: 18px;
    height: 18px;
    stroke: #1a1a1a;
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    transition: stroke 0.22s ease;
    display: block;
    pointer-events: none;
}

.cs-btn:hover svg {
    stroke: #fff;
}

/* ── Dots ── */
.cs-dots {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.cs-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.18);
    cursor: pointer;
    border: none;
    padding: 0;
    flex-shrink: 0;
    outline: none;
    -webkit-appearance: none;
    appearance: none;
    transition: width 0.3s ease, background 0.3s ease, border-radius 0.3s ease;
}

.cs-dot.is-active {
    width: 24px;
    border-radius: 100px;
    background: #1a1a1a;
}
