/* Banner Superior */
.characters-banner {
    position: relative;
    height: 300px;
    background: url('../assets/images/characters-bg.jpg') center/cover no-repeat;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: white;
    overflow: hidden;
}
/* Layout Vertical */
.characters-vertical-container {
    display: flex;
    height: 100vh;
    width: 100%;
    overflow: hidden;
}

.character-vertical-item {
    flex: 1;
    height: 100%;
    position: relative;
    overflow: hidden;
    transition: all 0.5s ease;
    min-width: 80px; /* Largura mínima quando não hover */
    background-size: cover;
    background-position: center;
    filter: grayscale(30%) brightness(0.7);
    display: flex;
    align-items: flex-end;
}

/* Efeito hover */
.character-vertical-item:hover {
    flex: 3;
    min-width: 300px;
    filter: grayscale(0%) brightness(1);
}

/* Nome do personagem */
.character-vertical-name {
    color: white;
    font-family: 'Black Ops One', cursive;
    font-size: 2rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
    writing-mode: vertical-rl;
    transform: rotate(180deg);
    padding: 20px 10px;
    margin: 0;
    opacity: 0.8;
    transition: all 0.3s ease;
}

.character-vertical-item:hover .character-vertical-name {
    opacity: 1;
    font-size: 2.5rem;
}

/* Efeito de overlay */
.character-vertical-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(19, 15, 64, 0.8), transparent);
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding-bottom: 40px;
}
/* Efeito de brilho ao passar o mouse */
.character-vertical-item:hover::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, 
        rgba(249, 202, 36, 0.1) 0%, 
        transparent 50%, 
        rgba(249, 202, 36, 0.1) 100%);
    animation: shine 2s infinite;
}

@keyframes shine {
    0% { background-position: -100% 0; }
    100% { background-position: 100% 0; }
}
/* Responsividade */
@media (max-width: 768px) {
    .characters-vertical-container {
        flex-direction: column;
        height: auto;
    }
    
    .character-vertical-item {
        width: 100%;
        height: 200px;
        min-width: 100% !important;
    }
    
    .character-vertical-name {
        writing-mode: horizontal-tb;
        transform: none;
    }
}
.characters-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(10, 61, 98, 0.7), rgba(19, 15, 64, 0.9));
}

.banner-title {
    font-family: 'Black Ops One', cursive;
    font-size: 5rem;
    color: var(--secondary-color);
    text-shadow: 3px 3px 0 var(--dark-color);
    position: relative;
    z-index: 1;
    letter-spacing: 5px;
}

.banner-subtitle {
    font-size: 1.5rem;
    position: relative;
    z-index: 1;
    max-width: 600px;
    margin: 0 auto;
}

.search-box, .nen-filter-box {
    position: relative;
}

.search-box i, .nen-filter-box i {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--secondary-color);
    z-index: 10;
}

#char-search, #nen-filter {
    padding-left: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    border: 1px solid var(--secondary-color);
    color: white; /* Texto branco */
    height: 50px;
    transition: all 0.3s ease;
}

/* Cor do texto quando o input está em foco */
#char-search:focus, #nen-filter:focus {
    background-color: rgba(255, 255, 255, 0.2);
    color: white; /* Mantém o texto branco */
    box-shadow: 0 0 0 0.25rem rgba(249, 202, 36, 0.25);
    border-color: var(--secondary-color);
}

/* Placeholder visível */
#char-search::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

/* Opções do select - importante para legibilidade */
#nen-filter option {
    background-color: var(--dark-color);
    color: white;
}

/* Dropdown do select no Chrome/Firefox */
#nen-filter:focus option:checked {
    background-color: var(--secondary-color);
    color: var(--dark-color);
}

/* Para navegadores WebKit (Chrome, Safari) */
select option {
    background: var(--dark-color);
    color: white;
}

/* Para Firefox */
@-moz-document url-prefix() {
    select {
        color: white;
        text-shadow: 0 0 0 white;
    }
    select option {
        background-color: var(--dark-color);
    }
}

/* Para Internet Explorer */
select::-ms-value {
    color: white;
    background: transparent;
}
/* Adicione isso ao seu arquivo characters.css */

/* Estilo do botão Ver Detalhes */
.btn-details {
    background-color: var(--secondary-color);
    color: var(--dark-color);
    border: none;
    font-weight: bold;
    padding: 5px 15px;
    border-radius: 20px;
    transition: all 0.3s ease;
    display: inline-block;
    margin-top: 10px;
}

