/**
 * Curved 3D Showcase Slider Pro v4.0
 * Zero Overlap Cylindrical Cinema Engine
 * 100% RTL Compliant & 25px Round Edges System
 * Ultra-Compact Mobile 2x2 Feature Cards
 */
:root {
    --c3d-accent: #ff5400;
    --c3d-accent-hover: #e04b00;
    --c3d-text-heading: #0f172a;
    --c3d-text-body: #64748b;
    --c3d-card-size: 260px;
    --c3d-card-size-mob: 170px;
    --c3d-radius: 25px;
    --c3d-gap: 42px;
    --c3d-gap-mob: 24px;
    --c3d-radius-cyl: 1400px;
}

.c3d-showcase-root {
    position: relative;
    width: 100%;
    padding: 60px 0 70px;
    background: transparent;
    box-sizing: border-box;
    user-select: none;
    -webkit-user-select: none;
    overflow-x: clip !important;
    font-family: inherit;
}

.c3d-showcase-root *,
.c3d-showcase-root *::before,
.c3d-showcase-root *::after {
    box-sizing: border-box;
}

.c3d-sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

/* Header & Intro Section */
.c3d-header-area {
    text-align: center;
    max-width: 820px;
    margin: 0 auto 35px;
    padding: 0 20px;
}

.c3d-badge-pill {
    display: inline-block;
    color: var(--c3d-accent);
    font-size: 1.12rem;
    font-weight: 700;
    letter-spacing: -0.01em;
    margin-bottom: 12px;
    border-radius: 25px;
}

.c3d-main-heading {
    color: var(--c3d-text-heading);
    font-size: clamp(2rem, 3.8vw, 3.2rem);
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -0.02em;
    margin: 0 0 14px;
}

.c3d-sub-text {
    color: var(--c3d-text-body);
    font-size: 1.02rem;
    line-height: 1.6;
    margin: 0 auto 26px;
    max-width: 620px;
}

/* Pill CTA Button with RTL & 25px Radius */
.c3d-cta-row {
    display: flex;
    justify-content: center;
    margin-top: 10px;
}

.c3d-pill-btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 6px 8px 6px 22px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 25px;
    color: var(--c3d-text-heading);
    text-decoration: none !important;
    font-weight: 700;
    font-size: 0.95rem;
    transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.04);
}

.c3d-dir-rtl .c3d-pill-btn {
    padding: 6px 22px 6px 8px;
}

.c3d-pill-btn:hover {
    border-color: #cbd5e1;
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.08);
}

.c3d-btn-ico {
    width: 36px;
    height: 36px;
    border-radius: 25px;
    background: var(--c3d-accent);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
}

.c3d-dir-rtl .c3d-pill-btn:hover .c3d-btn-ico {
    transform: translateX(-3px) scale(1.05);
}

.c3d-dir-ltr .c3d-pill-btn:hover .c3d-btn-ico {
    transform: translateX(3px) scale(1.05);
}

/* 3D Cylindrical Perspective Cinema Stage (Zero Overlap) */
.c3d-cinema-viewport {
    position: relative;
    width: 100%;
    perspective: 1200px !important;
    perspective-origin: 50% 50% !important;
    overflow: visible !important;
    padding: 35px 0 45px;
    cursor: grab;
    direction: ltr !important;
}

.c3d-cinema-viewport:active {
    cursor: grabbing;
}

.c3d-scene-stage {
    position: relative;
    width: 100%;
    transform-style: preserve-3d !important;
}

.c3d-cylinder-track {
    display: flex;
    gap: var(--c3d-gap);
    width: max-content;
    will-change: transform;
    transform-style: preserve-3d !important;
    align-items: center;
}

/* 3D Slide Node with 1:1 Aspect Ratio */
.c3d-slide-node {
    flex: 0 0 var(--c3d-card-size);
    width: var(--c3d-card-size);
    height: var(--c3d-card-size);
    transform-style: preserve-3d !important;
    transform-origin: 50% 50% !important;
    will-change: transform, filter, opacity;
    transition: transform 0.1s cubic-bezier(0.2, 0, 0, 1);
}

.c3d-card-link {
    display: block;
    width: 100%;
    height: 100%;
    text-decoration: none !important;
    color: inherit;
    position: relative;
    outline: none;
    border-radius: 25px;
    cursor: pointer !important;
    pointer-events: auto !important;
    touch-action: manipulation;
}

/* فریم کاملاً مربعی ۱:۱ */
.c3d-card-frame {
    position: relative;
    width: 100%;
    height: 100%;
    aspect-ratio: 1 / 1 !important;
    margin: 0;
    border-radius: 25px;
    overflow: hidden;
    background: #0f172a;
    box-shadow: 0 16px 36px -8px rgba(15, 23, 42, 0.22);
    transform: translateZ(0);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s ease;
}

