/* ===== استایل‌های اصلی ===== */
.feature-carousel-container {
    width: 100%;
    margin: 0 auto;
    opacity: 0;
    animation-fill-mode: both;
}

.feature-carousel-container.animate__animated {
    opacity: 1;
}

.carousel-wrapper {
    position: relative;
    overflow: hidden;
    border-radius: 40px;
    display: flex;
    flex-direction: column;
    min-height: 600px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

@media (min-width: 1024px) {
    .carousel-wrapper {
        flex-direction: row;
    }
    .layout-right .carousel-wrapper {
        flex-direction: row-reverse;
    }
    .layout-full .carousel-wrapper {
        flex-direction: row;
    }
    .layout-full .carousel-left-panel {
        display: none !important;
    }
    .layout-full .carousel-right-panel {
        width: 100% !important;
        flex: 1 1 100% !important;
    }
}

/* ===== پنل چپ (کادر) ===== */
.carousel-left-panel {
    width: 100%;
    min-height: 350px;
    position: relative;
    z-index: 30;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    overflow: hidden;
    padding: 20px;
    background-color: #62B2FE;
    transition: all 0.3s ease;
}

@media (min-width: 768px) {
    .carousel-left-panel {
        min-height: 450px;
        padding: 20px 40px;
    }
}

@media (min-width: 1024px) {
    .carousel-left-panel {
        width: 40%;
        min-height: 100%;
        padding: 20px 0 20px 40px;
        height: 100%;
    }
}

.panel-hidden .carousel-left-panel {
    display: none !important;
}
.panel-hidden .carousel-right-panel {
    width: 100% !important;
    flex: 1 1 100% !important;
}

.gradient-top,
.gradient-bottom {
    position: absolute;
    left: 0;
    right: 0;
    height: 3rem;
    z-index: 40;
    pointer-events: none;
}

@media (min-width: 768px) {
    .gradient-top,
    .gradient-bottom {
        height: 5rem;
    }
}

.gradient-top { top: 0; }
.gradient-bottom { bottom: 0; }

/* ===== دکمه‌های کادر ===== */
.carousel-items-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    z-index: 20;
    gap: 8px;
}

@media (min-width: 1024px) {
    .carousel-items-wrapper {
        justify-content: flex-start;
    }
}

.feature-item {
    position: relative !important;
    display: flex;
    align-items: center;
    justify-content: center;
    height: auto !important;
    width: auto !important;
    transform: none !important;
    opacity: 1 !important;
    margin: 0;
}

.feature-chip {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 0.75rem 1.5rem;
    border-radius: 9999px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: transparent;
    color: rgba(255, 255, 255, 0.6);
    cursor: pointer;
    font-size: 0.875rem;
    font-weight: 400;
    letter-spacing: -0.025em;
    white-space: nowrap;
    text-transform: uppercase;
    transition: all 0.3s ease;
    background-color: transparent !important;
    width: auto;
    min-height: 50px;
}

@media (min-width: 768px) {
    .feature-chip {
        padding: 1rem 2rem;
        font-size: 0.9375rem;
        min-height: 60px;
    }
}

.feature-chip:hover {
    border-color: rgba(255, 255, 255, 0.4);
    color: #ffffff;
}

.feature-chip.active {
    background: #ffffff !important;
    color: #62B2FE;
    border-color: #ffffff;
    z-index: 10;
}

.feature-chip .chip-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.5s ease;
    color: rgba(255, 255, 255, 0.4);
}

.feature-chip.active .chip-icon {
    color: #62B2FE;
}
.feature-chip .chip-icon svg {
    width: 18px;
    height: 18px;
}

