/* --- SHOWCASE SPECIFIC STYLES --- */
.showcase-main {
    position: relative;
    background: var(--bg-base);
    overflow-x: hidden;
}

/* ========================================= */
/* --- 1. IMMERSIVE HERO                 --- */
/* ========================================= */
.sc-hero {
    position: relative;
    padding: 8rem 0 4rem;
    overflow: hidden;
}

.sc-hero-bg-glow {
    position: absolute;
    top: -20%;
    left: 50%;
    transform: translateX(-50%);
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(0, 123, 255, 0.12) 0%, transparent 60%);
    pointer-events: none;
    z-index: 0;
}

.sc-massive-title {
    font-size: clamp(3rem, 6vw, 5rem);
    font-weight: 800;
    letter-spacing: -2px;
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

.sc-lead {
    font-size: 1.2rem;
    color: var(--text-muted);
    line-height: 1.7;
    max-width: 800px;
}

/* ========================================= */
/* --- 2. SPOTLIGHT PRESENTATION (SWIPER)--- */
/* ========================================= */
.sc-spotlight-section {
    position: relative;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.spotlight-swiper {
    width: 100%;
    height: 100vh; /* Full screen height presentation */
    min-height: 700px;
    max-height: 900px;
    background: #030405;
}

/* The Blurred Background Image (Changes per slide) */
.spotlight-bg {
    position: absolute;
    inset: -5%; /* Slightly larger to hide blur edges */
    background-size: cover;
    background-position: center;
    filter: blur(40px) brightness(0.4);
    transform: scale(1.1); /* Prevents white edges when blurred */
    z-index: 0;
    transition: transform 6s linear; /* Slow zoom effect */
}

/* Give a slow drift to the active background */
.swiper-slide-active .spotlight-bg {
    transform: scale(1);
}

/* Gradient Overlay for text readability */
.spotlight-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(5,6,8,0.95) 0%, rgba(5,6,8,0.7) 40%, rgba(5,6,8,0.2) 100%);
    z-index: 1;
}

/* Content Layout within the Slide */
.spotlight-content {
    position: relative;
    z-index: 2;
    height: 100%;
    display: flex;
    align-items: center;
    gap: 5rem;
    padding-bottom: 4rem; /* Room for custom controls */
}

/* Text Side */
.spotlight-text {
    flex: 1.2;
}

.spotlight-game-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    border-radius: 30px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: 1px solid transparent;
    margin-bottom: 2rem;
}

.spotlight-game-tag iconify-icon {
    font-size: 1.2rem;
}

.spotlight-title {
    font-size: clamp(2.5rem, 4vw, 4rem);
    color: #fff;
    margin-bottom: 1.5rem;
    letter-spacing: -1px;
}

.spotlight-desc {
    font-size: 1.1rem;
    color: #cbd5e1;
    line-height: 1.8;
    margin-bottom: 2.5rem;
    max-width: 90%;
}

.spotlight-features {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.spotlight-features span {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.95rem;
    color: #fff;
    font-weight: 500;
}

.spotlight-features iconify-icon {
    color: var(--primary);
    font-size: 1.3rem;
}

/* Visual / Image Side */
.spotlight-visual {
    flex: 1.5;
    display: flex;
    justify-content: flex-end;
}

.spotlight-img {
    max-width: 100%;
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.1);
    object-fit: cover;
    aspect-ratio: 16/9;
}

/* Custom Nav Controls Placed at the Bottom */
.spotlight-controls {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 2rem 0;
    z-index: 10;
    background: linear-gradient(0deg, rgba(0,0,0,0.8) 0%, transparent 100%);
}

.spotlight-fraction {
    font-family: monospace;
    font-size: 1.2rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 10px;
}

.spotlight-fraction .current {
    font-size: 2rem;
    color: #fff;
    font-weight: 700;
}

.spotlight-fraction .divider {
    color: var(--primary);
}

.spotlight-nav-arrows {
    display: flex;
    gap: 1rem;
}

.btn-spotlight-prev, .btn-spotlight-next {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
}

.btn-spotlight-prev:hover, .btn-spotlight-next:hover {
    background: var(--primary);
    border-color: var(--primary);
    box-shadow: 0 0 20px var(--primary-glow);
    transform: scale(1.1);
}

/* ========================================= */
/* --- 3. ANATOMY HOTSPOT DECONSTRUCTION --- */
/* ========================================= */
.anatomy-section {
    padding: 8rem 0;
    overflow: hidden; /* Prevent tooltips from breaking out */
}

.anatomy-wrapper {
    position: relative;
    max-width: 1000px;
    margin: 4rem auto 0;
    border-radius: 12px;
    box-shadow: 0 30px 80px rgba(0,0,0,0.8), 0 0 50px rgba(0, 123, 255, 0.15);
    border: 1px solid rgba(255,255,255,0.05);
}

