/* Resets e Configs Globais */
:root {
    --gold: #FFD700;
    --white: #FFFFFF;
    --black: #000000;
    --font-title: 'Bebas Neue', sans-serif;
    --font-text: 'Nunito', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    user-select: none; /* Desativar seleção de texto p/ modo Kiosk */
    -webkit-user-select: none;
}

body {
    background-color: var(--black);
    width: 100vw;
    height: 100vh;
    overflow: hidden; /* Sem scrollbar */
    font-family: var(--font-text);
    color: var(--white);
    transition: cursor 0.3s;
}

/* Ocultar cursor no modo Kiosk após inatividade */
body.hide-cursor {
    cursor: none;
}

/* Partículas */
#particles-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 5;
    pointer-events: none;
    mix-blend-mode: screen;
}

/* Slider */
#slider-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 1;
    overflow: hidden;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    object-fit: cover;
    will-change: transform, opacity, filter;
    transition: opacity var(--transition-duration, 1.2s) ease;
}

/* Camada ativa e inativa */
.slide.active {
    opacity: 1;
    z-index: 2;
}

.slide.prev {
    z-index: 1;
    opacity: 1;
}

/* EFEITOS DE TRANSIÇÃO */

/* Fade: já resolvido pela opacidade default do .slide */
.effect-fade { }

/* Ken Burns: animação de zoom linear contínua */
@keyframes kenBurns {
    0% { transform: scale(1); }
    100% { transform: scale(var(--kb-scale, 1.08)); }
}
.effect-ken-burns.active {
    animation: kenBurns var(--kb-duration, 8s) linear forwards;
}

/* Slide Horizontal: entra da direita */
.effect-slide-horizontal {
    transform: translateX(100%);
    transition: transform var(--transition-duration, 1.2s) cubic-bezier(0.25, 1, 0.5, 1), opacity var(--transition-duration, 1.2s) ease;
}
.effect-slide-horizontal.active {
    transform: translateX(0);
}
.effect-slide-horizontal.exit {
    transform: translateX(-30%);
    opacity: 0;
}

/* Zoom Out: escala inicial maior */
.effect-zoom-out {
    transform: scale(1.3);
    transition: transform var(--transition-duration, 1.2s) cubic-bezier(0.25, 1, 0.5, 1), opacity var(--transition-duration, 1.2s) ease;
}
.effect-zoom-out.active {
    transform: scale(1);
}
.effect-zoom-out.exit {
    transform: scale(0.9);
    opacity: 0;
}

/* Blur Dissolve: desfoque cruzado */
.effect-blur-dissolve {
    filter: blur(25px);
    transition: opacity var(--transition-duration, 1.2s) ease, filter var(--transition-duration, 1.2s) ease;
}
.effect-blur-dissolve.active {
    filter: blur(0px);
}
.effect-blur-dissolve.exit {
    filter: blur(25px);
    opacity: 0;
}

/* Vinheta */
.vignette {
    position: absolute;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: radial-gradient(circle, transparent 40%, rgba(0,0,0,0.85) 100%);
    z-index: 10;
    pointer-events: none;
}

/* Overlay & Identidade */
.overlay-container {
    position: absolute;
    bottom: 2.5rem;
    left: 3rem;
    right: 3rem;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    z-index: 20;
    pointer-events: none; /* Permite que os cliques passem pro container pai (menos os controles) */
}

.text-group {
    text-shadow: 2px 2px 15px rgba(0,0,0,0.9);
}

.main-title {
    font-family: var(--font-title);
    font-size: 6rem;
    line-height: 0.85;
    letter-spacing: 3px;
    margin: 0;
}

.sub-title {
    font-family: var(--font-text);
    font-size: 1.8rem;
    color: var(--gold);
    font-weight: 700;
    letter-spacing: 10px;
    margin-top: 0.8rem;
    text-shadow: 1px 1px 8px rgba(0,0,0,0.8);
}

