﻿/* SBLM Playground â€” 3D interativo com paleta Spotify (area de testes) */

body.theme-sblm {
    --pg-bg: #121212;
    --pg-bg-2: #181818;
    --pg-elevated: #282828;
    --pg-surface: rgba(255, 255, 255, 0.06);
    --pg-surface-2: rgba(255, 255, 255, 0.1);
    --pg-border: rgba(255, 255, 255, 0.1);
    --pg-text: #ffffff;
    --pg-muted: #b3b3b3;
    --pg-muted-dark: #6a6a6a;
    --pg-green: #1ed760;
    --pg-green-hover: #1fdf64;
    --pg-green-soft: rgba(30, 215, 96, 0.14);
    --pg-accent: var(--pg-green);
    --pg-accent-2: var(--pg-green-hover);
    --pg-radius: 16px;
    --pg-radius-sm: 8px;
    --pg-font-display: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
    --pg-font-body: var(--pg-font-display);
    --pg-perspective: 1200px;
    --pg-shadow-glow: 0 0 36px rgba(30, 215, 96, 0.2), 0 12px 48px rgba(0, 0, 0, 0.45);
    --bg: var(--pg-bg);
    --bg-elevated: var(--pg-bg-2);
    --surface: var(--pg-surface);
    --border: var(--pg-border);
    --text: var(--pg-text);
    --text-muted: var(--pg-muted);
    --accent: var(--pg-green);
    --accent-hover: var(--pg-green-hover);
    --accent-soft: var(--pg-green-soft);
    --radius: var(--pg-radius);
    --radius-sm: var(--pg-radius-sm);
    --font-display: var(--pg-font-display);
    --font-body: var(--pg-font-body);
    --shadow: var(--pg-shadow-glow);
    font-family: var(--pg-font-body);
    letter-spacing: -0.02em;
    background: var(--pg-bg);
    background-image:
        linear-gradient(180deg, #1e1e1e 0%, var(--pg-bg) 36%),
        radial-gradient(ellipse 85% 55% at 85% -5%, rgba(30, 215, 96, 0.1), transparent 52%),
        radial-gradient(ellipse 60% 45% at 5% 100%, rgba(255, 255, 255, 0.04), transparent 48%);
    overflow-x: hidden;
}

/* Cursor customizado: so esconde o nativo quando o JS criou .pg-cursor (classe pg-cursor-active) */
body.theme-sblm.pg-cursor-active,
body.theme-sblm.pg-cursor-active * {
    cursor: none;
}

body.theme-sblm.pg-cursor-active a,
body.theme-sblm.pg-cursor-active button,
body.theme-sblm.pg-cursor-active input {
    cursor: none;
}

/* Fundo animado (funciona sem JavaScript) */
body.theme-sblm.page-sblm-live::before {
    content: "";
    position: fixed;
    inset: -20%;
    z-index: 0;
    pointer-events: none;
    background:
        radial-gradient(ellipse 50% 40% at 20% 30%, rgba(30, 215, 96, 0.14), transparent 55%),
        radial-gradient(ellipse 45% 35% at 80% 70%, rgba(30, 215, 96, 0.08), transparent 50%);
    animation: pg-bg-drift 18s ease-in-out infinite alternate;
}

@keyframes pg-bg-drift {
    0% { transform: translate3d(0, 0, 0) scale(1); }
    100% { transform: translate3d(2%, -3%, 0) scale(1.06); }
}

/* Canvas + decoraÃ§Ãµes (injetadas pelo JS) */
#pg-canvas-bg {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    opacity: 0.65;
}

.pg-scene {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
    perspective: var(--pg-perspective);
}

.pg-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(1px);
    opacity: 0.55;
    animation: pg-orb-float 12s ease-in-out infinite;
    will-change: transform;
}

.pg-orb--1 {
    width: clamp(120px, 18vw, 220px);
    height: clamp(120px, 18vw, 220px);
    top: 8%;
    left: 6%;
    background: radial-gradient(circle at 30% 30%, rgba(30, 215, 96, 0.55), transparent 72%);
    animation-delay: 0s;
}

.pg-orb--2 {
    width: clamp(90px, 14vw, 180px);
    height: clamp(90px, 14vw, 180px);
    top: 55%;
    right: 8%;
    background: radial-gradient(circle at 50% 50%, rgba(40, 40, 40, 0.9), transparent 72%);
    animation-delay: -4s;
}

.pg-orb--3 {
    width: clamp(70px, 10vw, 140px);
    height: clamp(70px, 10vw, 140px);
    bottom: 12%;
    left: 22%;
    background: radial-gradient(circle at 40% 40%, rgba(30, 215, 96, 0.35), transparent 70%);
    animation-delay: -7s;
}