.anatomy-base-img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 12px;
}

/* The Hotspot Marker */
.hotspot {
    position: absolute;
    width: 30px;
    height: 30px;
    transform: translate(-50%, -50%); /* Centers the point exactly on the coordinates */
    z-index: 10;
    cursor: crosshair;
}

.hotspot-pulse {
    position: absolute;
    inset: 5px;
    background: var(--primary);
    border-radius: 50%;
    box-shadow: 0 0 15px var(--primary);
    z-index: 2;
    transition: all 0.3s ease;
}

.hotspot-ring {
    position: absolute;
    inset: 0;
    border: 2px solid var(--primary);
    border-radius: 50%;
    z-index: 1;
    animation: radarPulse 2s cubic-bezier(0.215, 0.61, 0.355, 1) infinite;
}

@keyframes radarPulse {
    0% { transform: scale(1); opacity: 1; }
    100% { transform: scale(2.5); opacity: 0; border-width: 0px; }
}

/* Hovering the Hotspot */
.hotspot:hover .hotspot-pulse {
    background: #fff;
    box-shadow: 0 0 20px #fff;
}
.hotspot:hover .hotspot-ring {
    animation: none;
    transform: scale(1.5);
    border-color: #fff;
    opacity: 0.5;
}

/* The Glassmorphism Tooltip */
.hotspot-tooltip {
    position: absolute;
    width: 260px;
    background: rgba(13, 17, 22, 0.85);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(0, 123, 255, 0.4);
    padding: 1.25rem;
    border-radius: 10px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.6);
    pointer-events: none; /* Don't interfere with mouse */
    
    /* Animation base */
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 20;
}

.hotspot-tooltip h4 {
    color: #fff;
    font-size: 1rem;
    margin-bottom: 0.5rem;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    padding-bottom: 0.5rem;
}

.hotspot-tooltip p {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin: 0;
    line-height: 1.5;
}

/* Tooltip Positioning Logic (Relative to the 30x30 hotspot) */
.tooltip-left {
    top: 50%; right: 100%;
    transform: translate(20px, -50%); /* Starts pushed in */
    margin-right: 15px;
}
.hotspot:hover .tooltip-left {
    transform: translate(0, -50%);
    opacity: 1; visibility: visible;
}

.tooltip-right {
    top: 50%; left: 100%;
    transform: translate(-20px, -50%);
    margin-left: 15px;
}
.hotspot:hover .tooltip-right {
    transform: translate(0, -50%);
    opacity: 1; visibility: visible;
}

.tooltip-top {
    bottom: 100%; left: 50%;
    transform: translate(-50%, 20px);
    margin-bottom: 15px;
}
.hotspot:hover .tooltip-top {
    transform: translate(-50%, 0);
    opacity: 1; visibility: visible;
}

.tooltip-bottom {
    top: 100%; left: 50%;
    transform: translate(-50%, -20px);
    margin-top: 15px;
}
.hotspot:hover .tooltip-bottom {
    transform: translate(-50%, 0);
    opacity: 1; visibility: visible;
}


/* ========================================= */
/* --- RESPONSIVE ADJUSTMENTS            --- */
/* ========================================= */
@media (max-width: 1024px) {
    .spotlight-content {
        flex-direction: column;
        justify-content: center;
        text-align: center;
        gap: 3rem;
        padding-top: 4rem;
    }
    
    .spotlight-text { flex: none; }
    .spotlight-desc { margin: 0 auto 2rem; }
    .spotlight-features { 
        flex-direction: row; 
        justify-content: center; 
        flex-wrap: wrap; 
    }
    
    .spotlight-overlay {
        background: linear-gradient(0deg, rgba(5,6,8,0.95) 0%, rgba(5,6,8,0.8) 50%, rgba(5,6,8,0.4) 100%);
    }
}

@media (max-width: 768px) {
    .spotlight-title { font-size: 2.2rem; }
    .spotlight-visual { display: none; /* Hide image on mobile to focus on text/bg */ }
    
    /* Adjust Anatomy for Mobile */
    .anatomy-wrapper { margin-top: 2rem; border-radius: 6px; }
    .hotspot { width: 40px; height: 40px; } /* Larger touch targets */
    
    /* Force all tooltips to display below the hotspot on mobile to prevent screen overflow */
    .hotspot-tooltip {
        width: 200px;
        top: 100% !important;
        bottom: auto !important;
        left: 50% !important;
        right: auto !important;
        transform: translate(-50%, -10px) !important;
        margin: 10px 0 0 0 !important;
    }
    .hotspot:hover .hotspot-tooltip {
        transform: translate(-50%, 0) !important;
    }
}