/**
 * LEIS - Página moderna e profissional
 * Padrão: Portal Transparência + Documentos
 */

/* ==== HERO SECTION ==== */
.leis-hero {
    background: linear-gradient(135deg, rgba(248, 249, 250, 0.4) 0%, rgba(255, 255, 255, 0.8) 100%);
    padding: 50px 0 35px;
    margin-bottom: 35px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    position: relative;
    overflow: hidden;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.leis-hero.harmonized {
    opacity: 1;
}

.leis-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent 0%, #6b7280 50%, transparent 100%);
    /* Harmonizado via JS */
}

.leis-hero-content {
    text-align: center;
    position: relative;
    z-index: 2;
}

.leis-hero-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, rgba(107, 114, 128, 0.06) 0%, rgba(107, 114, 128, 0.1) 100%);
    border-radius: 50%;
    margin-bottom: 18px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.04);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
}

.leis-hero-icon i {
    font-size: 28px;
    color: #6b7280;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.leis-hero-icon:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08);
}

.leis-hero-icon:hover i {
    transform: scale(1.1);
}

.leis-hero-title {
    font-size: 28px;
    font-weight: 600;
    color: #0d153d;
    margin-bottom: 12px;
    line-height: 1.3;
    letter-spacing: -0.5px;
}

.leis-hero-description {
    font-size: 14px;
    color: #8898aa;
    max-width: 550px;
    margin: 0 auto;
    line-height: 1.6;
}

/* ==== SEÇÃO PRINCIPAL ==== */
.leis-section {
    padding: 0 0 40px;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.leis-section.harmonized {
    opacity: 1;
}

/* ==== ACCORDIONS ==== */
.leis-accordion {
    max-width: 1000px;
    margin: 0 auto;
}

.leis-accordion-item {
    background: #ffffff;
    border: 1px solid #e9ecef;
    border-radius: 12px;
    margin-bottom: 16px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.leis-accordion-item:hover {
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
    border-color: #6b7280;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.leis-accordion-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    cursor: pointer;
    background: #ffffff;
    transition: all 0.3s ease;
    border-bottom: 2px solid transparent;
}

.leis-accordion-header:hover {
    background: #f8f9fa;
}

.leis-accordion-header.active {
    border-bottom-color: #e9ecef;
}

.leis-accordion-header-left {
    display: flex;
    align-items: center;
    gap: 16px;
}

.leis-accordion-icon {
    width: 45px;
    height: 45px;
    background: #6b7280;
    /* Harmonizado via JS */
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.leis-accordion-icon i {
    font-size: 20px;
    color: #ffffff;
    transition: all 0.3s ease;
}

.leis-accordion-title {
    font-size: 16px;
    font-weight: 600;
    color: #0d153d;
    margin: 0;
}

.leis-accordion-toggle {
    width: 35px;
    height: 35px;
    background: #f8f9fa;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.leis-accordion-toggle i {
    font-size: 18px;
    color: #6b7280;
    transition: transform 0.3s ease;
}

.leis-accordion-header.active .leis-accordion-toggle {
    background: #6b7280;
}

.leis-accordion-header.active .leis-accordion-toggle i {
    transform: rotate(180deg);
    color: #ffffff;
}

.leis-accordion-body {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.leis-accordion-body.active {
    max-height: 5000px;
}

.leis-accordion-content {
    padding: 24px;
    color: #4b5563;
    line-height: 1.7;
}

.leis-accordion-content ul,
.leis-accordion-content ol {
    list-style: disc;
    padding-left: 20px;
    margin: 10px 0;
}

.leis-accordion-content p {
    margin-bottom: 12px;
}

/* ==== LINK EXTERNO ==== */
.leis-link-container {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #e9ecef;
}

.leis-link-externo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 20px;
    background: #6b7280;
    color: #ffffff;
    text-decoration: none;
    border-radius: 10px;
    font-weight: 500;
    font-size: 14px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.leis-link-externo i {
    font-size: 16px;
}

.leis-link-externo:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    color: #ffffff;
    text-decoration: none;
    filter: brightness(1.05);
}

/* ==== ESTADO VAZIO ==== */
.leis-empty-state {
    text-align: center;
    padding: 80px 20px;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.leis-empty-state.harmonized {
    opacity: 1;
}

.leis-empty-icon {
    width: 100px;
    height: 100px;
    margin: 0 auto 30px;
    background: linear-gradient(135deg, rgba(107, 114, 128, 0.08) 0%, rgba(107, 114, 128, 0.12) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.leis-empty-icon i {
    font-size: 48px;
    color: #6b7280;
}

.leis-empty-title {
    font-size: 24px;
    font-weight: 600;
    color: #0d153d;
    margin-bottom: 12px;
}

.leis-empty-description {
    font-size: 14px;
    color: #8898aa;
    max-width: 400px;
    margin: 0 auto;
    line-height: 1.6;
}

/* ==== RESPONSIVIDADE ==== */
@media (max-width: 768px) {
    .leis-hero-title {
        font-size: 24px;
    }
    
    .leis-accordion-header {
        padding: 16px 18px;
    }
    
    .leis-accordion-icon {
        width: 40px;
        height: 40px;
    }
    
    .leis-accordion-title {
        font-size: 15px;
    }
    
    .leis-accordion-content {
        padding: 18px;
    }
    
    .leis-link-externo {
        padding: 10px 16px;
        font-size: 13px;
    }
}

@media (max-width: 576px) {
    .leis-hero {
        padding: 40px 0 30px;
    }
    
    .leis-hero-icon {
        width: 50px;
        height: 50px;
    }
    
    .leis-hero-icon i {
        font-size: 24px;
    }
}
