/* card-fan-carousel.css */

.fan-carousel-section {
    position: relative;
    width: 100%;
    background: transparent; /* Inherit the page's dark luxury cinema background */
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1rem;
    overflow: hidden;
}

@media (min-width: 768px) {
    .fan-carousel-section {
        padding: 2rem;
    }
}

.fan-carousel-wrap {
    position: relative;
    width: 100%;
    max-width: 80rem; /* 1280px */
    height: 320px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

@media (min-width: 640px) {
    .fan-carousel-wrap {
        height: 400px;
    }
}

@media (min-width: 1024px) {
    .fan-carousel-wrap {
        height: 480px;
    }
}

.fan-layout {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    perspective: 1200px;
    pointer-events: none; /* Let container handle mouseleave, cards pointer-events auto */
}

/* Base Card Style */
.fan-card {
    position: absolute;
    left: 50%;
    top: 50%;
    /* We animate x and y relative to center using GSAP. 
       We start visually hidden (opacity 0) and scaled down. */
    width: 160px;
    height: 280px;
    margin-left: -80px; /* half of width */
    margin-top: -140px;  /* half of height */
    border-radius: 16px;
    border: 1px solid rgba(201, 168, 76, 0.15); /* Gold at low opacity */
    background: #0a0a0a;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    overflow: hidden;
    cursor: pointer;
    pointer-events: auto;
    transform-origin: center bottom;
    opacity: 0;
    will-change: transform, opacity;
    display: block;
    text-decoration: none;
}

@media (min-width: 640px) {
    .fan-card {
        width: 208px;
        height: 364px;
        margin-left: -104px;
        margin-top: -182px;
    }
}

@media (min-width: 1024px) {
    .fan-card {
        width: 256px;
        height: 448px; /* 4/7 aspect ratio */
        margin-left: -128px;
        margin-top: -224px;
    }
}

.fan-card-inner {
    width: 100%;
    height: 100%;
    position: relative;
    border-radius: 15px; /* slightly less than outer to prevent bleeding */
    overflow: hidden;
}

.fan-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    pointer-events: none;
    user-select: none;
    display: block;
}

/* Pagination / Controls */
.fan-pagination {
    margin-top: 2rem;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    z-index: 20;
}

.fan-arrow {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.04);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1.5px solid rgba(201, 168, 76, 0.2);
    color: #fff;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    position: relative;
    outline: none;
    transition: all 0.3s ease;
    font-family: 'DM Sans', sans-serif;
    padding-bottom: 4px; /* optical alignment for arrows */
}

.fan-arrow::before {
    content: '';
    position: absolute;
    inset: 3px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.05);
    pointer-events: none;
}

.fan-arrow:hover {
    color: #c9a84c; /* Gold icon on hover */
    background: rgba(201, 168, 76, 0.1);
    border-color: rgba(201, 168, 76, 0.5);
}

.fan-dots {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.fan-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    cursor: pointer;
    transition: all 0.3s ease;
}

.fan-dot:hover {
    background: rgba(255, 255, 255, 0.4);
}

.fan-dot.active {
    background: #c9a84c;
    transform: scale(1.3);
}
