/* === SPOTLIGHT LIST STYLES === */

.spotlight-wrapper {
    position: relative;
    padding: var(--spacing-2xl) 0;
    width: 100%;
}

.spotlight-list {
    display: flex;
    flex-direction: column;
    gap: 0;
    /* Border separation instead */
}

/* Item Styles */
.spotlight-item {
    position: relative;
    display: block;
    padding: var(--spacing-xl) 0;
    border-bottom: 1px solid var(--border-color);
    text-decoration: none;
    transition: all 0.3s ease;
    z-index: 2;
    /* Above cursor image */
}

.spotlight-item:first-child {
    border-top: 1px solid var(--border-color);
}

.spotlight-content {
    display: grid;
    grid-template-columns: 50px 1fr auto 50px;
    align-items: center;
    gap: var(--spacing-lg);
    width: 100%;
}

/* Index Number */
.spotlight-index {
    font-family: var(--font-mono);
    font-size: 0.9rem;
    color: var(--text-secondary);
    opacity: 0.5;
    transition: opacity 0.3s ease;
}

/* Title - The Hero */
.spotlight-title {
    font-size: clamp(1.5rem, 4vw, 3rem);
    font-weight: 700;
    margin: 0;
    color: var(--text-primary);
    transition: transform 0.3s ease, color 0.3s ease;
    /* mix-blend-mode: difference; Optional cool effect */
    text-transform: uppercase;
    letter-spacing: -1px;
}

/* Tags */
.spotlight-tags {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
}

.spotlight-tag {
    font-size: 0.8rem;
    padding: 4px 10px;
    border-radius: 20px;
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    transition: all 0.3s ease;
}

/* Arrow */
.spotlight-arrow {
    color: var(--text-secondary);
    font-size: 1.2rem;
    transform: rotate(-45deg);
    transition: transform 0.3s ease, color 0.3s ease;
}

/* === HOVER EFFECTS === */
.spotlight-item:hover .spotlight-title {
    transform: translateX(20px);
    color: var(--accent-primary);
}

.spotlight-item:hover .spotlight-index {
    color: var(--accent-primary);
    opacity: 1;
}

.spotlight-item:hover .spotlight-arrow {
    transform: rotate(0deg) translateX(5px);
    color: var(--accent-primary);
}

.spotlight-item:hover .spotlight-tag {
    background: var(--accent-primary);
    border-color: var(--accent-primary);
    color: white;
}

/* === FLOATING CURSOR IMAGE === */
.spotlight-cursor-image {
    position: fixed;
    top: 0;
    left: 0;
    width: 300px;
    /* Large preview */
    height: 200px;
    border-radius: 10px;
    overflow: hidden;
    pointer-events: none;
    z-index: 100;
    /* Very high, acts as a tooltip/cursor follower */
    opacity: 0;
    transform: scale(0.5);
    transition: opacity 0.3s ease, transform 0.3s ease;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    /* Setup for JS positioning */
    transform-origin: center center;
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-color);
}

.spotlight-cursor-image.active {
    opacity: 1;
    transform: scale(1);
    /* Note: translation happens in JS */
}

.cursor-inner {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    /* Default abstract gradient if no image */
    background-image: var(--gradient-bg);
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .spotlight-cursor-image {
        display: none;
        /* No hover on mobile usually */
    }

    .spotlight-content {
        grid-template-columns: 30px 1fr;
        grid-template-areas:
            "index title"
            "arrow tags";
        gap: 10px;
    }

    .spotlight-index {
        grid-area: index;
    }

    .spotlight-title {
        grid-area: title;
        font-size: 1.25rem;
    }

    .spotlight-tags {
        grid-area: tags;
        justify-content: flex-start;
        flex-wrap: wrap;
    }

    .spotlight-arrow {
        grid-area: arrow;
        align-self: center;
    }

    .spotlight-item:hover .spotlight-title {
        transform: translateX(5px);
    }
}

@media (max-width: 480px) {
    .spotlight-content {
        grid-template-columns: 20px 1fr;
        gap: 8px;
    }

    .spotlight-title {
        font-size: 1.1rem;
    }

    .spotlight-tag {
        font-size: 0.7rem;
        padding: 3px 8px;
    }

    .spotlight-index {
        font-size: 0.8rem;
    }
}