/**
 * ctb/assets/ctb.css
 * Estilos específicos para o módulo Código de Trânsito Brasileiro (CTB)
 * Identidade: White + Lime + Slate / Leitura jurídica confortável
 */

/* Tipografia e Legibilidade */
.ctb-law-content {
    font-size: 16.5px;
    line-height: 1.78;
    color: #1e293b; /* slate-800 */
}

@media (min-width: 640px) {
    .ctb-law-content {
        font-size: 17.5px;
        line-height: 1.8;
    }
}

.ctb-law-content p {
    margin-bottom: 1.25rem;
}

/* Links internos para outros artigos */
.ctb-internal-link {
    color: #4d7c0f; /* lime-700 */
    text-decoration: underline;
    text-decoration-color: #bef264; /* lime-300 */
    text-underline-offset: 3px;
    transition: all 0.15s ease;
}

.ctb-internal-link:hover {
    color: #365314; /* lime-900 */
    text-decoration-color: #65a30d; /* lime-600 */
}

/* Blocos jurídicos específicos */
.ctb-block-caput {
    color: #0f172a; /* slate-900 */
    font-weight: 500;
}

.ctb-block-paragrafo {
    position: relative;
    border-left: 3px solid #cbd5e1; /* slate-300 */
    padding-left: 1rem;
    margin: 1rem 0;
}

.ctb-block-inciso {
    margin: 0.6rem 0;
}

.ctb-block-alinea {
    margin: 0.4rem 0;
}

/* Scrollbar sutil para listas horizontais */
.no-scrollbar::-webkit-scrollbar {
    display: none;
}
.no-scrollbar {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

/* Toast de notificação (ex: link copiado) */
#ctbToast {
    position: fixed;
    bottom: 24px;
    right: 24px;
    background: #0f172a;
    color: #ffffff;
    padding: 10px 18px;
    border-radius: 12px;
    font-size: 13px;
    font-weight: 600;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.2);
    z-index: 9999;
    opacity: 0;
    transform: translateY(12px);
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    pointer-events: none;
}
#ctbToast.show {
    opacity: 1;
    transform: translateY(0);
}

/* Estilos de impressão profissional (salvar como PDF/print) */
@media print {
    header, footer, .ctb-article-sidebar, .ctb-cta-banner, #ctbSearchForm, .ctb-article-nav, #copyLawTextBtn, #copyArticleLinkBtn {
        display: none !important;
    }
    body {
        background: #ffffff !important;
        color: #000000 !important;
    }
    .ctb-law-content, .ctb-commentary-box {
        max-width: 100% !important;
        box-shadow: none !important;
        border: none !important;
    }
}
