/* -----------------------------------------------------------------------------
   nomades.css
   Estilos dedicados para a aba "Nômades"
   -----------------------------------------------------------------------------
*/

/* Seção principal */
.nomade-section {
    padding: 3rem 1.5rem;
    background: linear-gradient(
            rgba(0, 0, 0, 0.95),
            rgba(20, 20, 20, 0.95)
        ),
        url('img/background-texture.webp');
    background-size: cover;
    color: #fff;
}

/* Título no mesmo padrão de .history-section h1 (copiado de historia.css) */
.nomade-section h1 {
    font-family: "Alfa Slab One", cursive;
    color: white;
    font-size: 3.0rem;
    text-align: center;
    margin-bottom: 2.5rem;
    text-shadow: 0 0 10px rgba(179, 179, 177, 0.3);
}

/* Formulário de busca */
.nomade-section .field.has-addons {
    max-width: 600px;
    margin: 0 auto 2rem auto;
}

.nomade-section .field.has-addons .input {
    background: rgba(40, 40, 40, 0.9);
    color: #fff;
    border: 1px solid #555;
}

.nomade-section .field.has-addons .input::placeholder {
    color: #aaa;
}

.nomade-section .field.has-addons .input:focus {
    border-color: #B3B3B1;
    box-shadow: 0 0 0 0.125em rgba(179, 179, 177, 0.25);
}

.nomade-section .field.has-addons .icon {
    color: #aaa;
}

.nomade-section .button.is-primary {
    background-color: #B3B3B1;
    border-color: #B3B3B1;
    color: #000;
}

.nomade-section .button.is-primary:hover {
    background-color: #9a9a98;
    border-color: #9a9a98;
}

.nomade-section .button.is-light {
    background-color: rgba(60, 60, 60, 0.9);
    border-color: #555;
    color: #fff;
}

.nomade-section .button.is-light:hover {
    background-color: rgba(80, 80, 80, 0.9);
    border-color: #666;
}

/* Texto introdutório (opcional) */
.nomade-intro {
    margin-bottom: 2rem;
    font-size: 1.1rem;
    color: #ccc;
}

/* Galeria */
.nomade-gallery {
    margin-top: 2rem;
}

/* Cada card de Nômade */
.nomade-card {
    background: rgba(30, 30, 30, 0.85);
    border: 1px solid #444;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.nomade-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.7);
    border-color: #fff;
}

/* Imagem dentro do card */
.nomade-image {
    position: relative;
    width: 100%;
    padding-top: 75%; /* Proporção 4:3 */
    background-color: #191919;
    overflow: hidden;
}

.nomade-image img {
    position: absolute;
    top: 50%;
    left: 50%;
    height: 320px;      /* altura maior */
    width: auto;        /* mantém proporção */
    max-width: 100%;    /* não ultrapassa o card */
    max-height: 100%;   /* não ultrapassa o card */
    transform: translate(-50%, -50%);
    object-fit: contain;
    object-position: center;
    filter: grayscale(1); /* preto e branco */
    transition: filter 0.3s ease, transform 0.3s ease;
}

.nomade-card:hover .nomade-image img {
    filter: none;
    transform: translate(-50%, -50%) scale(1.05);
}

/* Conteúdo de texto dentro do card */
.nomade-content {
    padding: 1rem;
    text-align: center;
}

.nomade-name {
    font-family: 'Alfa Slab One', cursive;
    font-size: 1.4rem;
    color: #fff;
    margin-bottom: 0.5rem;
    line-height: 1.2;
}

.nomade-details {
    font-family: 'Roboto Slab', serif;
    font-size: 1rem;
    color: #aaa;
    margin: 0;
}

/* Responsividade extra */
@media (max-width: 768px) {
    .nomade-name {
        font-size: 1.2rem;
    }
    .nomade-details {
        font-size: 0.95rem;
    }
}

@media (max-width: 480px) {
    .nomade-intro {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }
}

/* Caso seja necessário sobrescrever algo específico no footer */
.nomade-section + .footer {
    background-color: #000;
}

/* Espaço igual acima e abaixo da logo */
.nomade-logo-container {
    margin-top: 2.5rem;   /* igual ao margin-bottom do h1 */
    margin-bottom: 2.5rem;
}

/* Ajuste da imagem para altura fixa e proporção automática */
.nomade-logo-img {
    height: 350px;
    width: auto;
    display: inline-block;
    object-fit: contain;
}

/* Estilos da Paginação - Nômades */
.nomade-section .pagination {
    margin-top: 3rem;
}

.nomade-section .pagination-previous,
.nomade-section .pagination-next,
.nomade-section .pagination-link {
    background-color: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #ffffff;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
}

.nomade-section .pagination-previous:hover,
.nomade-section .pagination-next:hover,
.nomade-section .pagination-link:hover {
    background-color: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
    color: #ffffff;
    transform: translateY(-2px);
}

.nomade-section .pagination-link.is-current {
    background-color: rgba(255, 255, 255, 0.9) !important;
    border-color: rgba(255, 255, 255, 0.9) !important;
    color: #2a2a2a !important;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.nomade-section .pagination-link.is-current:hover {
    background-color: #ffffff !important;
    border-color: #ffffff !important;
    color: #1a1a1a !important;
    transform: translateY(-2px);
}

.nomade-section .pagination-previous.is-disabled,
.nomade-section .pagination-next.is-disabled {
    background-color: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.3);
    cursor: not-allowed;
    opacity: 0.4;
}

.nomade-section .pagination-previous.is-disabled:hover,
.nomade-section .pagination-next.is-disabled:hover {
    background-color: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.3);
    transform: none;
}

.nomade-section .pagination-ellipsis {
    color: rgba(255, 255, 255, 0.6);
}

/* Informações da paginação */
.nomade-section .pagination-info {
    color: rgba(255, 255, 255, 0.7);
    font-style: italic;
    margin-bottom: 1rem;
}
