/* ============================================================
   IGN Group — 3D Rotating Carousel
   ============================================================ */

.ign-carousel-wrapper {
    --ign-accent: #2ecc40;
    --ign-accent-dark: #1fa832;
    --ign-bg: #0c1929;
    --ign-bg-pattern: #0f2035;
    --ign-text: #f0f4f8;
    --ign-text-muted: #a0b4c8;
    --ign-card-w: 380px;
    --ign-card-h: 480px;

    position: relative;
    width: 100%;
    min-height: 720px;
    display: flex;
    align-items: center;
    justify-content: center;
    perspective: 1400px;
    overflow: hidden;
    font-family: 'Poppins', sans-serif;
    color: var(--ign-text);
    /* background:
        radial-gradient(ellipse at 20% 50%, rgba(14,40,70,0.9) 0%, transparent 60%),
        radial-gradient(ellipse at 80% 50%, rgba(14,40,70,0.7) 0%, transparent 60%),
        repeating-linear-gradient(0deg, transparent, transparent 40px, var(--ign-bg-pattern) 40px, var(--ign-bg-pattern) 41px),
        repeating-linear-gradient(90deg, transparent, transparent 40px, var(--ign-bg-pattern) 40px, var(--ign-bg-pattern) 41px),
        var(--ign-bg); */
    padding: 80px 0;
    box-sizing: border-box;
}

.ign-carousel-wrapper *,
.ign-carousel-wrapper *::before,
.ign-carousel-wrapper *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* Isolate 3D context so it doesn't leak into sibling elements */
.ign-carousel-wrapper {
    transform-style: flat;
    isolation: isolate;
    contain: layout style paint;
}

/* ── Ring container ── */
.ign-carousel {
    width: var(--ign-card-w);
    height: var(--ign-card-h);
    position: relative;
    transform-style: preserve-3d;
    transition: transform 0.8s cubic-bezier(0.35, 0, 0.15, 1);
}

/* ── Card ── */
.ign-carousel .ign-card {
    position: absolute;
    width: var(--ign-card-w);
    height: var(--ign-card-h);
    border-radius: 20px;
    overflow: hidden;
    transition:
        filter 0.3s cubic-bezier(0.35, 0, 0.15, 1),
        opacity 0.3s cubic-bezier(0.35, 0, 0.15, 1),
        box-shadow 0.3s cubic-bezier(0.35, 0, 0.15, 1);
    cursor: pointer;
    will-change: filter, opacity;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.ign-card.active {
    filter: blur(0px) brightness(1);
    opacity: 1;
    box-shadow:
        0 30px 80px rgba(0, 0, 0, 0.6),
        0 0 0 1px rgba(46, 204, 64, 0.15);
}

.ign-card.adjacent {
    filter: blur(2px) brightness(1);
    opacity: 1;
}

.ign-card.far {
    filter: blur(6px) brightness(1);
    opacity: 1;
    pointer-events: none;
}

.ign-card.behind {
    filter: blur(6px) brightness(1);
    opacity: 1;
    pointer-events: none;
}

/* ── Card internals ── */
.ign-card-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100% !important;
    object-fit: cover;
    display: block;
}

/* .ign-card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg,
            rgba(12, 25, 41, 0.05) 0%,
            rgba(12, 25, 41, 0.3) 40%,
            rgba(12, 25, 41, 0.88) 100%);
} */

.ign-card-number {
    position: absolute;
    top: 24px;
    right: 28px;
    font-family: 'Space Mono', monospace;
    font-size: 3rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.5);
}

/* ── Card content (active slide) ── */
.ign-card-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 32px;
    transform: translateY(24px);
    opacity: 0;
    transition:
        transform 0.4s cubic-bezier(0.35, 0, 0.15, 1) 0.2s,
        opacity 0.5s cubic-bezier(0.35, 0, 0.15, 1) 0.2s;
}

.ign-card.active .ign-card-content {
    transform: translateY(0);
    opacity: 1;
}

