/**
 * HMVIP Spotlight - Base Theme (Frontend & Backend preview)
 * Nude-Free, elegante, Glassmorphism elements.
 */

:root {
    --spot-gold: #FFD700;
    --spot-gold-dark: #B8860B;
    --spot-bg-dark: #121212;
    --spot-bg-card: #1f1f22;
    --spot-text: #ffffff;
    --spot-accent: #e91e63; /* Cor HMVIP pink/rosa base */
}

/* Container Grid Principal */
.hmvip-spotlight-container {
    width: 100%;
    margin: 20px 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    color: var(--spot-text);
}

/* Header */
.spotlight-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 15px;
}

.spotlight-header h2 {
    font-size: 22px;
    font-weight: 700;
    margin: 0;
    background: linear-gradient(135deg, var(--spot-gold), #fff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Inidcador Pulse Ao Vivo */
.spotlight-live-indicator {
    display: flex;
    align-items: center;
    font-size: 11px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #ff3b3b;
    background: rgba(255, 59, 59, 0.1);
    padding: 4px 10px;
    border-radius: 12px;
}

.pulse {
    display: block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #ff3b3b;
    margin-right: 6px;
    box-shadow: 0 0 0 rgba(255, 59, 59, 0.4);
    animation: pulsered 2s infinite;
}

@keyframes pulsered {
    0% {
        -moz-box-shadow: 0 0 0 0 rgba(255, 59, 59, 0.4);
        box-shadow: 0 0 0 0 rgba(255, 59, 59, 0.4);
    }
    70% {
        -moz-box-shadow: 0 0 0 6px rgba(255, 59, 59, 0);
        box-shadow: 0 0 0 6px rgba(255, 59, 59, 0);
    }
    100% {
        -moz-box-shadow: 0 0 0 0 rgba(255, 59, 59, 0);
        box-shadow: 0 0 0 0 rgba(255, 59, 59, 0);
    }
}

/* Grid System Responsivo (Horiz Scroll no mobile, Grid em Desktop) */
.spotlight-grid {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 15px;
    padding-bottom: 10px;
    -webkit-overflow-scrolling: touch;
}

/* Ocultar barra de rolagem mas manter função */
.spotlight-grid::-webkit-scrollbar {
    height: 4px;
}
.spotlight-grid::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 4px;
}
.spotlight-grid::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 4px;
}

/* Opcional: Desktop Grid instead of scroll */
@media (min-width: 1024px) {
    .spotlight-grid {
        display: grid;
        grid-template-columns: repeat(5, 1fr);
        overflow-x: visible;
        gap: 20px;
    }
}

/* Card Individual (Base em proporção retrato para capas estilo HMVIP/BuddyBoss) */
.spotlight-card {
    flex: 0 0 200px; /* Mobile width */
    scroll-snap-align: start;
    position: relative;
    border-radius: 14px;
    overflow: hidden;
    background: var(--spot-bg-card);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-decoration: none !important;
    display: flex;
    flex-direction: column;
    aspect-ratio: 3/4;
    border: 1px solid rgba(255,255,255,0.05);
}

.spotlight-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.4);
    border-color: rgba(255,255,255,0.2);
}

/* Imagem Cover Segura (Nude-Free da BuddyBoss DB) */
.spotlight-cover {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
}

/* Gradiente Escuro p/ Leitura do texto */
.spotlight-cover::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60%;
    background: linear-gradient(to top, rgba(18,18,18,0.95) 0%, rgba(18,18,18,0) 100%);
}

/* Posição no Top 10 */
.spotlight-position {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 3;
    background: rgba(0,0,0,0.6);
    backdrop-filter: blur(4px);
    color: #fff;
    padding: 4px 10px;
    border-radius: 20px;
    font-weight: 800;
    font-size: 14px;
    border: 1px solid rgba(255,255,255,0.1);
}

/* Coroa Especial para o Top 1, 2 e 3 */
.spotlight-card-pos-1 {
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.3);
    border: 1px solid rgba(255, 215, 0, 0.5);
}
.spotlight-card-pos-1 .spotlight-position { background: var(--spot-gold); color: #000; border:none; }

.spotlight-card-pos-2 .spotlight-position { background: silver; color: #000; border:none; }
.spotlight-card-pos-3 .spotlight-position { background: #cd7f32; color: #fff; border:none; }

/* Informações base do usuário */
.spotlight-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 15px;
    z-index: 3;
}

.spotlight-name {
    font-size: 16px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: flex;
    align-items: center;
}

.spotlight-username {
    font-size: 13px;
    color: #aaa;
}

/* Selinho KYC nativo */
.spotlight-badge-kyc {
    background: #0088cc;
    color: #fff;
    border-radius: 50%;
    width: 14px;
    height: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 9px;
    margin-left: 5px;
    flex-shrink: 0;
}

/* Skeleton Loading Status Inicial */
.spotlight-skeleton-loading {
    width: 100%;
    padding: 40px;
    text-align: center;
    color: #666;
    background: rgba(255,255,255,0.02);
    border-radius: 14px;
    animation: skeleton-pulse 1.5s infinite;
}

.spotlight-empty {
    width: 100%;
    padding: 40px;
    text-align: center;
    color: #999;
}

@keyframes skeleton-pulse {
    0% { opacity: 0.6; }
    50% { opacity: 1; }
    100% { opacity: 0.6; }
}
