/* =========================================================================
   ESPAÇO CRISTÃO - SISTEMA DE DESIGN & ESTILOS CUSTOMIZADOS
   ========================================================================= */

@layer utilities {
    .text-shadow-gold {
        text-shadow: 0 2px 10px rgba(226, 177, 60, 0.4);
    }
    .box-shadow-gold {
        box-shadow: 0 0 25px rgba(226, 177, 60, 0.25);
    }
    .text-shadow-blue {
        text-shadow: 0 2px 10px rgba(56, 189, 248, 0.4);
    }
}

body {
    background-color: #080c14; /* Azul celeste profundo e premium */
    color: #e2e8f0;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}
::-webkit-scrollbar-track {
    background: #05070a;
}
::-webkit-scrollbar-thumb {
    background: #1e293b;
    border-radius: 6px;
    border: 2px solid #05070a;
}
::-webkit-scrollbar-thumb:hover {
    background: #e2b13c; /* Dourado / Âmbar */
}

/* Ocultar barra de rolagem dos carrosséis mas manter funcionalidade */
.carousel-container {
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none; /* Firefox */
}
.carousel-container::-webkit-scrollbar {
    display: none; /* Chrome, Safari */
}

/* Transições e Animações das Views */
.view {
    min-height: 100vh;
    animation: fadeIn 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.hidden {
    display: none !important;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(12px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Gradiente do Banner Principal (Hero) */
.banner-gradient {
    background: linear-gradient(to top, #080c14 0%, rgba(8, 12, 20, 0.8) 30%, transparent 85%);
}

/* Cartão do Filme */
.movie-card {
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    transform-origin: center bottom;
    border: 1px solid rgba(30, 41, 59, 0.5);
    background-color: #0d131f;
}

.movie-card:hover {
    transform: scale(1.04) translateY(-6px);
    box-shadow: 0 12px 25px rgba(226, 177, 60, 0.15);
    border-color: rgba(226, 177, 60, 0.4);
    z-index: 20;
}

.movie-card .play-overlay {
    opacity: 0;
    transition: all 0.3s ease;
    transform: scale(0.9);
}

.movie-card:hover .play-overlay {
    opacity: 1;
    transform: scale(1);
}

.movie-card .card-info {
    transform: translateY(6px);
    opacity: 0.9;
    transition: all 0.3s ease;
}

.movie-card:hover .card-info {
    transform: translateY(0);
    opacity: 1;
}

/* Efeito de Brilho Dourado (Glow) */
.gold-glow {
    position: relative;
}
.gold-glow::after {
    content: '';
    position: absolute;
    inset: -2px;
    background: linear-gradient(45deg, #e2b13c, #fef08a, #ca8a04, #e2b13c);
    z-index: -1;
    filter: blur(12px);
    opacity: 0;
    transition: opacity 0.4s ease;
    border-radius: inherit;
}
.gold-glow:hover::after {
    opacity: 0.6;
}

/* Botão com Brilho Deslizante */
.shine-btn {
    position: relative;
    overflow: hidden;
}
.shine-btn::after {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(to right, rgba(255,255,255,0) 0%, rgba(255,255,255,0.3) 50%, rgba(255,255,255,0) 100%);
    transform: skewX(-25deg);
    animation: shine 4s infinite;
}

@keyframes shine {
    0% { left: -100%; }
    15% { left: 200%; }
    100% { left: 200%; }
}

/* Efeito de Esqueleto de Carregamento */
.skeleton {
    background: linear-gradient(90deg, #0d131f 25%, #1e293b 50%, #0d131f 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite linear;
}

@keyframes loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* Modal e Glassmorphism */
.modal-blur {
    background: rgba(4, 6, 10, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.modal-content-glass {
    background: rgba(13, 19, 31, 0.95);
    border: 1px solid rgba(226, 177, 60, 0.2);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}

/* Estrelas Interativas (Rating) */
.star-rating i {
    cursor: pointer;
    transition: transform 0.2s ease, color 0.2s ease;
}
.star-rating i:hover {
    transform: scale(1.2);
}

/* Estilos de Abas no Player */
.tab-btn {
    position: relative;
}
.tab-btn.active {
    color: #e2b13c;
}
.tab-btn.active::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: #e2b13c;
    border-radius: 2px;
    box-shadow: 0 0 8px rgba(226, 177, 60, 0.6);
}

/* Hero Carousel - Banners Dinâmicos */
.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    visibility: hidden;
    transition: opacity 1s ease-in-out, visibility 1s ease-in-out;
    z-index: 1;
}

.hero-slide.active {
    opacity: 1;
    visibility: visible;
    z-index: 2;
}

/* Botões do Controle do Banner */
.hero-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    transition: all 0.3s ease;
}
.hero-dot.active {
    width: 24px;
    border-radius: 4px;
    background-color: #e2b13c;
    box-shadow: 0 0 8px rgba(226, 177, 60, 0.8);
}

/* Ajustes de Responsividade em Celulares */
@media (max-width: 768px) {
    #hero-carousel {
        height: 60vh !important;
    }
}
@media (max-width: 640px) {
    #detail-modal-content {
        max-height: 90vh;
        overflow-y: auto;
    }
    #password-modal-content {
        max-height: 90vh;
        overflow-y: auto;
    }
}