.btn-details:hover {
    background-color: #ffd32a;
    transform: translateY(-2px);
    box-shadow: 0 5px 10px rgba(249, 202, 36, 0.4);
}

/* Cores específicas para cada tipo de Nen nos botões */
.enhancer .btn-details {
    background-color: var(--nen-enhancer);
    color: white;
}

.transmuter .btn-details {
    background-color: var(--nen-transmuter);
    color: white;
}

.conjurer .btn-details {
    background-color: var(--nen-conjurer);
    color: white;
}

.emitter .btn-details {
    background-color: var(--nen-emitter);
    color: white;
}

.manipulator .btn-details {
    background-color: var(--nen-manipulator);
    color: white;
}

.specialist .btn-details {
    background-color: var(--nen-specialist);
    color: white;
}
/* Filtros */
.filter-section {
    background-color: rgba(19, 15, 64, 0.8);
    border-radius: 10px;
    margin-top: -50px;
    position: relative;
    z-index: 10;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.search-box, .nen-filter-box {
    position: relative;
}

.search-box i, .nen-filter-box i {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--secondary-color);
    z-index: 10;
}

#char-search, #nen-filter {
    padding-left: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    border: 1px solid var(--secondary-color);
    color: white;
    height: 50px;
}

#char-search::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

#char-search:focus, #nen-filter:focus {
    background-color: rgba(255, 255, 255, 0.2);
    color: white;
    box-shadow: 0 0 0 0.25rem rgba(249, 202, 36, 0.25);
    border-color: var(--secondary-color);
}

/* Cards de Personagens */
.character-card {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    height: 400px;
    transition: all 0.3s ease;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
    border: 2px solid transparent;
}

.character-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(249, 202, 36, 0.3);
    border-color: var(--secondary-color);
}

.character-bg {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
    z-index: 1;
}

.character-card:hover .character-bg {
    transform: scale(1.1);
}

.character-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(19, 15, 64, 0.9), transparent 70%);
    z-index: 2;
}

.character-content {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 20px;
    z-index: 3;
    color: white;
}

.character-name {
    font-family: 'Black Ops One', cursive;
    font-size: 1.8rem;
    margin-bottom: 5px;
    color: var(--secondary-color);
    text-shadow: 2px 2px 0 var(--dark-color);
}

.character-nen-type {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: bold;
    margin-bottom: 10px;
}

.enhancer { background-color: var(--nen-enhancer); }
.transmuter { background-color: var(--nen-transmuter); }
.conjurer { background-color: var(--nen-conjurer); }
.emitter { background-color: var(--nen-emitter); }
.manipulator { background-color: var(--nen-manipulator); }
.specialist { background-color: var(--nen-specialist); }

.character-abilities {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-top: 10px;
}

.ability-tag {
    background-color: rgba(249, 202, 36, 0.2);
    border: 1px solid var(--secondary-color);
    border-radius: 15px;
    padding: 2px 10px;
    font-size: 0.7rem;
}

.fav-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(19, 15, 64, 0.8);
    border: none;
    color: white;
    z-index: 4;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.fav-btn:hover {
    background-color: var(--danger-color);
    transform: scale(1.1);
}

.fav-btn.active {
    background-color: var(--danger-color);
    color: white;
}

/* Modal de Detalhes */
#characterModal .modal-content {
    background-color: transparent;
    border: none;
}

#characterModal .modal-header {
    background-color: rgba(19, 15, 64, 0.9);
    border-bottom: 2px solid var(--secondary-color);
    color: white;
}

.character-detail-container {
    display: flex;
    height: 80vh;
}

.character-detail-left {
    flex: 1;
    background-size: cover;
    background-position: center;
    position: relative;
}


.character-detail-bg {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.7);
}
.character-detail-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(19, 15, 64, 0.8), transparent);
}
.character-detail-image {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    max-height: 80%;
    max-width: 90%;
    z-index: 2;
}

.character-detail-right {
    flex: 1;
    background-color: rgba(19, 15, 64, 0.95);
    padding: 30px;
    color: white;
    overflow-y: auto;
    max-height: 600px;
}

.character-detail-title {
    font-family: 'Black Ops One', cursive;
    color: var(--secondary-color);
    margin-bottom: 20px;
    font-size: 2.5rem;
}

.character-detail-nen {
    display: inline-block;
    padding: 5px 15px;
    border-radius: 20px;
    font-weight: bold;
    margin-bottom: 20px;
    font-size: 1.1rem;
}

.character-detail-section {
    margin-bottom: 25px;
}

