/**
 * 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: var(--hmvip-accent, #e72b6c); /* 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;
    }
}






/* 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;
}

/* Título da seção colapsada "Destaques" (total de cards < 6) */
.spotlight-section-title {
    font-size: 20px;
    font-weight: 700;
    margin: 0 0 12px;
    color: var(--spot-text);
}

/* Empty state convidando creators fundadores */
.spotlight-empty-state {
    width: 100%;
    padding: 48px 24px;
    text-align: center;
    background: rgba(255, 255, 255, 0.03);
    border: 1px dashed rgba(255, 255, 255, 0.12);
    border-radius: 16px;
    grid-column: 1 / -1;
}

.spotlight-empty-state__icon {
    font-size: 40px;
    margin-bottom: 12px;
    line-height: 1;
}

.spotlight-empty-state__title {
    font-size: 20px;
    font-weight: 700;
    margin: 0 0 8px;
    color: var(--spot-gold);
}

.spotlight-empty-state__text {
    font-size: 14px;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.75);
    max-width: 480px;
    margin: 0 auto 20px;
}

.spotlight-empty-state__cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    border-radius: 8px;
    background: linear-gradient(135deg, var(--spot-accent), #b32066);
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    transition: transform 0.2s, box-shadow 0.2s;
}

.spotlight-empty-state__cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(179, 32, 102, 0.35);
}

/* Light mode adjustments (BuddyBoss / landing unified theme) */
html[data-bx-mode="light"] .spotlight-empty-state {
    background: rgba(0, 0, 0, 0.03);
    border-color: rgba(0, 0, 0, 0.1);
}

html[data-bx-mode="light"] .spotlight-empty-state__title {
    color: var(--spot-gold-dark);
}

html[data-bx-mode="light"] .spotlight-empty-state__text {
    color: rgba(0, 0, 0, 0.7);
}

html[data-bx-mode="light"] .spotlight-section-title {
    color: #1a1a1a;
}

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

/* ==========================================================================
   Spotlight Template — Card Surface & Dark/Light Tokens (Fase 2)
   Alinha o container do Spotlight com o design system de caixas do Creator Studio.
   ========================================================================== */