/* ===== پنل راست (تصاویر) ===== */
.carousel-right-panel {
    flex: 1;
    min-height: 500px;
    position: relative;
    background: rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 4rem 1.5rem;
    overflow: hidden;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

@media (min-width: 768px) {
    .carousel-right-panel {
        min-height: 600px;
        padding: 6rem 3rem;
    }
}

@media (min-width: 1024px) {
    .carousel-right-panel {
        min-height: 100%;
        padding: 4rem 2.5rem;
        border-top: 0;
        border-left: 1px solid rgba(0, 0, 0, 0.1);
    }
    .layout-right .carousel-right-panel {
        border-left: 0;
        border-right: 1px solid rgba(0, 0, 0, 0.1);
    }
}

.carousel-images-wrapper {
    position: relative;
    width: 100%;
    max-width: 420px;
    aspect-ratio: 4/5;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ===== کارت‌های اسلاید ===== */
.carousel-image-card {
    position: absolute;
    inset: 0;
    border-radius: 32px;
    overflow: hidden;
    border: 4px solid #ffffff;
    background: #ffffff;
    transform-origin: center;
    opacity: 0;
    pointer-events: none;
    transition: all 0.5s ease;
}

@media (min-width: 768px) {
    .carousel-image-card {
        border-width: 8px;
        border-radius: 2.8rem;
    }
}

.carousel-image-card.active {
    opacity: 1;
    pointer-events: auto;
    z-index: 20;
    transform: scale(1) rotate(0deg) translateX(0);
}

.carousel-image-card.prev {
    opacity: 0.4;
    transform: scale(0.85) rotate(-3deg) translateX(-100px);
    z-index: 10;
}

.carousel-image-card.next {
    opacity: 0.4;
    transform: scale(0.85) rotate(3deg) translateX(100px);
    z-index: 10;
}

.carousel-image-card img,
.carousel-image-card .video-wrapper {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.7s ease;
}

.carousel-image-card .video-wrapper {
    position: relative;
    background: #000;
}

.carousel-image-card .video-wrapper iframe {
    width: 100%;
    height: 100%;
    border: none;
}

.carousel-image-card.active img {
    filter: grayscale(0) blur(0);
}

.carousel-image-card:not(.active) img {
    filter: grayscale(1) blur(2px) brightness(0.75);
}

/* ===== اوورلی ===== */
.image-overlay {
    position: absolute;
    inset: 0;
    padding: 2.5rem;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0.3) 40%, transparent 100%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.carousel-image-card.active .image-overlay {
    opacity: 1;
    pointer-events: none;
}

.image-description {
    color: #ffffff;
    font-size: 1.25rem;
    font-weight: 400;
    line-height: 1.4;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    letter-spacing: -0.025em;
    margin: 0;
}

@media (min-width: 768px) {
    .image-description {
        font-size: 1.5rem;
    }
}

/* ===== دکمه اسلایدر ===== */
.slider-button-wrapper {
    margin-top: 1.5rem;
    text-align: center;
    width: 100%;
    max-width: 420px;
}

.slide-button {
    display: inline-block;
    padding: 12px 32px;
    background-color: rgba(255, 255, 255, 0.2);
    color: #ffffff;
    border-radius: 9999px;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.875rem;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.3);
    pointer-events: auto;
    backdrop-filter: blur(4px);
}

.slide-button:hover {
    background-color: rgba(255, 255, 255, 0.35);
    color: #ffffff;
    transform: translateY(-2px);
    text-decoration: none;
}

/* ===== نشانگر زنده ===== */
.live-indicator {
    position: absolute;
    top: 2rem;
    left: 2rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 25;
}

.live-indicator.active {
    opacity: 1;
}

.pulse-dot {
    width: 0.5rem;
    height: 0.5rem;
    border-radius: 50%;
    background: #ffffff;
    box-shadow: 0 0 10px #ffffff;
    animation: pulse 2s infinite;
}

.live-text {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.625rem;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 0.3em;
    font-family: monospace;
}

@keyframes pulse {
    0% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.5); opacity: 0.5; }
    100% { transform: scale(1); opacity: 1; }
}

/* ===== فلش‌های کناری ===== */
.carousel-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 50;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: rgba(0, 0, 0, 0.5);
    color: #ffffff;
    border: none;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    backdrop-filter: blur(4px);
}

.panel-hidden .carousel-arrow {
    display: flex;
}

.carousel-arrow:hover {
    background-color: rgba(0, 0, 0, 0.7);
    transform: translateY(-50%) scale(1.05);
}

.carousel-arrow-prev {
    left: 10px;
}

.carousel-arrow-next {
    right: 10px;
}

.carousel-arrow svg {
    width: 24px;
    height: 24px;
    stroke: currentColor;
    stroke-width: 2;
    fill: none;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* ===== ریسپانسیو ===== */
@media (max-width: 768px) {
    .carousel-wrapper {
        border-radius: 1.5rem;
        min-height: 500px;
    }
    .carousel-image-card {
        border-width: 3px;
    }
    .image-overlay {
        padding: 1.5rem;
    }
    .carousel-arrow {
        width: 40px;
        height: 40px;
    }
    .carousel-arrow svg {
        width: 20px;
        height: 20px;
    }
    .slider-button-wrapper {
        margin-top: 1rem;
    }
    .slide-button {
        padding: 10px 24px;
        font-size: 0.8rem;
    }
}