
/* ==========================================================================
   Acervo Nerd — Livros (Layout Acervo de Mídia Style)
   ========================================================================== */

.nl-acervo-item-page {
    max-width: 100%;
    margin: 0 auto;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    color: #f1f5f9;
    background: #121212;
    padding: 24px;
    border-radius: 12px;
    box-sizing: border-box;
}

.nl-acervo-item-page *, .nl-acervo-item-page *::before, .nl-acervo-item-page *::after {
    box-sizing: border-box;
}

/* Topbar */
.nl-item-topbar {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 20px;
    font-size: 0.85rem;
}

.nl-topbar-link {
    color: #94a3b8;
    text-decoration: none;
    transition: color 0.2s;
}

.nl-topbar-link:hover {
    color: #f8fafc;
}

.nl-topbar-sep {
    color: #64748b;
}

/* Banner Principal Compacto */
.nl-item-banner {
    display: flex;
    gap: 20px;
    align-items: flex-start;
    background: #1e1e1e;
    border: 1px solid #2d2d2d;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 24px;
}

.nl-banner-cover {
    flex: 0 0 120px;
    border-radius: 6px;
    overflow: hidden;
    background: #2a2a2a;
    aspect-ratio: 2/3;
}

.nl-banner-img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    display: block !important;
    margin: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
}

.nl-banner-info {
    flex: 1;
    min-width: 200px;
}

.nl-banner-title {
    font-size: 1.6rem;
    font-weight: 800;
    color: #ffffff;
    margin: 0 0 8px 0;
    line-height: 1.2;
}

.nl-banner-rating {
    margin-bottom: 10px;
}

.nl-star {
    font-size: 1rem;
    color: #4b5563;
}

.nl-star.active {
    color: #f59e0b;
}

.nl-banner-meta-list {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 14px;
}

.nl-banner-tag {
    background: #2a2a2a;
    color: #cbd5e1;
    padding: 3px 10px;
    border-radius: 4px;
    font-size: 0.78rem;
    font-weight: 500;
    text-decoration: none;
    border: 1px solid #383838;
}

.nl-banner-tag:hover {
    background: #333333;
    color: #fff;
}

.nl-banner-share {
    margin-top: 10px;
}

.nl-share-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #14532d;
    color: #bbf7d0;
    border: 1px solid #166534;
    padding: 5px 12px;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 600;
    text-decoration: none;
}

.nl-share-btn:hover {
    background: #166534;
    color: #fff;
}

/* Blocos Estilo Dark Box */
.nl-dark-box {
    background: #1e1e1e;
    border: 1px solid #2d2d2d;
    border-radius: 10px;
    padding: 18px 20px;
    margin-bottom: 20px;
}

.nl-dark-heading {
    font-size: 1rem;
    font-weight: 700;
    color: #f8fafc;
    margin: 0 0 10px 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.nl-dark-body {
    font-size: 0.94rem;
    color: #cbd5e1;
    line-height: 1.6;
}

.nl-dark-body p:last-child {
    margin-bottom: 0;
}

/* Onde Comprar */
.nl-onde-comprar-section {
    background: #1e1e1e;
    border: 1px solid #2d2d2d;
    border-radius: 10px;
    padding: 18px 20px;
    margin-bottom: 20px;
}

.nl-section-title-wrap {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 12px;
}

.nl-section-title {
    font-size: 1rem;
    font-weight: 700;
    color: #f8fafc;
    margin: 0;
}

.nl-affiliate-tag {
    font-size: 0.75rem;
    color: #94a3b8;
    font-weight: normal;
}

.nl-buy-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.nl-buy-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #2a2a2a;
    border: 1px solid #383838;
    border-radius: 6px;
    padding: 8px 14px;
    text-decoration: none;
    color: #f1f5f9;
    font-weight: 600;
    font-size: 0.88rem;
}

.nl-buy-btn:hover {
    background: #333333;
    border-color: #525252;
}

.nl-btn-icon {
    display: flex;
    align-items: center;
}

.nl-btn-text {
    flex: 1;
}

/* Detalhes Técnicos Grid */
.nl-details-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 10px;
}

.nl-detail-item {
    background: #252525;
    border: 1px solid #333;
    padding: 8px 12px;
    border-radius: 6px;
    display: flex;
    flex-direction: column;
}

.nl-detail-item strong {
    font-size: 0.7rem;
    text-transform: uppercase;
    color: #94a3b8;
    margin-bottom: 2px;
}

.nl-detail-item span {
    font-size: 0.88rem;
    color: #f1f5f9;
    font-weight: 500;
}

/* Assuntos */
.nl-subjects-section {
    margin-bottom: 20px;
}

/* Rodapé */
.nl-commission-notice {
    margin-top: 30px;
    padding-top: 12px;
    border-top: 1px solid #2d2d2d;
    font-size: 0.75rem;
    color: #64748b;
    text-align: center;
}

/* Catálogo e Filtros (Padronizados) */
.nl-catalogo-wrapper {
    width: 100%;
}

.nl-filtros {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 25px;
    align-items: center;
}

.nl-filtro-item {
    flex: 1;
    min-width: 160px;
}

.nl-filtro-busca {
    flex: 2;
    min-width: 200px;
}

.nl-filtro-campo {
    width: 100%;
    height: 42px;
    padding: 0 12px;
    border: 1px solid #383838;
    border-radius: 6px;
    background-color: #1e1e1e;
    color: #f1f5f9;
    font-size: 14px;
}

.nl-filtro-botao {
    height: 42px;
    padding: 0 20px;
    background: #0073aa;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    font-size: 14px;
    width: 100%;
}

.nl-filtro-limpar-link {
    color: #ef4444;
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
}

.nl-catalogo-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin-top: 20px;
}

@media (min-width: 768px) {
    .nl-catalogo-grid {
        grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
        gap: 24px;
    }
}

.nl-card-item {
    background: #1e1e1e;
    border: 1px solid #2d2d2d;
    border-radius: 8px;
    overflow: hidden;
    text-decoration: none;
    color: #f1f5f9;
    display: flex;
    flex-direction: column;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.nl-card-thumb {
    width: 100%;
    aspect-ratio: 2/3;
    background: #2a2a2a;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.nl-card-thumb img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
}

.nl-card-content {
    padding: 12px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.nl-card-stars {
    font-size: 11px;
    margin-bottom: 4px;
}

.nl-card-title {
    font-size: 14px;
    font-weight: 700;
    color: #ffffff;
    margin: 0 0 6px 0;
    line-height: 1.3;
}

.nl-card-author {
    font-size: 12px;
    color: #94a3b8;
    margin-top: auto;
}

.nl-pagination {
    margin-top: 30px;
    text-align: center;
    display: flex;
    justify-content: center;
    gap: 6px;
    flex-wrap: wrap;
}

.nl-pagination .page-numbers {
    padding: 6px 12px;
    background: #1e1e1e;
    border: 1px solid #383838;
    border-radius: 4px;
    text-decoration: none;
    color: #f1f5f9;
    font-size: 13px;
    font-weight: 500;
}

.nl-pagination .page-numbers.current {
    background: #0073aa;
    color: #fff;
    border-color: #0073aa;
}

@media (max-width: 600px) {
    .nl-item-banner {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 16px;
    }
    .nl-banner-cover {
        flex: 0 0 130px;
        width: 130px;
    }
    .nl-banner-meta-list, .nl-banner-share {
        justify-content: center;
    }
    .nl-buy-btn {
        width: 100%;
        justify-content: center;
    }
}
