/* Inline fix for background image scaling on dynamic cards */
.news-image-placeholder {
    background-size: cover;
    background-position: center;
    background-color: #111; /* Fallback */
}

/* --- SPOTLIGHT SECTION STYLES --- */

.spotlight-section {
    padding: 4rem 0 6rem 0;
    position: relative;
    overflow: hidden;
    /* Background Image with Dark Overlay (0.6 opacity) */
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url("images/spotlight-background.png");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.spotlight-header {
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
    z-index: 2;
}

.spotlight-header .section-title {
    font-size: 2.5rem;
    font-weight: 800;
    letter-spacing: 2px;
    color: #ffffff;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
}

.spotlight-header .section-subtitle {
    font-size: 1rem;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 3px;
}

.spotlight-grid {
    display: grid;
    /* 3 Columns: Card | Divider | Card */
    grid-template-columns: 1fr 120px 1fr;
    gap: 1rem;
    max-width: 900px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
    align-items: center;
}

/* --- CENTER COLUMN (ARROWS) --- */
.spotlight-center-column {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    height: 100%;
}

.center-logo {
    width: 40px;
    height: auto;
    opacity: 0.3;
}

.arrow-container {
    width: 50px;
    height: 50px;
    animation: floatArrow 3s ease-in-out infinite;
}

.rap-arrow svg {
    filter: drop-shadow(0 0 5px rgba(207, 0, 0, 0.5));
}

.beat-arrow svg {
    filter: drop-shadow(0 0 5px rgba(0, 168, 255, 0.5));
}

/* --- REDESIGNED SILVER CARDS WITH ANIMATED BORDER --- */
.spotlight-card {
    position: relative;
    border-radius: 16px;
    padding: 2rem;
    text-align: center;
    overflow: hidden; /* Contains the pseudo-elements */
    
    /* Static State Border (will be overridden on hover) */
    border: 1px solid rgba(255, 255, 255, 0.1);
    
    /* Initial State */
    opacity: 0; 
    transform: translateY(30px);
    transition: transform 0.3s ease, border-color 0.3s ease;
    z-index: 1; /* Stacking context */
}

.spotlight-card.in-view {
    opacity: 1;
    transform: translateY(0);
    animation: fadeInUp 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}

/* 1. The Animated Gradient (Hidden by default) */
.spotlight-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 200%;
    height: 100%;
    /* Red to Blue to Red Gradient */
    background: linear-gradient(90deg, #cf0000, #3b82f6, #cf0000);
    background-size: 50% 100%;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1; /* Behind Inner Card */
    animation: background-pan 4s linear infinite;
}

/* 2. The Inner Card Background (Always Visible) */
.spotlight-card::after {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    right: 2px;
    bottom: 2px;
    
    /* <--- EDIT THIS LINE TO CHANGE CARD COLOR */
    background: linear-gradient(145deg, #000, #0f0f0f, #000); 
    
    border-radius: 14px; /* Slightly smaller than parent to fit */
    z-index: 2;
    transition: background-color 0.3s ease;
}

/* Hover Interactions */
.spotlight-card:hover {
    transform: translateY(-5px);
    border-color: transparent; /* Hide static border so gradient shows */
}

.spotlight-card:hover::before {
    opacity: 1; /* Show Animated Gradient */
}

/* Hub-Specific Static Borders (Disappear on hover) */
.spotlight-card.rap-spotlight {
    border-bottom: 4px solid #cf0000;
}

.spotlight-card.beat-spotlight {
    border-bottom: 4px solid #00a8ff;
}

/* --- CONTENT --- */
.spotlight-content {
    position: relative;
    z-index: 3; /* Must sit on top of ::after */
}

/* Badge */
.spotlight-badge {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 800;
    text-transform: uppercase;
    padding: 0.3rem 0.8rem;
    border-radius: 4px;
    letter-spacing: 1px;
    margin-bottom: 1.5rem;
    background: rgba(0,0,0,0.3);
    border: 1px solid rgba(255,255,255,0.1);
    position: relative;
    z-index: 3;
}

.rap-spotlight .spotlight-badge { color: #ff4d4d; }
.beat-spotlight .spotlight-badge { color: #4dcfff; }

/* Avatar */
.spotlight-avatar-container {
    position: relative;
    width: 100px;
    height: 100px;
    margin: 0 auto 1rem;
    z-index: 3;
}

.spotlight-avatar {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background-size: cover;
    background-position: center;
    border: 3px solid #333;
    box-shadow: 0 5px 15px rgba(0,0,0,0.5);
}

.rap-spotlight .spotlight-avatar { border-color: #cf0000; }
.beat-spotlight .spotlight-avatar { border-color: #00a8ff; }

.spotlight-rank-circle {
    position: absolute;
    top: -5px;
    right: -5px;
    width: 30px;
    height: 30px;
    background: linear-gradient(135deg, #ffd700, #b8860b); /* Gold Gradient */
    color: #000;
    font-weight: 900;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    border: 2px solid #2b2b2b;
    box-shadow: 0 2px 5px rgba(0,0,0,0.3);
}

/* Text Content */
.spotlight-name {
    font-size: 1.5rem;
    font-weight: 800;
    color: #fff;
    margin-bottom: 1rem;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

.spotlight-stats {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    background: rgba(0,0,0,0.2);
    padding: 0.8rem;
    border-radius: 8px;
}

.stat-box {
    display: flex;
    flex-direction: column;
}

.stat-value {
    font-size: 1.1rem;
    font-weight: 700;
    color: #eee;
}

.stat-label {
    font-size: 0.7rem;
    color: #aaa;
    text-transform: uppercase;
}

.stat-divider {
    width: 1px;
    height: 25px;
    background: rgba(255,255,255,0.1);
}

/* CTA Buttons */
.spotlight-btn {
    display: block;
    width: 100%;
    padding: 0.8rem 0;
    border-radius: 6px;
    font-weight: 800;
    text-transform: uppercase;
    font-size: 0.85rem;
    text-decoration: none;
    transition: all 0.2s ease;
    background: #ffffff; 
    color: #111;
    border: none;
    box-shadow: 0 4px 0 rgba(200,200,200,1);
    position: relative;
    z-index: 3;
}

.spotlight-btn:hover {
    transform: translateY(2px);
    box-shadow: 0 2px 0 rgba(200,200,200,1);
    background: #f0f0f0;
}

.spotlight-btn:active {
    transform: translateY(4px);
    box-shadow: none;
}

/* Animations */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes floatArrow {
    0%, 100% { transform: translateX(0); }
    50% { transform: translateX(5px); } 
}

@keyframes background-pan {
    0% { background-position: 0% center; }
    100% { background-position: -200% center; }
}

.beat-arrow {
    animation-direction: reverse; 
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .spotlight-grid {
        grid-template-columns: 1fr;
        max-width: 400px;
    }
    
    .spotlight-center-column {
        flex-direction: row; 
        padding: 1rem 0;
    }
    
    .arrow-container svg {
        transform: rotate(90deg);
    }
}