/* ==========================================================================
   Wepido Showcase Slider & Creations Component Styles
   Theme: Deep Slate / Navy Minimal Aesthetic
   ========================================================================== */

.wepido-showcase-section {
    background: linear-gradient(135deg, #181d38 0%, #1f2549 50%, #181d38 100%);
    padding: 70px 0 95px 0;
    position: relative;
    z-index: 5;
    overflow: visible;
    overflow-x: clip;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    direction: rtl;
}

.wepido-showcase-section::before {
    content: '';
    position: absolute;
    top: -80px;
    left: 8%;
    width: 480px;
    height: 480px;
    background: radial-gradient(circle, rgba(37, 99, 235, 0.16) 0%, transparent 70%);
    pointer-events: none;
}

.wepido-showcase-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 32px;
    align-items: center;
    width: 100%;
    max-width: 100%;
    overflow: visible;
}

@media (min-width: 1024px) {
    .wepido-showcase-grid {
        grid-template-columns: 360px minmax(0, 1fr);
        gap: 40px;
    }
}

@media (min-width: 1280px) {
    .wepido-showcase-grid {
        grid-template-columns: 390px minmax(0, 1fr);
        gap: 48px;
    }
}

/* ستون اطلاعات سمت راست */
.wepido-showcase-info {
    display: flex;
    flex-direction: column;
    gap: 16px;
    z-index: 20;
    min-width: 0;
    max-width: 100%;
    width: 100%;
}

.wepido-showcase-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(37, 99, 235, 0.25);
    color: #60a5fa;
    border: 1px solid rgba(96, 165, 250, 0.3);
    padding: 5px 14px;
    border-radius: 9999px;
    font-size: 12.5px;
    font-weight: 700;
    width: fit-content;
}

.wepido-showcase-title {
    font-size: clamp(20px, 2.8vw, 32px);
    font-weight: 900;
    color: #ffffff;
    line-height: 1.42;
    letter-spacing: -0.5px;
    margin: 0;
    word-break: break-word;
    overflow-wrap: break-word;
}

.wepido-showcase-desc {
    font-size: 14.5px;
    color: #cbd5e1;
    line-height: 1.85;
    margin: 0;
    word-break: break-word;
    overflow-wrap: break-word;
}

/* سلکتور کشویی انتخاب دسته‌بندی */
.wepido-category-dropdown {
    position: relative;
    width: 100%;
    max-width: 280px;
    margin-top: 4px;
    z-index: 50;
}

.wepido-category-dropdown-btn {
    width: 100%;
    background: #ffffff;
    color: #0f172a;
    border: none;
    padding: 12px 18px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
    transition: all 0.2s ease;
}

.wepido-category-dropdown-btn:hover {
    background: #f8fafc;
    transform: translateY(-1px);
}

.wepido-category-menu {
    position: absolute;
    top: calc(100% + 6px);
    right: 0;
    width: 100%;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 14px 40px rgba(0, 0, 0, 0.45);
    overflow: hidden;
    display: none;
    z-index: 100;
    border: 1px solid #e2e8f0;
}

.wepido-category-menu.is-open {
    display: block;
}

