/**
 * Estilos do Sistema de Layouts e Templates - Conect Prefeitura
 * Classes prefixadas, design system responsivo e flexível
 *
 * @package Conect_Prefeitura
 * @author Leandro Kywdery (https://conectsistemas.com.br) - 18/09/2026 10:25:00
 * @version 2.0.0
 */

/* ==========================================================================
   1. CONTAINER E ESTRUTURA DO LAYOUT
   ========================================================================== */
.conect-layout-wrapper {
    margin-top: 2rem;
    margin-bottom: 4rem;
}

.conect-component {
    box-sizing: border-box;
    position: relative;
}

.conect-component-section {
    width: 100%;
    padding: 2rem 0;
}

.conect-component-container {
    max-width: var(--pm-container, 1290px);
    margin: 0 auto;
    padding: 0 1rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.conect-component-column {
    flex: 1 1 0;
    min-width: 0;
}

/* ==========================================================================
   2. TIPOGRAFIA E CONTEÚDO
   ========================================================================== */
.conect-component-heading,
.conect-component-post_title {
    margin-top: 0;
    margin-bottom: 1rem;
    color: var(--pm-text, #212529);
    line-height: 1.3;
}

.conect-component-text {
    font-size: 1.05rem;
    line-height: 1.7;
    color: var(--pm-text, #212529);
    margin-bottom: 1.25rem;
}

.conect-component-post_excerpt {
    font-size: 1.15rem;
    line-height: 1.6;
    color: var(--pm-text-muted, #5c6773);
    border-left: 3px solid var(--pm-primary, #005a36);
    padding-left: 1rem;
    margin-bottom: 1.5rem;
}

/* ==========================================================================
   3. BOTÕES E MÍDIA
   ========================================================================== */
.conect-btn-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background-color: var(--pm-primary, #005a36);
    color: #ffffff !important;
    padding: 0.75rem 1.5rem;
    border-radius: var(--pm-radius-sm, 6px);
    font-weight: 700;
    font-size: 0.95rem;
    text-decoration: none !important;
    transition: var(--pm-transition, all 0.25s ease);
}

.conect-btn-link:hover,
.conect-btn-link:focus-visible {
    background-color: var(--pm-primary-dark, #003d24);
    box-shadow: var(--pm-shadow-md, 0 4px 12px rgba(0, 0, 0, 0.08));
    transform: translateY(-1px);
}

.conect-component-img {
    max-width: 100%;
    height: auto;
    border-radius: var(--pm-radius-md, 10px);
    display: block;
}

.conect-component-img-caption {
    font-size: 0.8125rem;
    color: var(--pm-text-muted, #5c6773);
    margin-top: 0.5rem;
    font-style: italic;
    text-align: center;
}

/* ==========================================================================
   4. METADADOS E TAXONOMIAS
   ========================================================================== */
.conect-component-post_date,
.conect-component-modified_date,
.conect-component-post_author {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.875rem;
    color: var(--pm-text-muted, #5c6773);
}

.conect-component-terms-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.conect-component-term-badge {
    display: inline-flex;
    align-items: center;
    background: #f1f5f9;
    color: var(--pm-primary, #005a36);
    font-size: 0.8125rem;
    font-weight: 600;
    padding: 0.25rem 0.65rem;
    border-radius: 4px;
    text-decoration: none;
    transition: var(--pm-transition, all 0.25s ease);
}

.conect-component-term-badge:hover {
    background: var(--pm-primary, #005a36);
    color: #ffffff;
}

/* ==========================================================================
   5. DIVISOR E ESPAÇADOR
   ========================================================================== */
.conect-component-divider {
    border: 0;
    height: 1px;
    background: var(--pm-border, #e2e8f0);
    margin: 2rem 0;
}

/* ==========================================================================
   6. RESPONSIVIDADE E VISIBILIDADE
   ========================================================================== */
@media (min-width: 992px) {
    .hide-desktop {
        display: none !important;
    }
}

@media (min-width: 768px) and (max-width: 991px) {
    .hide-tablet {
        display: none !important;
    }
}

@media (max-width: 767px) {
    .hide-mobile {
        display: none !important;
    }

    .conect-component-container {
        padding: 0 0.75rem;
        gap: 1rem;
    }
}
