/* ==========================================================================
   STYLE.CSS - Base Customizada (SaaS Premium)
   Cores, Tipografia e Micro-animações (Complementando o Tailwind)
   ========================================================================== */

/* Resolvendo bug de flash (FOUC) do AlpineJS caso seja usado */
[x-cloak] { display: none !important; }

/* Configuração de Scroll e Comportamento */
html {
    scroll-behavior: smooth;
    scroll-padding-top: 5rem;
}

body {
    background-color: #050505;
    color: #e2e8f0; /* text-slate-200 */
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* Tipografia */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Poppins', sans-serif;
}

.font-body {
    font-family: 'Inter', sans-serif;
}

/* --- Scrollbar Customizada --- */
::-webkit-scrollbar {
    width: 6px;
}
::-webkit-scrollbar-track {
    background: #050505; 
}
::-webkit-scrollbar-thumb {
    background: #222; 
    border-radius: 99px;
}
::-webkit-scrollbar-thumb:hover {
    background: #D4AF37; 
}

/* --- Seleção de Texto --- */
::selection {
    background: rgba(212, 175, 55, 0.4);
    color: #fff;
}

/* --- Componentes Glassmorphism --- */

.glass-nav {
    background: rgba(5, 5, 5, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.glass-card {
    background: rgba(15, 15, 15, 0.6);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.06);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.glass-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), 0 0 15px rgba(212, 175, 55, 0.1);
    border-color: rgba(212, 175, 55, 0.3);
}

.glass-pill {
    background: rgba(212, 175, 55, 0.1);
    border: 1px solid rgba(212, 175, 55, 0.25);
    color: #D4AF37;
}

/* --- Efeitos de Gradiente e Texto --- */
.text-gradient-gold {
    background: linear-gradient(to right, #D4AF37, #FFD700);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-size: 200% auto;
    animation: textShine 4s linear infinite;
}

@keyframes textShine {
    to { background-position: 200% center; }
}

/* --- Animações Customizadas --- */
.animate-float {
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-15px); }
}

.animate-blob {
    animation: blob 8s infinite alternate;
}

@keyframes blob {
    0% { transform: translate(0px, 0px) scale(1); }
    33% { transform: translate(30px, -40px) scale(1.05); }
    66% { transform: translate(-20px, 20px) scale(0.95); }
    100% { transform: translate(0px, 0px) scale(1); }
}

/* Revelação no Scroll */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Patterns Background */
.bg-grid {
    background-size: 50px 50px;
    background-image: 
        linear-gradient(to right, rgba(255, 255, 255, 0.02) 1px, transparent 1px), 
        linear-gradient(to bottom, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
}

/* --- TMDB Marquee / Carrossel --- */
.marquee {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.05);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.02), rgba(0, 0, 0, 0.2));
    width: 100%;
}
.marquee:before, .marquee:after {
    content: "";
    position: absolute; 
    top: 0; bottom: 0; width: 80px;
    z-index: 2;
    pointer-events: none;
}
.marquee:before {
    left: 0;
    background: linear-gradient(to right, #0F0F0F, transparent);
}
.marquee:after {
    right: 0;
    background: linear-gradient(to left, #0F0F0F, transparent);
}
.marquee__track {
    display: flex;
    gap: 16px;
    padding: 16px;
    width: max-content;
    will-change: transform;
    align-items: center;
}
.marquee--ltr .marquee__track { animation: marquee-ltr 50s linear infinite; }
.marquee--rtl .marquee__track { animation: marquee-rtl 50s linear infinite; }

.marquee:hover .marquee__track {
    animation-play-state: paused;
}

@keyframes marquee-rtl { from { transform: translateX(0) } to { transform: translateX(-50%) } }
@keyframes marquee-ltr { from { transform: translateX(-50%) } to { transform: translateX(0) } }

.poster {
    width: 130px;
    aspect-ratio: 2 / 3;
    border-radius: 10px;
    overflow: hidden;
    position: relative;
    background: rgba(255,255,255,.05);
    border: 1px solid rgba(255,255,255,.1);
    box-shadow: 0 10px 20px rgba(0,0,0,.4);
    transform: translateZ(0);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}
.poster:hover {
    transform: translateY(-5px);
    border-color: rgba(212, 175, 55, 0.4);
    box-shadow: 0 10px 25px rgba(212, 175, 55, 0.15);
}
.poster img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: saturate(1.1) contrast(1.05);
}
.poster.skeleton {
    animation: skeleton-pulse 1.5s infinite ease-in-out;
}
@keyframes skeleton-pulse {
    0% { background-color: rgba(255,255,255,0.05); }
    50% { background-color: rgba(255,255,255,0.1); }
    100% { background-color: rgba(255,255,255,0.05); }
}