.c3d-slide-img {
    width: 100%;
    height: 100%;
    aspect-ratio: 1 / 1 !important;
    object-fit: cover;
    display: block;
    border-radius: 25px;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.c3d-glass-sheen {
    position: absolute;
    inset: 0;
    border-radius: 25px;
    background: linear-gradient(135deg, rgba(255,255,255,0.22) 0%, rgba(255,255,255,0) 60%);
    pointer-events: none;
}

.c3d-card-hover-overlay {
    position: absolute;
    inset: 0;
    border-radius: 25px;
    background: rgba(15, 23, 42, 0.25);
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.35s ease, transform 0.35s ease;
    pointer-events: none;
}

.c3d-hover-action-badge {
    width: 48px;
    height: 48px;
    border-radius: 25px;
    background: #ffffff;
    color: var(--c3d-accent);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
    transform: scale(0.7);
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.c3d-card-link:hover .c3d-card-frame {
    transform: translateY(-8px) scale(1.03);
    box-shadow: 0 24px 50px -8px rgba(255, 84, 0, 0.3), 0 16px 30px -5px rgba(0, 0, 0, 0.3);
}

.c3d-card-link:hover .c3d-slide-img {
    transform: scale(1.08);
}

.c3d-card-link:hover .c3d-card-hover-overlay {
    opacity: 1;
}

.c3d-card-link:hover .c3d-hover-action-badge {
    transform: scale(1);
}

/* ۴ کادر ویژگی و اطلاعات پایین اسلایدر */
.c3d-bottom-features-bar {
    max-width: 1140px;
    margin: 45px auto 0;
    padding: 0 20px;
    box-sizing: border-box;
}

.c3d-features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
}

.c3d-feature-card {
    display: flex;
    flex-direction: column;
    text-align: right;
    text-decoration: none !important;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 25px;
    padding: 20px 16px;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.03);
    transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    color: inherit;
    position: relative;
    overflow: hidden;
}

.c3d-dir-ltr .c3d-feature-card {
    text-align: left;
}

.c3d-feature-card:hover {
    border-color: #cbd5e1;
    transform: translateY(-3px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.06);
}

.c3d-feature-top-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
}

.c3d-feature-tag {
    color: var(--c3d-accent);
    font-size: 0.95rem;
    font-weight: 800;
    letter-spacing: 0.02em;
}

.c3d-feature-icon-badge {
    color: var(--c3d-accent);
    display: flex;
    align-items: center;
    justify-content: center;
}

.c3d-feature-body {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.c3d-feature-title {
    color: var(--c3d-text-heading);
    font-size: 0.98rem;
    font-weight: 700;
    margin: 0;
    line-height: 1.35;
}

.c3d-feature-desc {
    color: var(--c3d-text-body);
    font-size: 0.84rem;
    line-height: 1.45;
    margin: 0;
}

/* واکنش‌گرایی تبلت و موبایل */
@media (max-width: 1024px) {
    .c3d-features-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 14px;
    }
}

@media (max-width: 640px) {
    .c3d-showcase-root {
        padding: 30px 0 40px;
    }
    .c3d-header-area {
        margin-bottom: 20px;
        padding: 0 15px;
    }
    .c3d-badge-pill {
        font-size: 0.95rem;
        margin-bottom: 8px;
    }
    .c3d-main-heading {
        font-size: 1.65rem;
        margin-bottom: 10px;
    }
    .c3d-sub-text {
        font-size: 0.9rem;
        margin-bottom: 18px;
    }
    .c3d-cinema-viewport {
        padding: 20px 0 30px;
    }
    
    /* سایز کارت‌های اسلایدر در موبایل */
    .c3d-slide-node {
        flex: 0 0 var(--c3d-card-size-mob) !important;
        width: var(--c3d-card-size-mob) !important;
        height: var(--c3d-card-size-mob) !important;
    }
    .c3d-cylinder-track {
        gap: var(--c3d-gap-mob) !important;
    }

    /* شبکه فشرده ۲ در ۲ نشان‌های پایین */
    .c3d-bottom-features-bar {
        margin-top: 24px;
        padding: 0 12px;
    }
    .c3d-features-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 10px !important;
    }
    .c3d-feature-card {
        padding: 12px 10px !important;
        border-radius: 20px !important;
    }
    .c3d-feature-tag {
        font-size: 0.85rem !important;
    }
    .c3d-feature-title {
        font-size: 0.86rem !important;
        line-height: 1.25 !important;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    .c3d-feature-desc {
        font-size: 0.72rem !important;
        line-height: 1.35 !important;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
        opacity: 0.85;
    }
}