/* Wide Horizontal Stack (Landscape) */
.promo-fan {
    position: absolute;
    top: -140px;
    /* Shift up to sit on top */
    left: 0;
    width: 100%;
    /* Spread as wide as container */
    height: 160px;
    display: flex;
    justify-content: center;
    /* Center the stack */
    align-items: flex-end;
    z-index: 0;
    padding: 0 10px;
    /* Small padding from edges */
    pointer-events: none;
}

.fan-item {
    width: 70%;
    /* Wide cards */
    max-width: 250px;
    /* Cap width */
    aspect-ratio: 16/9;
    /* Landscape */
    height: auto;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 -5px 15px rgba(0, 0, 0, 0.5);
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: #000;
    pointer-events: auto;
    cursor: pointer;
    position: relative;

    /* Heavy Horizontal Overlap */
    margin-right: -150px;
    /* Overlap significantly */
    margin-bottom: 0;
}

.fan-item:last-child {
    margin-right: 0;
}

.fan-item img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    /* Do not crop width */
    background: #111;
    /* Fill excess height if aspect mismatches */
}

/* Initial Stack State */
.fan-item:nth-child(1) {
    z-index: 1;
    transform: scale(0.9) translateY(10px);
    opacity: 0.9;
}

.fan-item:nth-child(2) {
    z-index: 2;
    transform: scale(0.95) translateY(5px);
    opacity: 0.95;
}

.fan-item:nth-child(3) {
    z-index: 3;
    transform: scale(1) translateY(0);
    opacity: 1;
}

/* Parent Card Hover Effects */
.platform-card:hover .fan-item {
    margin-right: -100px;
    /* Spread out slightly more on hover */
}

.platform-card:hover .fan-item:nth-child(1) {
    transform: translateX(-40px) translateY(-20px) scale(0.95);
}

.platform-card:hover .fan-item:nth-child(2) {
    transform: translateX(-20px) translateY(-30px) scale(1.0);
    z-index: 5;
}

.platform-card:hover .fan-item:nth-child(3) {
    transform: translateX(0) translateY(-20px) scale(1.05);
    z-index: 6;
}

/* Individual Item Hover (Pop to front) */
.fan-item:hover {
    z-index: 10 !important;
    transform: scale(1.4) translateY(-50px) !important;
    /* Zoom in larger */
    border-color: var(--primary-gold);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.8);
    margin-right: -50px;
    /* Adjust spacing */
}

/* Ensure card content pushes down enough */
.card-content {
    position: relative;
    z-index: 5;
    background: linear-gradient(to bottom, rgba(19, 19, 31, 1) 30%, rgba(19, 19, 31, 0.95));
    border-radius: 20px;
}

.platform-card {
    margin-top: 100px;
    /* Make room for the stack */
    padding-top: 20px;
}

@media (max-width: 768px) {
    .promo-fan {
        top: -100px;
        height: 120px;
    }

    .fan-item {
        margin-right: -100px;
    }

    .platform-card:hover .fan-item {
        margin-right: -80px;
    }

    .platform-card {
        margin-top: 100px;
    }
}

/* Lightbox Styles */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    backdrop-filter: blur(5px);
}

.lightbox.active {
    opacity: 1;
    pointer-events: auto;
}

.lightbox-img {
    max-width: 90%;
    max-height: 90%;
    border-radius: 8px;
    box-shadow: 0 0 50px rgba(0, 0, 0, 0.5);
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.lightbox.active .lightbox-img {
    transform: scale(1);
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 30px;
    background: none;
    border: none;
    color: #fff;
    font-size: 3rem;
    cursor: pointer;
    transition: color 0.3s;
}

.lightbox-close:hover {
    color: var(--primary-gold);
}