/* ===========================================
 * CARD CAROUSEL - Show/Hide Implementation
 * One card visible at a time
 * =========================================== */

/* Grid wrapper for 3 carousels side-by-side on desktop */
.carousel-grid {
    display: flex;
    flex-direction: column;
    gap: 0;
    padding: var(--space-xl) var(--space-md);
}

@media (min-width: 1200px) {
    .carousel-grid {
        flex-direction: row;
        justify-content: center;
        align-items: flex-start;
        gap: var(--space-lg);
        max-width: 1400px;
        margin: 0 auto;
        padding: var(--space-2xl) var(--space-lg);
    }

    .carousel-grid .card-section {
        flex: 1;
        max-width: 380px;
        padding: var(--space-lg) 0;
    }
}

.card-section {
    padding: var(--space-xl) var(--space-lg);
    max-width: 480px;
    margin: 0 auto;
    text-align: center;
}

.card-section .section-title {
    font-size: var(--size-xl);
    font-weight: 600;
    margin-bottom: var(--space-sm);
    color: var(--text-primary);
}

.card-section .section-subtitle {
    font-size: var(--size-sm);
    color: var(--text-secondary);
    margin-bottom: var(--space-md);
}

.card-section .section-subtitle a {
    color: var(--pink-accent);
    text-decoration: underline;
}

/* Carousel container with arrows */
.card-carousel {
    position: relative;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* The viewport - just holds the track */
.carousel-viewport {
    flex: 1;
    border-radius: 12px;
    overflow: hidden;
}

/* Track - just a container now */
.carousel-track {
    position: relative;
    width: 100%;
}

/* Individual card - display controlled by JS */
.card-item {
    width: 100%;
    position: relative;
    aspect-ratio: 3 / 4;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid rgba(147, 51, 234, 0.3);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    background: linear-gradient(180deg, #14050f 0%, #280a19 100%);
    transition: opacity 0.3s ease;
}

/* Video/image background */
.card-media-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.card-media-bg video,
.card-media-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.5;
}

/* Gradient overlay */
.card-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(180deg,
            transparent 0%,
            rgba(15, 5, 20, 0.4) 50%,
            rgba(15, 5, 20, 0.95) 100%);
}

/* Content at bottom */
.card-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 2;
    padding: 24px;
    text-align: center;
}

.card-title {
    display: block;
    font-size: 20px;
    font-weight: 600;
    color: #fff;
    margin-bottom: 8px;
}

.card-desc {
    display: block;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.4;
}

/* Arrow buttons */
.carousel-arrow {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    font-size: 24px;
    cursor: pointer;
    transition: background 0.2s, transform 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-arrow:hover {
    background: rgba(255, 0, 85, 0.3);
    transform: scale(1.1);
}

/* Dots */
.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 16px;
}

.carousel-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.3);
    cursor: pointer;
    transition: background 0.2s, transform 0.2s;
}

.carousel-dot.active {
    background: var(--pink-hot, #FF0055);
    transform: scale(1.2);
}

/* Strikethrough contrast cards */
.card-struck {
    display: block;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.5);
    text-decoration: line-through;
    margin-bottom: 4px;
}

.card-real {
    display: block;
    font-size: 18px;
    font-weight: 600;
    color: var(--pink-hot, #FF0055);
}