:root {
    --cs-surface: var(--color-theme-white-box, #191919);
    --cs-surface-elevated: var(--global-body-lightcolor, #222222);
    --cs-surface-muted: rgba(255, 255, 255, 0.05);
    --cs-border: var(--global-border-color, rgba(255, 255, 255, 0.1));
    --cs-border-strong: rgba(255, 255, 255, 0.16);
    --cs-text: var(--global-font-color, #e5e7eb);
    --cs-text-heading: #ffffff;
    --cs-text-muted: #888888;
    --cs-accent: var(--color-theme-primary, var(--hmvip-accent, #e72b6c));
    --cs-accent-contrast: #ffffff;
    --cs-radius-lg: 14px;
    --cs-radius-md: 10px;
    --cs-radius-sm: 6px;
    --cs-radius-full: 9999px;
    --cs-space-1: 4px;
    --cs-space-2: 8px;
    --cs-space-3: 12px;
    --cs-space-4: 16px;
    --cs-space-5: 20px;
    --cs-space-6: 24px;
    --cs-shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.1);
    --cs-shadow-md: 0 4px 12px rgba(0, 0, 0, 0.12);
}

html[data-bx-mode="light"],
body.buddyx-light-mode {
    --cs-surface: #ffffff;
    --cs-surface-elevated: #f9fafb;
    --cs-surface-muted: #f3f4f6;
    --cs-border: #e5e7eb;
    --cs-border-strong: #d1d5db;
    --cs-text: #1f2937;
    --cs-text-heading: #111827;
    --cs-text-muted: #6b7280;
}

/* Container em caixa */
.spotlight-surface {
    background: var(--cs-surface);
    border: 1px solid var(--cs-border);
    border-radius: var(--cs-radius-lg);
    padding: var(--cs-space-4);
    box-shadow: var(--cs-shadow-sm);
}

@media (min-width: 768px) {
    .spotlight-surface {
        padding: var(--cs-space-6);
    }
}

.spotlight-header-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--cs-space-4);
}

.spotlight-header-row .spotlight-live-indicator {
    margin: 0;
}

/* Tabs */
.spotlight-tabs {
    display: flex;
    gap: var(--cs-space-1);
    margin-bottom: var(--cs-space-4);
    border-bottom: 1px solid var(--cs-border);
    padding-bottom: var(--cs-space-2);
    justify-content: center;
    overflow-x: auto;
}

.sp-tab-btn {
    background: transparent;
    border: none;
    color: var(--cs-text-muted);
    font-size: 14px;
    font-weight: 600;
    padding: var(--cs-space-2) var(--cs-space-3);
    border-radius: var(--cs-radius-sm);
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
}

.sp-tab-btn:hover {
    color: var(--cs-text-heading);
    background: var(--cs-surface-muted);
}

.sp-tab-btn.active {
    color: var(--cs-accent);
    background: color-mix(in srgb, var(--cs-accent) 8%, transparent);
}

/* Grids de cards */
.spotlight-grid {
    display: none;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    list-style: none;
    padding: 0;
    margin: 0;
    align-content: start;
}

.spotlight-grid.active {
    display: grid;
}

@media (min-width: 600px) {
    .spotlight-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (min-width: 992px) {
    .spotlight-grid { grid-template-columns: repeat(4, 1fr); }
}

@media (min-width: 1200px) {
    .spotlight-grid { grid-template-columns: repeat(5, 1fr); }
}

/* Badges de tier */
.spotlight-card .tier-badge {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    padding: 3px 9px;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    color: #fff;
}

.spotlight-card .tier-badge--auction { background: linear-gradient(135deg, #7c3aed, #4f46e5); }
.spotlight-card .tier-badge--vip { background: linear-gradient(135deg, #FFD700, #FFA500); color: #1a1a2e; }
.spotlight-card .tier-badge--popular { background: linear-gradient(135deg, #ff5722, var(--hmvip-accent, #e72b6c)); }

/* Selo de identidade de gênero */
.spotlight-card .spotlight-card__gender {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    line-height: 1;
    white-space: nowrap;
    padding: 2px 8px;
    border-radius: var(--cs-radius-full);
    font-size: 10.5px;
    font-weight: 600;
    vertical-align: middle;
    margin-left: 6px;
    background: rgba(231, 43, 108, 0.18);
    border: 1px solid rgba(231, 43, 108, 0.4);
    color: #ff7eb0;
}

.spotlight-card .spotlight-card__gender--201 { background: rgba(33, 150, 243, 0.18); border-color: rgba(33, 150, 243, 0.4); color: #7ec3ff; }
.spotlight-card .spotlight-card__gender--202 { background: rgba(156, 39, 176, 0.18); border-color: rgba(156, 39, 176, 0.4); color: #d38fe8; }

/* Estilo PORTRAIT (3:4 full-bleed) */
.spotlight-card--portrait { cursor: pointer; }

.spotlight-card--portrait .spotlight-card__link {
    position: relative;
    display: block;
    width: 100%;
    aspect-ratio: 3/4;
    border-radius: 12px;
    overflow: hidden;
    background: var(--cs-surface-elevated, #1a1a2e);
    border: 1px solid var(--cs-border);
    transition: transform 0.2s, box-shadow 0.2s;
    text-decoration: none;
}

.spotlight-card--portrait .spotlight-card__link:hover {
    transform: translateY(-2px);
    box-shadow: var(--cs-shadow-md);
}

.spotlight-card--portrait .spotlight-card__img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.spotlight-card--portrait .spotlight-card__tier {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 2;
}

.spotlight-card--portrait .spotlight-card__overlay {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2;
    padding: 40px 14px 12px;
    background: linear-gradient(to top, rgba(10, 10, 16, 0.96) 0%, rgba(10, 10, 16, 0.75) 55%, rgba(10, 10, 16, 0) 100%);
}

.spotlight-card--portrait .spotlight-card__name {
    margin: 0 0 4px;
    font-size: 16px;
    font-weight: 700;
    color: #fff;
    line-height: 1.25;
}

.spotlight-card--portrait .spotlight-card__bio {
    margin: 0 0 6px;
    font-size: 12.5px;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.spotlight-card--portrait .spotlight-card__meta {
    margin: 0 0 4px;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.75);
    line-height: 1.5;
}

.spotlight-card--portrait .spotlight-card__price {
    margin: 0;
    font-size: 12.5px;
    font-weight: 700;
    color: #ff5c8a;
}

.spotlight-card--portrait .spotlight-card__new {
    display: inline-block;
    background: linear-gradient(135deg, var(--hmvip-accent, #e72b6c), #ff5722);
    color: #fff;
    font-size: 11px;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 4px;
    margin-top: 4px;
}

.spotlight-card--portrait .presence {
    color: #4caf50;
    font-weight: 600;
}

/* Estilo CLASSIC (capa 16:9 + bloco de info) */
.spotlight-card--classic { cursor: pointer; }

.spotlight-card--classic .list-wrap {
    background: var(--cs-surface-elevated, #1a1a2e);
    border: 1px solid var(--cs-border);
    border-radius: 12px;
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
    transition: transform 0.2s, box-shadow 0.2s;
}

.spotlight-card--classic .list-wrap:hover {
    transform: translateY(-2px);
    box-shadow: var(--cs-shadow-md);
}

.spotlight-card--classic .bs-group-cover {
    position: relative;
    width: 100%;
    padding-top: 56.25%;
    overflow: hidden;
    background: var(--cs-surface, #2a2a3e);
}

.spotlight-card--classic .bs-group-cover a {
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
}

.spotlight-card--classic .bs-group-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.spotlight-card--classic .item { padding: 16px 16px 8px; flex: 1; }
.spotlight-card--classic .list-title { margin: 0 0 6px; font-size: 16px; font-weight: 600; line-height: 1.3; }
.spotlight-card--classic .list-title a { color: var(--cs-text-heading, #fff); text-decoration: none; }
.spotlight-card--classic .item-meta-wrap { margin: 0; }
.spotlight-card--classic .item-meta { margin: 0 0 4px; font-size: 13px; color: var(--cs-text-muted, rgba(255, 255, 255, 0.6)); line-height: 1.4; }
.spotlight-card--classic .card-presence { display: inline-block; margin-left: 6px; font-size: 11px; font-weight: 600; color: #4caf50; }
.spotlight-card--classic .card-bio { margin: 0 0 8px; font-size: 13px; color: var(--cs-text, rgba(255, 255, 255, 0.75)); line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.spotlight-card--classic .new-badge { display: inline-block; background: linear-gradient(135deg, var(--hmvip-accent, #e72b6c), #ff5722); color: #fff; font-size: 11px; font-weight: 600; padding: 2px 8px; border-radius: 4px; }
.spotlight-card--classic .card-price { margin: 4px 0 0; font-size: 13px; font-weight: 700; color: #ff5c8a; }
.spotlight-card--classic .group-footer-wrap { display: none; }

.spotlight-skeleton-loading { color: var(--cs-text-muted, #888); text-align: center; padding: 40px; grid-column: 1 / -1; }

/* Light mode adjustments para o novo surface e tabs */
html[data-bx-mode="light"] .spotlight-surface,
body.buddyx-light-mode .spotlight-surface {
    background: var(--cs-surface);
    border-color: var(--cs-border);
}

html[data-bx-mode="light"] .spotlight-tabs,
body.buddyx-light-mode .spotlight-tabs {
    border-bottom-color: var(--cs-border);
}

html[data-bx-mode="light"] .sp-tab-btn,
body.buddyx-light-mode .sp-tab-btn {
    color: var(--cs-text-muted);
}

html[data-bx-mode="light"] .sp-tab-btn:hover,
body.buddyx-light-mode .sp-tab-btn:hover {
    color: var(--cs-text-heading);
    background: var(--cs-surface-muted);
}

html[data-bx-mode="light"] .sp-tab-btn.active,
body.buddyx-light-mode .sp-tab-btn.active {
    color: var(--cs-accent);
    background: color-mix(in srgb, var(--cs-accent) 8%, transparent);
}

html[data-bx-mode="light"] .spotlight-section-title,
body.buddyx-light-mode .spotlight-section-title {
    color: var(--cs-text-heading);
}

html[data-bx-mode="light"] .spotlight-card--classic .list-wrap,
body.buddyx-light-mode .spotlight-card--classic .list-wrap {
    background: var(--cs-surface-elevated);
    border-color: var(--cs-border);
}

html[data-bx-mode="light"] .spotlight-card--portrait .spotlight-card__link,
body.buddyx-light-mode .spotlight-card--portrait .spotlight-card__link {
    background: var(--cs-surface-elevated);
    border-color: var(--cs-border);
}