.ign-card-category {
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--ign-accent);
    font-style: italic;
    margin-bottom: 4px;
}

.ign-card-title {
    font-size: 2.2rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 12px;
    color: #fff;
}

.ign-card-title .ign-dot {
    color: var(--ign-accent);
}

.ign-card-desc {
    font-size: 0.92rem;
    line-height: 1.55;
    color: #fff;
    margin-bottom: 20px;
    font-weight: 400;
}

.ign-card-desc strong {
    color: #fff;
    font-weight: 600;
}

.ign-card-btn {
    display: inline-block;
    padding: 12px 32px;
    background: var(--ign-accent);
    color: #fff;
    font-family: 'Poppins', sans-serif;
    font-size: 0.92rem;
    font-weight: 600;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    text-decoration: none;
    transition: background 0.25s, transform 0.25s, box-shadow 0.25s;
    box-shadow: 0 4px 20px rgba(46, 204, 64, 0.35);
}

.ign-card-btn:hover {
    background: var(--ign-accent-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(46, 204, 64, 0.5);
    color: #fff;
    text-decoration: none;
}

/* ── Inactive label ── */
.ign-card-label {
    position: absolute;
    bottom: 32px;
    left: 32px;
    right: 32px;
    font-size: 1.6rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.95);
    text-shadow: 0 2px 15px rgba(0, 0, 0, 0.6);
    opacity: 1;
    transition: opacity 0.4s ease 0.1s;
}

.ign-card.active .ign-card-label {
    opacity: 0;
    transition-delay: 0s;
}

/* ── Nav arrows ── */
.ign-carousel-nav {
    position: absolute;
    bottom: 40px;
    right: 0px;
    display: flex;
    gap: 12px;
    z-index: 100;
    width: 23%;
}

.ign-carousel-nav-btn {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 2px solid #E5E5E5;
    background: #E5E5E5;
    color: #3CD028;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    backdrop-filter: blur(8px);
    padding: 0;
    line-height: 1;
}

.ign-carousel-nav-btn:hover {
    border-color: var(--ign-accent);
    color: var(--ign-accent);
    background: rgba(46, 204, 64, 0.08);
}

.ign-carousel-nav-btn svg {
    width: 18px;
    height: 18px;
    stroke: currentColor;
    fill: none;
    stroke-width: 2.5;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* ── Dots ── */
.ign-carousel-dots {
    position: absolute;
    bottom: 48px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 100;
}

.ign-carousel-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    border: 1.5px solid rgba(255, 255, 255, 0.3);
    transition: all 0.4s ease;
    cursor: pointer;
}

.ign-carousel-dot.active {
    background: var(--ign-accent);
    border-color: var(--ign-accent);
    box-shadow: 0 0 12px rgba(46, 204, 64, 0.5);
}

/* ── Responsive ── */
@media (max-width: 768px) {
    .ign-carousel-nav {
        display: none;
    }
}

@media (max-width: 650px) {
    .ign-carousel-wrapper {
        --ign-card-w: 90vw;
        --ign-card-h: 420px;
        min-height: 520px;
        padding: 50px 0 120px;
        perspective: none;
    }

    .ign-carousel {
        transform-style: flat;
    }

    .ign-carousel .ign-card {
        transition:
            transform 0.5s ease,
            filter 0.5s ease,
            opacity 0.5s ease;
    }

    /* Active: just centered, no 3D */
    .ign-card.active {
        transform: translateX(0) translateY(0) !important;
    }

    /* Everything else: off-screen and hidden */
    .ign-card.adjacent,
    .ign-card.far,
    .ign-card.behind {
        transform: translateX(0) translateY(0) !important;
        opacity: 0 !important;
        pointer-events: none;
    }

    .ign-card-title {
        font-size: 1.6rem;
    }

    .ign-card-number {
        font-size: 2rem;
    }



    .ign-carousel-dots {
        bottom: 70px;
    }

    .ign-carousel-nav-btn {
        width: 40px;
        height: 40px;
    }
}