/**
 * Legis Itabuna - Hub Temático / Códigos e Estatutos
 */

.legis-hub-wrapper {
    width: 100%;
    margin: 0 auto;
}

.legis-hub-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
}

@media (max-width: 1024px) {
    .legis-hub-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .legis-hub-grid {
        grid-template-columns: 1fr;
    }
}

.legis-hub-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 24px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
    position: relative;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.legis-hub-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -4px rgba(0, 0, 0, 0.04);
    border-color: #cbd5e1;
}

.legis-hub-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.legis-hub-card-icon-box {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: #eff6ff;
    color: #1e3a8a;
    display: flex;
    align-items: center;
    justify-content: center;
}

.legis-hub-card-badge {
    background: #f1f5f9;
    color: #475569;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 4px 10px;
    border-radius: 9999px;
}

.legis-hub-card-subtitle {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #2563eb;
    margin-bottom: 4px;
}

.legis-hub-card-title {
    font-size: 18px;
    font-weight: 700;
    margin: 0 0 10px;
    line-height: 1.4;
}

.legis-hub-card-title a {
    color: #0f172a;
    text-decoration: none;
    transition: color 0.15s ease;
}

.legis-hub-card-title a:hover {
    color: #1e3a8a;
}

.legis-hub-card-desc {
    font-size: 14px;
    color: #64748b;
    line-height: 1.6;
    margin: 0 0 20px;
    flex: 1;
}

.legis-hub-card-footer {
    padding-top: 16px;
    border-top: 1px solid #f1f5f9;
}

.legis-hub-card-action {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 600;
    color: #1e3a8a;
    text-decoration: none;
    transition: gap 0.2s ease, color 0.15s ease;
}

.legis-hub-card-action:hover {
    color: #2563eb;
    gap: 9px;
}

.legis-hub-empty {
    grid-column: 1 / -1;
    text-align: center;
    padding: 40px;
    color: #64748b;
    font-size: 15px;
    background: #ffffff;
    border: 1px dashed #cbd5e1;
    border-radius: 8px;
}