.wepido-category-item {
    padding: 10px 16px;
    font-size: 13.5px;
    font-weight: 600;
    color: #334155;
    cursor: pointer;
    transition: background 0.15s ease;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.wepido-category-item:hover,
.wepido-category-item.is-active {
    background: #eff6ff;
    color: #2563eb;
    font-weight: 800;
}

/* کنترل‌های اسلاید */
.wepido-showcase-nav {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 10px;
}

.wepido-showcase-arrow {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #ffffff;
    font-size: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.wepido-showcase-arrow:hover {
    background: #2563eb;
    border-color: #2563eb;
    transform: scale(1.05);
}

.wepido-showcase-counter {
    font-size: 13px;
    color: #94a3b8;
    margin-right: 6px;
    min-width: 40px;
}

.wepido-showcase-more-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #60a5fa;
    text-decoration: none;
    font-size: 13.5px;
    font-weight: 700;
    margin-top: 4px;
    transition: color 0.2s ease;
}

.wepido-showcase-more-link:hover {
    color: #93c5fd;
    text-decoration: underline;
}

/* اسلایدر کارت‌ها */
.wepido-showcase-slider-wrap {
    width: 100%;
    min-width: 0;
    max-width: 100%;
    overflow: hidden;
}

.wepido-showcase-viewport {
    overflow: hidden;
    padding: 10px 4px 18px 4px;
    width: 100%;
    max-width: 100%;
    min-width: 0;
}

.wepido-showcase-track {
    display: flex;
    gap: 20px;
    transition: transform 0.45s cubic-bezier(0.2, 0.8, 0.2, 1);
    width: 100%;
    min-width: 0;
}

.wepido-site-card {
    flex: 0 0 calc(100vw - 48px);
    max-width: 360px;
    min-width: 270px;
    background: #20264d;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    position: relative;
    user-select: none;
    box-sizing: border-box;
}

@media (min-width: 768px) {
    .wepido-site-card {
        flex: 0 0 370px;
        max-width: 370px;
    }
}

@media (min-width: 1280px) {
    .wepido-site-card {
        flex: 0 0 400px;
        max-width: 400px;
    }
}

.wepido-site-card:hover {
    transform: translateY(-6px);
    border-color: rgba(96, 165, 250, 0.5);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
}

.wepido-site-mockup-top {
    height: 28px;
    background: #181d39;
    display: flex;
    align-items: center;
    padding: 0 12px;
    gap: 6px;
    direction: ltr;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.wepido-mockup-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}
.wepido-dot-red { background: #ef4444; }
.wepido-dot-yellow { background: #f59e0b; }
.wepido-dot-green { background: #10b981; }

.wepido-mockup-domain-text {
    margin-left: 8px;
    font-size: 11px;
    color: #64748b;
    font-family: monospace;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 220px;
}

.wepido-site-preview-img-wrap {
    position: relative;
    width: 100%;
    height: 220px;
    background: #0f172a;
    overflow: hidden;
}

@media (min-width: 768px) {
    .wepido-site-preview-img-wrap {
        height: 245px;
    }
}

.wepido-site-preview-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    display: block;
    transition: transform 0.45s ease;
}

.wepido-site-card:hover .wepido-site-preview-img-wrap img {
    transform: scale(1.04);
}

.wepido-site-open-icon-btn {
    position: absolute;
    bottom: 12px;
    left: 12px;
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    text-decoration: none;
    transition: all 0.25s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    z-index: 5;
}

.wepido-site-open-icon-btn:hover {
    background: #2563eb;
    color: #ffffff;
    border-color: #2563eb;
    transform: scale(1.1);
}

.wepido-site-footer-bar {
    padding: 14px 16px;
    background: #20264d;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.wepido-site-titles {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.wepido-site-name {
    font-size: 14.5px;
    font-weight: 800;
    color: #ffffff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.wepido-site-domain-label {
    font-size: 12px;
    color: #94a3b8;
    direction: ltr;
    text-align: right;
    margin-top: 2px;
    font-family: monospace;
}

/* نشان نوع سایت */
.site-type-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 11.5px;
    font-weight: 700;
    white-space: nowrap;
    flex-shrink: 0;
}

.badge-shop {
    background: rgba(16, 185, 129, 0.15);
    color: #34d399;
    border: 1px solid rgba(52, 211, 153, 0.3);
}

.badge-company {
    background: rgba(56, 189, 248, 0.15);
    color: #38bdf8;
    border: 1px solid rgba(56, 189, 248, 0.3);
}

/* بهینه‌سازی اختصاصی نسخه موبایل */
@media (max-width: 767px) {
    .wepido-showcase-section {
        padding: 42px 0;
        overflow-x: hidden;
    }

    .wepido-showcase-grid {
        gap: 24px;
    }

    .wepido-showcase-info {
        gap: 12px;
    }

    .wepido-showcase-title {
        font-size: 21px;
        line-height: 1.45;
    }

    .wepido-showcase-desc {
        font-size: 13.5px;
        line-height: 1.8;
    }

    .wepido-category-dropdown {
        max-width: 100%;
        margin-top: 2px;
    }

    .wepido-showcase-nav {
        margin-top: 2px;
    }

    .wepido-showcase-viewport {
        padding: 4px 2px 14px 2px;
    }

    .wepido-site-card {
        flex: 0 0 calc(100vw - 44px);
        max-width: 350px;
        border-radius: 14px;
    }

    .wepido-site-preview-img-wrap {
        height: 190px;
    }
}