.pg-shape {
    position: absolute;
    border: 2px solid rgba(255, 255, 255, 0.08);
    background: linear-gradient(135deg, rgba(30, 215, 96, 0.06), rgba(255, 255, 255, 0.03));
    backdrop-filter: blur(8px);
    animation: pg-shape-spin 24s linear infinite;
}

.pg-shape--cube {
    width: 48px;
    height: 48px;
    top: 22%;
    right: 18%;
    border-radius: 10px;
    transform: rotateX(18deg) rotateY(32deg);
}

.pg-shape--ring {
    width: 72px;
    height: 72px;
    bottom: 28%;
    right: 32%;
    border-radius: 50%;
    border-width: 3px;
    border-color: rgba(30, 215, 96, 0.35);
    animation-duration: 18s;
    animation-direction: reverse;
}

@keyframes pg-orb-float {
    0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
    33% { transform: translate3d(24px, -18px, 40px) scale(1.08); }
    66% { transform: translate3d(-16px, 12px, -20px) scale(0.95); }
}

@keyframes pg-shape-spin {
    from { transform: rotateX(20deg) rotateY(0deg) rotateZ(0deg); }
    to { transform: rotateX(20deg) rotateY(360deg) rotateZ(12deg); }
}

/* Banner Ã¡rea de testes */
.pg-test-banner {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 200;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0.5rem 1rem;
    padding: 0.45rem 1rem;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #000000;
    background: linear-gradient(90deg, var(--pg-green), var(--pg-green-hover), #3de476);
    background-size: 200% 100%;
    animation: pg-banner-shift 8s ease infinite;
    box-shadow: 0 4px 24px rgba(30, 215, 96, 0.35);
}

.pg-test-banner a {
    color: #000000;
    text-decoration: underline;
    text-underline-offset: 2px;
}

@keyframes pg-banner-shift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

body.theme-sblm.has-pg-banner {
    padding-top: 2.35rem;
}

/* Indicador visual: Playground carregou o CSS correto */
body.theme-sblm.page-sblm-live .pg-test-banner::before {
    content: "â— ";
    color: #000;
}

body.theme-sblm.has-pg-banner .site-header,
body.theme-sblm.has-pg-banner .sistema-header {
    top: 2.35rem;
}

/* Cursor customizado */
.pg-cursor {
    position: fixed;
    width: 14px;
    height: 14px;
    margin: -7px 0 0 -7px;
    border-radius: 50%;
    background: var(--pg-green);
    box-shadow: 0 0 16px rgba(30, 215, 96, 0.65), 0 0 32px rgba(30, 215, 96, 0.25);
    pointer-events: none;
    z-index: 99999;
    mix-blend-mode: normal;
    transition: transform 0.12s ease, width 0.2s ease, height 0.2s ease;
}

.pg-cursor.is-hover {
    width: 36px;
    height: 36px;
    margin: -18px 0 0 -18px;
    background: var(--pg-green-hover);
}

.pg-cursor-trail {
    position: fixed;
    width: 6px;
    height: 6px;
    margin: -3px 0 0 -3px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.75);
    pointer-events: none;
    z-index: 99998;
    opacity: 0.6;
    transition: opacity 0.4s ease;
}

/* Nav flutuante playground */
.pg-dock {
    position: fixed;
    bottom: 1.25rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 150;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.35rem;
    max-width: min(96vw, 720px);
    padding: 0.5rem 0.65rem;
    border-radius: 999px;
    background: rgba(24, 24, 24, 0.92);
    border: 1px solid var(--pg-border);
    backdrop-filter: blur(20px);
    box-shadow: var(--pg-shadow-glow), inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.pg-dock a {
    padding: 0.4rem 0.85rem;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 700;
    text-decoration: none;
    color: var(--pg-muted);
    transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1), color 0.2s, background 0.2s;
}

.pg-dock a:hover,
.pg-dock a[aria-current="page"] {
    color: var(--pg-green);
    background: var(--pg-green-soft);
    transform: translateY(-3px) scale(1.05);
}

/* ConteÃºdo acima do fundo */
body.theme-sblm .site-header,
body.theme-sblm main,
body.theme-sblm .site-footer,
body.theme-sblm .about-main,
body.theme-sblm .sistema-header,
body.theme-sblm .sistema-main,
body.theme-sblm .admin-layout,
body.theme-sblm .login-wrap {
    position: relative;
    z-index: 2;
}

body.theme-sblm .site-header,
body.theme-sblm .sistema-header {
    z-index: 60;
}

body.theme-sblm .site-header {
    background: rgba(0, 0, 0, 0.78);
    border-bottom-color: rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(16px);
    transition: box-shadow 0.35s ease, transform 0.35s ease;
}

