/* Fontes */
@font-face {
    font-family: 'sd-asian';
    src: url('../fonts/sd-asian.ttf') format('truetype');
    font-display: swap;
}

/* Estilos Base */
body {
    background-color: #000;
    overflow-x: hidden;
    font-family: 'sd-asian', sans-serif;
}

body, *:hover { 
    cursor: url(../images/cursor.png), auto; 
}

/* Navbar */
.navbar {
    padding: 1rem 0;
    transition: all 0.3s ease;
    background-color: rgba(0, 0, 0, 0); /* Fundo quase opaco por padrão */
}

.navbar.scrolled {
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.nav-link {
    color: white !important;
    font-family: 'sd-asian', sans-serif;
    font-size: 1.1rem;
    margin: 0 0.5rem;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: #EAAC15;
    transition: width 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

/* Carrossel */
.carousel {
    height: 100vh;
}

.carousel-inner {
    height: 100%;
}

.character-container {
    position: relative;
    height: 100vh;
    overflow: hidden;
}

.character-media {
    height: 100%;
    width: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
}

.character-content {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 2rem;
    background: linear-gradient(45deg, rgba(0,0,0,1) 10%, rgba(0,0,0,0.15) 75%);
    z-index: 1;
}

.character-name {
    font-family: 'Protest Revolution', sans-serif;
    font-size: 3.5rem;
    color: white;
    margin-bottom: 1.5rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.character-description {
    color: white;
    font-family: 'Secular One', sans-serif;
    max-width: 630px;
    line-height: 1.6;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
}

/* Miniaturas */
.character-thumbnails {
    position: fixed;
    top: 0;
    right: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    width: 180px;
    gap: 1rem;
    background-color: rgba(0, 0, 0, 0.3);
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 10;
    overflow-x: auto;
}

.container-thumbnails {
    display: flex;
    justify-content: center;
    flex-direction: column;
    gap: 1rem;
    padding: 0.5rem;
}

.thumbnail-btn {
    border: none;
    background: none;
    padding: 0;
    border-radius: 50%;
    transition: all 0.3s ease;
    width: 70px;
    height: 70px;
}

.thumbnail-img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

.thumbnail-btn:hover .thumbnail-img,
.thumbnail-btn.active .thumbnail-img {
    transform: scale(1.1);
    border-color: #EAAC15;
    box-shadow: 0 0 15px rgba(234, 172, 21, 0.7);
}

/* Controle de Volume */
.volume-control {
    position: fixed;
    bottom: 20px;
    left: 20px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background-color: rgba(0, 0, 0, 0.7);
    padding: 0.75rem 1rem;
    border-radius: 50px;
    z-index: 1000;
}

.volume-btn {
    background: none;
    border: none;
    color: #EAAC15;
    font-size: 1.2rem;
    cursor: pointer;
}

.volume-slider {
    width: 100px;
    height: 6px;
    -webkit-appearance: none;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 5px;
    outline: none;
}

.volume-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 15px;
    height: 15px;
    border-radius: 50%;
    background: #EAAC15;
    cursor: pointer;
}

/* Seleção de Texto */
::selection {
    background-color: #EAAC15;
    color: #000;
}

::-moz-selection {
    background-color: #EAAC15;
    color: #000;
}

/* Responsividade */
@media (max-width: 992px) {
    .character-content {
        justify-content: flex-end;
        padding-bottom: 150px;
    }
    
    .character-name {
        font-size: 2.5rem;
    }
    
    .character-description {
        max-width: 100%;
    }
    
    .thumbnail-btn {
        width: 60px;
        height: 60px;
    }
}

@media (max-width: 768px) {
    .character-name {
        font-size: 2rem;
    }
    
    .character-description {
        font-size: 0.9rem;
    }
    
    .thumbnail-btn {
        width: 50px;
        height: 50px;
    }
}

@media (max-width: 576px) {
    .character-content {
        padding: 1rem;
        padding-bottom: 120px;
    }
    
    .character-name {
        font-size: 1.8rem;
        margin-bottom: 1rem;
    }
    
    .thumbnail-btn {
        width: 40px;
        height: 40px;
    }
    
    .volume-control {
        bottom: 80px;
    }
}

/* Miniaturas - Versão Desktop (lado direito) */
.character-thumbnails {
    position: fixed;
    top: 0;
    right: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    width: 180px;
    gap: 1rem;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 10;
    overflow-x: auto;
}

.container-thumbnails {
    display: flex;
    justify-content: center;
    flex-direction: column;
    gap: 1rem;
    padding: 0.5rem;
}

/* Responsivo - Miniaturas na parte inferior */
@media (max-width: 992px) {
    .character-thumbnails {
        top: auto;
        bottom: 0;
        left: 0;
        right: auto;
        width: 100%;
        min-height: auto;
        height: 120px;
        flex-direction: row;
        justify-content: center;
        align-items: center;
        padding: 10px;
        background-color: rgba(0, 0, 0, 0.7);
    }

    .container-thumbnails {
        flex-direction: row;
        overflow-x: auto;
        width: 100%;
        padding: 0 10px;
    }

    .thumbnail-btn {
        flex-shrink: 0; /* Impede que os botões encolham */
    }

    /* Ajuste do conteúdo para não ficar atrás das miniaturas */
    .character-content {
        padding-bottom: 140px;
    }
}

/* Ajustes para telas muito pequenas */
@media (max-width: 576px) {
    .character-thumbnails {
        height: 100px;
    }

    .thumbnail-btn {
        width: 50px;
        height: 50px;
    }

    .character-content {
        padding-bottom: 120px;
    }
}

@media (max-width: 400px) {
    .character-thumbnails {
        height: 90px;
    }

    .thumbnail-btn {
        width: 45px;
        height: 45px;
    }
}