.character-detail-section h4 {
    color: var(--secondary-color);
    border-bottom: 1px solid var(--secondary-color);
    padding-bottom: 5px;
    margin-bottom: 15px;
}

.nen-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin-top: 20px;
}

.stat-item {
    margin-bottom: 10px;
}

.stat-name {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

.stat-bar {
    height: 10px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 5px;
    overflow: hidden;
}

.stat-progress {
    height: 100%;
    border-radius: 5px;
}

/* Responsividade */
@media (max-width: 992px) {
    .character-detail-container {
        flex-direction: column;
        height: auto;
    }
    
    .character-detail-left {
        height: 300px;
    }
    
    .character-detail-right {
        max-height: none;
    }
}

@media (max-width: 768px) {
    .banner-title {
        font-size: 3rem;
    }
    
    .banner-subtitle {
        font-size: 1.2rem;
    }
    
    .character-card {
        height: 350px;
    }
    
    .character-name {
        font-size: 1.5rem;
    }
}

@media (max-width: 576px) {
    .banner-title {
        font-size: 2.5rem;
    }
    
    .filter-section {
        margin-top: -30px;
    }
    
    #char-search, #nen-filter {
        height: 45px;
        font-size: 0.9rem;
    }
    
    .character-card {
        height: 300px;
    }
    
    .character-name {
        font-size: 1.3rem;
    }
}
/* Layout para Mobile */
@media (max-width: 768px) {
    .characters-vertical-container.mobile-layout {
        flex-direction: column;
        height: auto;
    }
    
    .character-mobile-item {
        width: 100%;
        height: 200px;
        position: relative;
        background-size: cover;
        background-position: center;
        margin-bottom: 10px;
        overflow: hidden;
    }
    
    .character-mobile-overlay {
        position: absolute;
        bottom: 0;
        left: 0;
        width: 100%;
        padding: 15px;
        background: linear-gradient(to top, rgba(19, 15, 64, 0.9), transparent);
    }
    
    .character-mobile-name {
        color: white;
        font-family: 'Black Ops One', cursive;
        font-size: 1.8rem;
        margin: 0;
        text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
    }
    
    .character-mobile-nen {
        display: inline-block;
        padding: 3px 10px;
        border-radius: 15px;
        font-size: 0.8rem;
        font-weight: bold;
        margin-top: 5px;
    }
    
    /* Ajustes para o modal em mobile */
    .character-detail-container {
        flex-direction: column;
    }
    
    .character-detail-left {
        height: 200px;
    }
    
    .character-detail-right {
        max-height: 50vh;
        overflow-y: auto;
    }
}
/* Estilos para o GIF aumentado */
.character-detail-left {
    position: relative;
    background: #000 !important;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 70vh; /* Altura maior para o container */
    min-height: 500px; /* Altura mínima */
    overflow: hidden;
}

.character-detail-gif {
    max-height: 90%;
    max-width: 90%;
    object-fit: contain;
    transition: transform 0.3s ease;
}

/* Efeito de zoom ao passar o mouse (opcional) */
.character-detail-gif:hover {
    transform: scale(1.05);
}
/* Efeito de carregamento */
.character-detail-gif {
    background: linear-gradient(90deg, #130f40 0%, #1a1552 50%, #130f40 100%);
    background-size: 200% 200%;
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

.character-detail-gif[src] {
    background: none;
    animation: none;
}

#characterModal .modal-dialog {
    max-width: 90%;
    min-height: 80vh;
}

#characterModal .modal-content {
    background: transparent;
    border: none;
}

#characterModal .modal-body {
    padding: 0;
}

.character-detail-left {
    position: relative;
    height: 80vh;
    padding: 0;
    margin: 0;
}

.character-detail-gif {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
}

/* Esconde o overlay se estiver cobrindo muito */
.character-detail-overlay {
    background: linear-gradient(to top, rgba(19, 15, 64, 0.8), transparent 70%) !important;
}
/* Ajuste para mobile */
@media (max-width: 768px) {
    .character-detail-left {
        height: 50vh;
        min-height: 300px;
    }
    
    .character-detail-gif {
        max-height: 95%;
        max-width: 95%;
    }
}
/* Melhorias para telas muito pequenas */
@media (max-width: 480px) {
    .character-mobile-item {
        height: 150px;
    }
    
    .character-mobile-name {
        font-size: 1.5rem;
    }
    
    .banner-title {
        font-size: 2.5rem;
    }
    
    .banner-subtitle {
        font-size: 1rem;
    }
}