body.theme-sblm .site-header.is-scrolled {
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.45);
}

body.theme-sblm .site-nav a:hover {
    color: var(--pg-text);
    text-shadow: none;
}

body.theme-sblm .nav-secondary {
    background: var(--pg-text) !important;
    color: #000 !important;
    border: none !important;
    box-shadow: none;
}

body.theme-sblm .nav-secondary:hover {
    background: var(--pg-green) !important;
    color: #000 !important;
}

body.theme-sblm h1,
body.theme-sblm h2,
body.theme-sblm h3 {
    font-family: var(--pg-font-display);
    letter-spacing: -0.03em;
}

/* Remove brilho dourado do hero (styles.css) */
body.theme-sblm .hero-inner {
    background: #181818;
    border-color: rgba(255, 255, 255, 0.08);
}

body.theme-sblm .hero-inner::after {
    background: radial-gradient(ellipse 70% 55% at 15% 20%, rgba(30, 215, 96, 0.28), transparent 70%);
    mix-blend-mode: screen;
    opacity: 0.9;
}

body.theme-sblm .hero-eyebrow {
    color: var(--pg-green);
}

body.theme-sblm .hero-content {
    background: rgba(24, 24, 24, 0.88);
    border-color: rgba(255, 255, 255, 0.08);
}

body.theme-sblm .card--featured {
    border-color: rgba(30, 215, 96, 0.45);
    box-shadow: 0 0 0 1px rgba(30, 215, 96, 0.2), var(--pg-shadow-glow);
}

body.theme-sblm .card-featured-badge {
    background: var(--pg-green);
    color: #000;
}

body.theme-sblm .releases h2,
body.theme-sblm .contact h2 {
    color: var(--pg-text);
}

body.theme-sblm .hero {
    perspective: var(--pg-perspective);
}

body.theme-sblm .hero-inner {
    transform-style: preserve-3d;
}

/* page-spotify-artists + playground: forca tema escuro no corpo inteiro */
body.theme-sblm.page-spotify-artists {
    background: var(--sp-base, #121212);
    background-image: linear-gradient(180deg, #1e1e1e 0%, #121212 32%);
    color: var(--sp-text, #fff);
}

body.theme-sblm .hero-photo {
    transform-style: preserve-3d;
    transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    border-radius: var(--pg-radius);
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.08);
}

body.theme-sblm .hero-photo:hover {
    transform: translateZ(40px) rotateY(-6deg) rotateX(4deg) scale(1.04);
    box-shadow: var(--pg-shadow-glow);
}

body.theme-sblm .hero-content h1 {
    background: linear-gradient(120deg, #fff 0%, var(--pg-green) 85%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    filter: drop-shadow(0 0 24px rgba(30, 215, 96, 0.2));
}

body.theme-sblm .btn-primary {
    background: var(--pg-green);
    color: #000;
    border: none;
    font-weight: 800;
    box-shadow: 0 8px 28px rgba(30, 215, 96, 0.35);
    transform-style: preserve-3d;
    transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.25s ease, background 0.2s;
}

body.theme-sblm .btn-primary:hover {
    background: var(--pg-green-hover);
    transform: translateY(-4px) scale(1.03) rotateX(8deg);
    box-shadow: 0 16px 40px rgba(30, 215, 96, 0.45);
}

body.theme-sblm .btn-ghost {
    border-color: rgba(255, 255, 255, 0.25);
    color: var(--pg-text);
    backdrop-filter: blur(12px);
}

body.theme-sblm .btn-ghost:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.4);
    color: var(--pg-text);
    transform: translateY(-2px);
}

/* Cards 3D */
body.theme-sblm .card,
body.theme-sblm .pg-tilt {
    transform-style: preserve-3d;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02));
    border: 1px solid var(--pg-border);
    backdrop-filter: blur(16px);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.4);
    transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.35s ease;
}

body.theme-sblm .card:hover {
    box-shadow: var(--pg-shadow-glow);
}

body.theme-sblm .card-spotify {
    background: var(--pg-green);
    color: #000;
    font-weight: 800;
}

body.theme-sblm .card-spotify:hover {
    background: var(--pg-green-hover);
}

/* Spotify / artistas embed â€” alinhado ao tema */
body.theme-sblm {
    --sp-base: transparent;
    --sp-elevated: rgba(255, 255, 255, 0.05);
    --sp-elevated-2: rgba(255, 255, 255, 0.08);
    --sp-text: var(--pg-text);
    --sp-sub: var(--pg-muted);
    --sp-green: var(--pg-green);
    --sp-green-hover: var(--pg-green-hover);
}

body.theme-sblm .home-artists-embed {
    background: transparent;
}