/* Controles */
.controls {
    display: flex;
    align-items: center;
    gap: 1.2rem;
    background: rgba(0, 0, 0, 0.4);
    padding: 0.8rem 1.8rem;
    border-radius: 50px;
    backdrop-filter: blur(12px);
    pointer-events: auto; /* Reativar eventos no controle */
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.4s ease, transform 0.4s ease;
}

/* Mostrados temporariamente */
.controls.show {
    opacity: 1;
    transform: translateY(0);
}

.control-btn {
    background: none;
    border: none;
    color: var(--white);
    width: 3rem;
    height: 3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border-radius: 50%;
    transition: background 0.2s, color 0.2s, transform 0.1s;
}

.control-btn:hover {
    background: rgba(255, 215, 0, 0.2);
    color: var(--gold);
}

.control-btn:active {
    transform: scale(0.9);
}

.control-btn svg {
    width: 28px;
    height: 28px;
}

.counter {
    font-weight: 700;
    font-size: 1.2rem;
    min-width: 90px;
    text-align: center;
    color: var(--gold);
    letter-spacing: 2px;
}

/* Progress Bar */
#progress-bar-container {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100vw;
    height: 3px;
    background: rgba(255, 255, 255, 0.15);
    z-index: 30;
}

#progress-bar {
    height: 100%;
    width: 0%;
    background: var(--gold);
    box-shadow: 0 0 10px var(--gold);
    will-change: width;
    /* Transição suave pra quando JS atualizar rapidamente */
    transition: width 0.1s linear; 
}

/* Placeholder */
#placeholder-screen {
    position: absolute;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: var(--black);
    z-index: 100;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    transition: opacity 0.5s ease;
}

#placeholder-screen.hidden {
    opacity: 0;
    pointer-events: none;
}

#placeholder-screen h1 {
    font-family: var(--font-title);
    font-size: 7rem;
    color: var(--gold);
    margin-bottom: 1rem;
    letter-spacing: 5px;
}

#placeholder-screen p {
    font-size: 1.8rem;
    margin-bottom: 2rem;
}

#placeholder-screen .small-text {
    font-size: 1.1rem;
    opacity: 0.6;
    max-width: 600px;
    line-height: 1.6;
    background: rgba(255,255,255,0.1);
    padding: 2rem;
    border-radius: 12px;
}

/* =========================================
   UPLOAD PAGE STYLES
   ========================================= */
.upload-page {
    overflow-y: auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

.upload-container {
    background: rgba(20, 20, 20, 0.9);
    padding: 3rem;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.8);
    text-align: center;
    width: 90%;
    max-width: 700px;
}

.dropzone {
    border: 3px dashed var(--white);
    border-radius: 12px;
    padding: 4rem 2rem;
    transition: all 0.3s ease;
    cursor: pointer;
    background: rgba(255,255,255,0.02);
}

.dropzone:hover, .dropzone.highlight {
    border-color: var(--gold);
    background: rgba(255, 215, 0, 0.05);
}

.dropzone h2 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.dropzone.disabled {
    pointer-events: none;
    opacity: 0.5;
}

.upload-status {
    margin-top: 2rem;
}

.progress-track {
    width: 100%;
    height: 10px;
    background: #333;
    border-radius: 5px;
    margin-top: 1rem;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    width: 0%;
    background: var(--gold);
    transition: width 0.3s ease;
}

.success-msg {
    margin-top: 2rem;
    color: #4CAF50;
    font-size: 1.5rem;
    font-weight: bold;
}

.hidden {
    display: none !important;
}

.btn-danger {
    background: transparent;
    border: 1px solid #ff4444;
    color: #ff4444;
    padding: 10px 20px;
    border-radius: 50px;
    cursor: pointer;
    transition: 0.3s;
}

.btn-danger:hover {
    background: #ff4444;
    color: white;
}

.btn-return {
    background: var(--gold);
    border: none;
    color: var(--black);
    padding: 12px 24px;
    border-radius: 50px;
    cursor: pointer;
    font-weight: bold;
    font-size: 1.1rem;
    margin-top: 10px;
    transition: 0.3s transform;
}

.btn-return:hover {
    transform: scale(1.05);
}