body.theme-sblm .spotify-hero {
    border-radius: var(--pg-radius);
    overflow: hidden;
    border: 1px solid var(--pg-border);
    box-shadow: var(--pg-shadow-glow);
}

body.theme-sblm .artist-hero-tile {
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

body.theme-sblm .artist-hero-tile:hover {
    transform: translateZ(30px) scale(1.06) rotate(-2deg);
    z-index: 2;
}

body.theme-sblm .spotify-artist-card {
    background: linear-gradient(160deg, rgba(40, 40, 40, 0.65), rgba(24, 24, 24, 0.85));
    border: 1px solid var(--pg-border);
    border-radius: var(--pg-radius);
    backdrop-filter: blur(20px);
    transform-style: preserve-3d;
}

body.theme-sblm .spotify-artist-card:hover {
    border-color: rgba(30, 215, 96, 0.35);
    box-shadow: var(--pg-shadow-glow);
}

body.theme-sblm .spotify-btn--primary {
    background: var(--pg-green);
    color: #000;
}

body.theme-sblm .spotify-btn--primary:hover {
    background: var(--pg-green-hover);
    color: #000;
}

body.theme-sblm .spotify-btn--outline {
    border-color: rgba(255, 255, 255, 0.3);
    color: var(--pg-text);
}

body.theme-sblm .spotify-btn--outline:hover {
    border-color: var(--pg-text);
    color: var(--pg-text);
}

body.theme-sblm .spotify-cover-art {
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.45s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5);
}

body.theme-sblm .spotify-cover-link:hover .spotify-cover-art {
    transform: translateY(-8px) rotateY(-12deg) scale(1.05);
    box-shadow: var(--pg-shadow-glow);
}

body.theme-sblm .site-footer {
    border-top-color: rgba(255, 255, 255, 0.06);
    background: rgba(18, 18, 18, 0.92);
}

/* About page */
body.theme-sblm.about-page .about-hero,
body.theme-sblm.about-page .about-story-card,
body.theme-sblm.about-page .founder-card,
body.theme-sblm.about-page .proof-card,
body.theme-sblm.about-page .service-card {
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.02));
    border: 1px solid var(--pg-border);
    border-radius: var(--pg-radius);
    backdrop-filter: blur(18px);
    transform-style: preserve-3d;
}

/* Portfolios — card acima do canvas 3D */
body.theme-sblm.page-portfolio .pf-wrap {
    position: relative;
    z-index: 2;
}

body.theme-sblm.page-portfolio .pf-card.pg-tilt {
    will-change: transform;
}

body.theme-sblm.page-portfolio #pg-canvas-bg {
    opacity: 0.5;
}

body.theme-sblm.about-page .about-hero:hover,
body.theme-sblm.about-page .founder-card:hover {
    box-shadow: var(--pg-shadow-glow);
    transform: translateY(-6px) rotateX(4deg);
}

/* Ripple nos botÃµes */
.pg-ripple-host {
    position: relative;
    overflow: hidden;
}

.pg-ripple {
    position: absolute;
    border-radius: 50%;
    transform: scale(0);
    background: rgba(255, 255, 255, 0.45);
    animation: pg-ripple 0.65s ease-out forwards;
    pointer-events: none;
}

@keyframes pg-ripple {
    to {
        transform: scale(4);
        opacity: 0;
    }
}

/* Confete */
.pg-confetti {
    position: fixed;
    width: 8px;
    height: 8px;
    pointer-events: none;
    z-index: 99990;
    border-radius: 2px;
    animation: pg-confetti-fall 1.2s ease-out forwards;
}

@keyframes pg-confetti-fall {
    to {
        transform: translate(var(--pg-cx), var(--pg-cy)) rotate(720deg);
        opacity: 0;
    }
}

@media (prefers-reduced-motion: reduce), (pointer: coarse) {
    body.theme-sblm,
    body.theme-sblm.pg-cursor-active,
    body.theme-sblm.pg-cursor-active * {
        cursor: auto;
    }

    body.theme-sblm a,
    body.theme-sblm button,
    body.theme-sblm.pg-cursor-active a,
    body.theme-sblm.pg-cursor-active button {
        cursor: auto;
    }

    .pg-cursor,
    .pg-cursor-trail,
    .pg-scene,
    #pg-canvas-bg {
        display: none !important;
    }

    .pg-test-banner {
        animation: none;
    }

    body.theme-sblm .card:hover,
    body.theme-sblm .hero-photo:hover {
        transform: none;
    }
}

@media (max-width: 720px) {
    .pg-dock {
        bottom: 0.75rem;
        border-radius: var(--pg-radius);
        max-width: calc(100vw - 1rem);
    }

    body.theme-sblm.has-pg-banner .pg-dock {
        bottom: 4.5rem;
    }
}
